Skip to content
Snippets Groups Projects
Commit 2820e299 authored by Demian Katz's avatar Demian Katz
Browse files

Smarter hasHoldings() for NoILS driver.

parent fa74dd6b
No related merge requests found
...@@ -280,6 +280,12 @@ class NoILS extends AbstractBase implements TranslatorAwareInterface ...@@ -280,6 +280,12 @@ class NoILS extends AbstractBase implements TranslatorAwareInterface
*/ */
public function hasHoldings($id) 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'] ?? ''; $useHoldings = $this->config['settings']['useHoldings'] ?? '';
// "none" will be processed differently in the config depending // "none" will be processed differently in the config depending
......
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