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

refs #16355 * set boss message top of get it box if available at home library

parent 6aa49661
Branches
Tags v1.0.1
No related merge requests found
Pipeline #4377 passed with stage
in 13 seconds
boss_default = "Bitte geben Sie in Ihrem Profil eine Heimatbibliothek an, um Informationen zur Verfügbarkeit dieses Titels vor Ort zu erhalten."
boss_true = "Exemplar in Ihrer Heimatbibliothek vorhanden."
boss_true = "in Ihrer Bibliothek vorhanden"
boss_false = "Nicht in Ihrer Heimatbibliothek vorhanden.<br/><br/>Ob der Titel per Fernleihe bestellbar ist, kann Ihnen Ihre Heimatbibliothek mitteilen."
boss_noISXNZBD = "Für diesen Titel können wir derzeit leider keine weitere Informationen zur Verfügbarkeit bereitstellen.<br/><br/>Ob der Titel per Fernleihe bestellbar ist, kann Ihnen Ihre Heimatbibliothek mitteilen."
boss_note = "Wichtiger Hinweis"
......
<!-- boss-module: ajax - boss -->
<div>
<?php if ($this->homeLibrary): ?>
<?=$this->translate('boss_default')?>
<?php else: ?>
<?php if ($this->isISXNZBD): ?>
<?php if ($this->isISIL): ?>
<?=$this->translate('boss_true')?>
<?php if (!empty($this->callnumber)): ?>
<br/><?=$this->transEsc('boss_callnumber')?>: <?=implode(', ', $this->callnumber)?>
<?php endif; ?>
<?php elseif (!$this->isAddNetwork): ?>
<?=$this->translate('boss_false')?>
<?php endif; ?>
<?php if ($this->isAddNetwork): ?>
<a href="<?=$this->url?>" target="_blank"><?=$this->translate('boss_holding')?></a><br/>
<a href="<?=$this->url('content-page', ['page' => 'networknotice'])?>" data-lightbox><?=$this->translate('boss_note')?></a>
<?php else: ?>
<br/><a href="<?=$this->url?>" target="_blank"><?=$this->translate('More Information')?></a>
<?php endif; ?>
<?php else: ?>
<?=$this->translate('boss_noISXNZBD')?>
<?php endif; ?>
<?php endif; ?>
</div>
<!-- boss-module: ajax - boss - END -->
\ No newline at end of file
<!-- boss-module: ajax - boss -->
<div>
<?php if ($this->homeLibrary): ?>
<?=$this->translate('boss_default')?>
<?php else: ?>
<?php if ($this->isISXNZBD): ?>
<a class="btn btn-primary pda-button full-order" href="<?=$this->url?>" target="_blank" rel="nofollow">
<?=$this->transEsc('boss_true')?>
</a>
<?php if (!empty($this->callnumber)): ?>
<div class="pda-part-text">
<?=$this->transEsc('boss_callnumber')?>: <?=implode(', ', $this->callnumber)?>
</div>
<?php endif; ?>
<?php else: ?>
<?=$this->translate('boss_noISXNZBD')?>
<?php endif; ?>
<?php endif; ?>
</div>
<!-- boss-module: ajax - boss - END -->
\ No newline at end of file
<!-- boss-module: ajax - boss -->
<div>
<?php if ($this->homeLibrary): ?>
<?=$this->translate('boss_default')?>
<?php else: ?>
<?php if ($this->isISXNZBD): ?>
<?php if ($this->isISIL): ?>
<?=$this->translate('boss_true')?>
<?php if (!empty($this->callnumber)): ?>
<br/><?=$this->transEsc('boss_callnumber')?>: <?=implode(', ', $this->callnumber)?>
<?php endif; ?>
<?php elseif (!$this->isAddNetwork): ?>
<?=$this->translate('boss_false')?>
<?php endif; ?>
<?php if ($this->isAddNetwork): ?>
<a href="<?=$this->url?>" target="_blank"><?=$this->translate('boss_holding')?></a><br/>
<a href="<?=$this->url('content-page', ['page' => 'networknotice'])?>" data-lightbox><?=$this->translate('boss_note')?></a>
<?php else: ?>
<br/><a href="<?=$this->url?>" target="_blank"><?=$this->translate('More Information')?></a>
<?php endif; ?>
<?php else: ?>
<?=$this->translate('boss_noISXNZBD')?>
<?php endif; ?>
<?php endif; ?>
</div>
<?php
$value = $isISIL ? 'true' : 'false';
?>
<?=$this->render('ajax/boss-'.$value.'.phtml')?>
<!-- boss-module: ajax - boss - END -->
\ No newline at end of file
......@@ -171,11 +171,13 @@ class GetBoss extends \VuFind\AjaxHandler\AbstractBase
unset($tmp['isils']);
$callnumber = $this->getCallnumbers($boss, $tmp);
$isISIL = $inArray ?
$this->isISIL($isilCallNumber['isils'], $boss) : false;
$view = [
'homeLibrary' => ($homeLibrary == "AAAAA") ? true : false,
'isISXNZBD' => (!empty($isbns) || !empty($zdbId)) ? true : false,
'isISIL' => ($inArray ?
$this->isISIL($isilCallNumber['isils'], $boss) : false),
'isISIL' => $isISIL,
'isAddNetwork' => in_array($network, $addNetworks) ? true : false,
'url' => sprintf($this->config->SearchUrls->$network, ($inArray ?
$results['param'] : $isbns)),
......@@ -183,7 +185,7 @@ class GetBoss extends \VuFind\AjaxHandler\AbstractBase
];
$html = $this->renderer->render('ajax/boss.phtml', $view);
return $this->formatResponse(compact('html'));
return $this->formatResponse(compact('html', 'isISIL'));
}
return [];
}
......
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