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

FOLIO: respect discoverySuppress setting (#1683)

parent c41b5504
Branches
Tags
No related merge requests found
......@@ -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) {
......
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