Skip to content
Snippets Groups Projects
Commit 246b7e13 authored by mis306lu's avatar mis306lu Committed by Robert Lange
Browse files

FOLIO driver: show only open loans (#1579)

parent d474add2
No related merge requests found
...@@ -673,7 +673,7 @@ class Folio extends AbstractAPI implements ...@@ -673,7 +673,7 @@ class Folio extends AbstractAPI implements
*/ */
public function getMyTransactions($patron) public function getMyTransactions($patron)
{ {
$query = ['query' => 'userId==' . $patron['id']]; $query = ['query' => 'userId==' . $patron['id'] . ' and status.name==Open'];
$response = $this->makeRequest("GET", '/circulation/loans', $query); $response = $this->makeRequest("GET", '/circulation/loans', $query);
$json = json_decode($response->getBody()); $json = json_decode($response->getBody());
if (count($json->loans) == 0) { if (count($json->loans) == 0) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment