Skip to content
Snippets Groups Projects
Commit ccdff3f7 authored by Gregor Gawol's avatar Gregor Gawol
Browse files

refs #16630 * bug fixing if empty isbn or zbd

parent d528d12b
Branches
Tags v0.0.12
No related merge requests found
Pipeline #4993 passed with stage
in 16 seconds
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"
......
......@@ -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 ?
......
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