From ca25ef96737540c0fb66e48f87f0e3c16bb0b554 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 20 Apr 2021 12:06:33 +0200 Subject: [PATCH] Bug 28180: Reintroduce and adjust Syndetics MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Test plan: 1. Enable SyndeticsEnabled and SyndeticsCoverImages 2. Display the cover images in the gallery Sponsored-by: Gerhard Sondermann Dialog e.K. (presseplus.de, presseshop.at, presseshop.ch) Signed-off-by: Rasmus Leißner Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart --- .../opac-tmpl/bootstrap/en/modules/opac-detail.tt | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt index 70dc307b88..5ed4c17442 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt @@ -82,6 +82,17 @@ [% END %] + [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %] + [% IF ( content_identifier_exists ) %] +
+ + Syndetics cover image + +
Image from Syndetics
+
+ [% END %] + [% END %] + [% IF ( Koha.Preference('OPACCoce') && Koha.Preference('CoceProviders') && normalized_isbn ) %] [% coce_id = normalized_ean || normalized_isbn %]
@@ -1517,6 +1528,8 @@ } else { lightbox_descriptions.push("Custom cover image"); } + } else if( div.attr("id") == "syndetics-coverimg" ){ + lightbox_descriptions.push("Image from Syndetics") } else if( div.attr("id") == "coce-coverimg" ){ // Identify which service's image is being loaded by Coce var coce_description; -- 2.39.5