From 42d7de3ded588ccf31ef4083d694cd4dabf1b691 Mon Sep 17 00:00:00 2001 From: jpkanter <kanter@ub.uni-leipzig.de> Date: Wed, 10 Jan 2024 16:21:46 +0100 Subject: [PATCH] refs #25170 [fid_bbi] interlibrary loan button info text * janky implementation of info button for interlibrary loan * language files for interlibrary loan texts * interlibary loan button position adjustment * changed the way the interlibrary loan button works, still viewport jump though --- fid/languages/de.ini | 3 +++ fid/languages/en.ini | 3 +++ .../templates/get-it-box/interlibraryloan.phtml | 11 +++++++++++ 3 files changed, 17 insertions(+) diff --git a/fid/languages/de.ini b/fid/languages/de.ini index ed4424a97a0..0193073e563 100644 --- a/fid/languages/de.ini +++ b/fid/languages/de.ini @@ -160,6 +160,9 @@ DigiVatLib = "<span lang="en">DigiVatLib</span>" FactGrid : a Database for Historians = "<span lang="en">FactGrid : a Database for Historians</span>" E-LIS : E-Prints in Library and Information Science = "<span lang="en">E-LIS : E-Prints in Library and Information Science</span>" +#25170 +interlibary_info = Die Fernleihe ermöglicht es Ihnen, Bücher oder andere Medien, die in ihrer lokalen Bibliothek nicht verfügbar sind, aus anderen Bibliotheken auszuleihen. Hierfür werden Sie auf die Seite des für Sie zuständigen Verbundes umgeleitet. Für die Fernleihe benötigen Sie i.d.R. ein Fernleihkonto, das von Ihrer lokalen Bibliothek erstellt wird. Bei Fragen wenden Sie sich bitte an die Kolleg*innen vor Ort. + # 'Translated' Sources British Library Catalogue (Profil FID BBI) = <span lang="en">British Library Catalogue (Profil FID BBI)</span> Australian and New Zealand Student Services Association Inc. (CrossRef) = <span lang="en">Australian and New Zealand Student Services Association Inc. (CrossRef)</span> diff --git a/fid/languages/en.ini b/fid/languages/en.ini index 71ddd38796d..c507826a7bf 100644 --- a/fid/languages/en.ini +++ b/fid/languages/en.ini @@ -62,3 +62,6 @@ fid_export_ownerLib = "owning library" fid_export_signature = "signature" fid_export_externalUrl = "external url" fid_export_comment = "comment" + +#25170 +interlibary_info = "Interlibrary loan allows you to borrow books or other media that are not available in your local library from other libraries. To do this, you will be redirected to the website of the library network responsible for you. For interlibrary loans you usually need an account, which is created by your local library. If you have any questions, please contact your local librarian." \ No newline at end of file diff --git a/themes/fid_bbi/templates/get-it-box/interlibraryloan.phtml b/themes/fid_bbi/templates/get-it-box/interlibraryloan.phtml index 5518fa9fd88..edf0f0d8a88 100644 --- a/themes/fid_bbi/templates/get-it-box/interlibraryloan.phtml +++ b/themes/fid_bbi/templates/get-it-box/interlibraryloan.phtml @@ -34,8 +34,19 @@ href="<?=$this->translate("fid::fern_url_{$net}", ['%%isbn%%' => $isbn, '%%gvi%%' => $gvi, '%%isil%%' => $isil]);?>"> <?=$this->translate('fid::fern_txt_button')?> </a> + <sup><a href="#" id="interlibrary_info"><?=$this->icon('info')?></a></sup> <br/> <br/> + + <?php $script = <<<JS +$(document).ready(function() { + $('#interlibrary_info').on("click", function() { + VuFind.lightbox.alert('{$this->translate("interlibary_info")}', 'success'); + }); +}); +JS; + ?> + <?=$this->inlineScript(\Laminas\View\Helper\HeadScript::SCRIPT, $script, 'SET');?> <?php endif; ?> <?php endif; ?> <!-- fid_bbi: get-it-box - interlibraryloan - END --> -- GitLab