Skip to content

Commit b6b71fc

Browse files
add openaccessFlag o Entry class
1 parent 44f0137 commit b6b71fc

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/Scopus/Response/Entry.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,4 +148,10 @@ public function isEmpty()
148148
{
149149
return isset($this->data['error']);
150150
}
151+
152+
public function isOpenAccess()
153+
{
154+
if (isset($this->data["openaccessFlag"])) return $this->data["openaccessFlag"];
155+
return (isset($this->data["openaccess"]) && $this->data["openaccess"] == "1") ? true : false;
156+
}
151157
}

0 commit comments

Comments
 (0)