From 657789832ff9c5ef0fd050f48bd64a17ca26a747 Mon Sep 17 00:00:00 2001 From: Gregor Gawol <gawol@ub.uni-leipzig.de> Date: Fri, 25 Oct 2019 09:19:45 +0200 Subject: [PATCH] refs #16296 * added networknotice --- res/theme/languages/de.ini | 2 ++ res/theme/languages/en.ini | 2 ++ res/theme/templates/ajax/boss.phtml | 2 +- res/theme/templates/content/networknotice.phtml | 9 +++++++++ 4 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 res/theme/templates/content/networknotice.phtml diff --git a/res/theme/languages/de.ini b/res/theme/languages/de.ini index e193055..fc51981 100644 --- a/res/theme/languages/de.ini +++ b/res/theme/languages/de.ini @@ -5,3 +5,5 @@ boss_noISXNZBD = "Für diesen Titel können wir derzeit leider keine weitere Inf boss_note = "Wichtiger Hinweis" boss_holding = "Exemplar in meiner Bibiothek vorhanden?" boss_callnumber = "Signatur" +boss_networknotice_headline = "Hinweis für Nutzende aus Österreich und der Schweiz" +boss_networknotice_text = "Die automatische Verfügbarkeitsabfrage ist für Bibliotheken aus Österreich und der Schweiz nicht verfügbar. Bitte klicken Sie auf den Button „Exemplar in meiner Bibliothek vorhanden?“ und Sie werden zum jeweiligen Verbundkatalog Ihres Landes weitergeleitet, der Ihnen anzeigt, ob der Titel in Ihrer Bibliothek vorhanden ist." diff --git a/res/theme/languages/en.ini b/res/theme/languages/en.ini index 2f68ead..f7b21ab 100644 --- a/res/theme/languages/en.ini +++ b/res/theme/languages/en.ini @@ -5,3 +5,5 @@ boss_noISXNZBD = "Unfortunately, we cannot provide any further information on av boss_note = "Important note" boss_holding = "Copy available in my library?" boss_callnumber = "Call number" +boss_networknotice_headline = "Note for users from Austria and Switzerland" +boss_networknotice_text = "The automatic availability check is not available for libraries from Austria and Switzerland. Please click on the button "Copy available in my library?" and you will be forwarded to the respective union catalogue of your country, which shows you whether the title is available in your library." diff --git a/res/theme/templates/ajax/boss.phtml b/res/theme/templates/ajax/boss.phtml index 60ad335..f3e256b 100644 --- a/res/theme/templates/ajax/boss.phtml +++ b/res/theme/templates/ajax/boss.phtml @@ -14,7 +14,7 @@ <?php endif; ?> <?php if ($this->isAddNetwork): ?> <a href="<?=$this->url?>" target="_blank"><?=$this->translate('boss_holding')?></a><br/> - <a href="<?=$this->url('fid/user/terms')?>" data-lightbox><?=$this->translate('boss_note')?></a> + <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; ?> diff --git a/res/theme/templates/content/networknotice.phtml b/res/theme/templates/content/networknotice.phtml new file mode 100644 index 0000000..558df73 --- /dev/null +++ b/res/theme/templates/content/networknotice.phtml @@ -0,0 +1,9 @@ +<!-- boss-module: ajax - boss --> +<div> + <strong><?=$this->transEsc('boss_networknotice_headline')?>:</strong> + <br/><br/> + <div class="boss-networknotice"> + <?=$this->transEsc('boss_networknotice_text')?> + </div> +</div> +<!-- boss-module: ajax - boss - END --> \ No newline at end of file -- GitLab