Skip to content
Snippets Groups Projects
Commit 8f7ca5de authored by Ian Hardy's avatar Ian Hardy Committed by Robert Lange
Browse files

FOLIO: add check for item level suppression (#1660)

parent 7d60b6e4
Branches
Tags
No related merge requests found
...@@ -458,9 +458,12 @@ class Folio extends AbstractAPI implements ...@@ -458,9 +458,12 @@ class Folio extends AbstractAPI implements
}; };
for ($j = 0; $j < count($itemBody->items); $j++) { for ($j = 0; $j < count($itemBody->items); $j++) {
$item = $itemBody->items[$j]; $item = $itemBody->items[$j];
if ($item->discoverySuppress ?? false) {
continue;
}
$items[] = [ $items[] = [
'id' => $bibId, 'id' => $bibId,
'item_id' => $itemBody->items[$j]->id, 'item_id' => $item->id,
'holding_id' => $holding->id, 'holding_id' => $holding->id,
'number' => count($items) + 1, 'number' => count($items) + 1,
'barcode' => $item->barcode ?? '', 'barcode' => $item->barcode ?? '',
......
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