diff --git a/config/vufind/SierraRest.ini b/config/vufind/SierraRest.ini index 97d5cf208c1..2306e94295c 100644 --- a/config/vufind/SierraRest.ini +++ b/config/vufind/SierraRest.ini @@ -250,3 +250,5 @@ title_hold_excluded_item_codes = "e" ;sort_by_enum_chron = false ; Whether to retrieve and display orders (default is false): ;display_orders = false +; Whether to check holdings records in search results (default is true): +;check_holdings_in_results = true diff --git a/module/VuFind/src/VuFind/ILS/Driver/SierraRest.php b/module/VuFind/src/VuFind/ILS/Driver/SierraRest.php index 913a4e655d1..5ef187f8102 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/SierraRest.php +++ b/module/VuFind/src/VuFind/ILS/Driver/SierraRest.php @@ -482,7 +482,7 @@ public function init() */ public function getStatus($id) { - return $this->getItemStatusesForBib($id, false); + return $this->getItemStatusesForBib($id, $this->config['Holdings']['check_holdings_in_results'] ?? true); } /** @@ -499,7 +499,7 @@ public function getStatuses($ids) { $items = []; foreach ($ids as $id) { - $items[] = $this->getItemStatusesForBib($id, false); + $items[] = $this->getStatus($id); } return $items; }