diff --git a/module/VuFind/src/VuFind/ILS/Driver/Folio.php b/module/VuFind/src/VuFind/ILS/Driver/Folio.php index f8a533d380f7446a02a01b92841fb5f0b55c39c6..958e203ee05115e8b0daa0b556a3b256ba217b5e 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/Folio.php +++ b/module/VuFind/src/VuFind/ILS/Driver/Folio.php @@ -430,7 +430,10 @@ class Folio extends AbstractAPI implements public function getHolding($bibId, array $patron = null, array $options = []) { $instance = $this->getInstanceByBibId($bibId); - $query = ['query' => '(instanceId=="' . $instance->id . '")']; + $query = [ + 'query' => '(instanceId=="' . $instance->id + . '" and discoverySuppress==false)' + ]; $holdingResponse = $this->makeRequest( 'GET', '/holdings-storage/holdings', @@ -449,7 +452,10 @@ class Folio extends AbstractAPI implements $locationName = $location->name; } - $query = ['query' => '(holdingsRecordId=="' . $holding->id . '")']; + $query = [ + 'query' => '(holdingsRecordId=="' . $holding->id + . '" and discoverySuppress==false)' + ]; $itemResponse = $this->makeRequest('GET', '/item-storage/items', $query); $itemBody = json_decode($itemResponse->getBody()); $notesFormatter = function ($note) {