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
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_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_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_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" boss_note = "Important note"
......
...@@ -167,16 +167,17 @@ class GetBoss extends \VuFind\AjaxHandler\AbstractBase ...@@ -167,16 +167,17 @@ class GetBoss extends \VuFind\AjaxHandler\AbstractBase
$zdbId = $driver->tryMethod('getZdbId'); $zdbId = $driver->tryMethod('getZdbId');
$isbns = $driver->tryMethod('getISBNs'); $isbns = $driver->tryMethod('getISBNs');
$isbns = count($isbns) > 0 ? $isbns[0] : ''; $isbns = count($isbns) > 0 ? $isbns[0] : '';
$isISXNZBD = (!empty($isbns) || !empty($zdbId)) ? true : false;
$tmp = $isilCallNumber; $tmp = $isilCallNumber;
unset($tmp['isils']); unset($tmp['isils']);
$callnumber = $this->getCallnumbers($boss, $tmp); $callnumber = $this->getCallnumbers($boss, $tmp);
$isISIL = $inArray ? $isISIL = $inArray && $isISXNZBD ?
$this->isISIL($isilCallNumber['isils'], $boss) : false; $this->isISIL($isilCallNumber['isils'], $boss) : false;
$view = [ $view = [
'homeLibrary' => ($homeLibrary == "AAAAA") ? true : false, 'homeLibrary' => ($homeLibrary == "AAAAA") ? true : false,
'isISXNZBD' => (!empty($isbns) || !empty($zdbId)) ? true : false, 'isISXNZBD' => $isISXNZBD,
'isISIL' => $isISIL, 'isISIL' => $isISIL,
'isAddNetwork' => in_array($network, $addNetworks) ? true : false, 'isAddNetwork' => in_array($network, $addNetworks) ? true : false,
'url' => sprintf($this->config->SearchUrls->$network, ($inArray ? '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