diff --git a/res/theme/languages/en.ini b/res/theme/languages/en.ini index 50c5cb02ace72932068102cd481e10b88871e608..5b4ce4e98eb42d966738f01f270468e09ba83501 100644 --- a/res/theme/languages/en.ini +++ b/res/theme/languages/en.ini @@ -1,5 +1,5 @@ boss_default = "Please add a home library in your profile to obtain information about the availability of this title on site." -boss_true = "available in your home library." +boss_true = "available in your library" boss_false = "Not available in your home library.<br/><br/>Your home library can tell you whether the title can be ordered by interlibrary loan." boss_noISXNZBD = "Unfortunately, we cannot provide any further information on availability for this title at the moment.<br/><br/>Your home library can tell you whether the title can be ordered by interlibrary loan." boss_note = "Important note" diff --git a/src/AjaxHandler/GetBoss.php b/src/AjaxHandler/GetBoss.php index c42f5fc6c5fc4c50cd9f97afdd9065a7d57f6e03..e40f206d69099e3766929efd70c102e5d24c6c7b 100644 --- a/src/AjaxHandler/GetBoss.php +++ b/src/AjaxHandler/GetBoss.php @@ -167,16 +167,17 @@ class GetBoss extends \VuFind\AjaxHandler\AbstractBase $zdbId = $driver->tryMethod('getZdbId'); $isbns = $driver->tryMethod('getISBNs'); $isbns = count($isbns) > 0 ? $isbns[0] : ''; + $isISXNZBD = (!empty($isbns) || !empty($zdbId)) ? true : false; $tmp = $isilCallNumber; unset($tmp['isils']); $callnumber = $this->getCallnumbers($boss, $tmp); - $isISIL = $inArray ? + $isISIL = $inArray && $isISXNZBD ? $this->isISIL($isilCallNumber['isils'], $boss) : false; $view = [ 'homeLibrary' => ($homeLibrary == "AAAAA") ? true : false, - 'isISXNZBD' => (!empty($isbns) || !empty($zdbId)) ? true : false, + 'isISXNZBD' => $isISXNZBD, 'isISIL' => $isISIL, 'isAddNetwork' => in_array($network, $addNetworks) ? true : false, 'url' => sprintf($this->config->SearchUrls->$network, ($inArray ?