diff --git a/module/VuFind/src/VuFind/ILS/Driver/NoILS.php b/module/VuFind/src/VuFind/ILS/Driver/NoILS.php index f707850f54f41277e70ecc129faf93b76861fae5..15972e22ac091dc229ac1d0567546652f9d44984 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/NoILS.php +++ b/module/VuFind/src/VuFind/ILS/Driver/NoILS.php @@ -284,17 +284,13 @@ class NoILS extends AbstractBase implements TranslatorAwareInterface */ public function hasHoldings($id) { - // If the ILS is disabled, there will never be holdings: - if ($this->getOfflineMode() == 'ils-none') { - return false; - } - // If the ILS is offline, we should if we can look up details: $useHoldings = $this->config['settings']['useHoldings'] ?? ''; // "none" will be processed differently in the config depending // on whether it's in or out of quotes; handle both cases. - return $useHoldings != 'none' && !empty($useHoldings); + return $useHoldings != 'none' && !empty($useHoldings) + && !empty($this->getHolding($id)); } /**