From 56d17a055c4982f6f8661544424ab76ed159d9f3 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Wed, 16 Feb 2022 17:48:50 +0000 Subject: [PATCH] Bug 21225: (follow-up) Account for Syndetics lightbox To test: -Make sure when you apply all the patches that when you click on the Syndetics image in the detail page that it correctly displays the lightbox. -Turn on some other cover image services and make sure you can toggle through each of them. Signed-off-by: Barbara Johnson --- .../intranet-tmpl/prog/en/modules/catalogue/detail.tt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt index 14fc174d50..4fb6278d13 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -240,7 +240,7 @@ [% IF ( SyndeticsCovers ) %] [% IF ( content_identifier_exists ) %]
- +
Image from Syndetics
@@ -1089,7 +1089,10 @@ Note that permanent location is a code, and location may be an authval. } else { lightbox_descriptions.push("Custom cover image"); } - } else if( div.attr("id") == "coce-coverimg" ){ + } else if ( div.attr("id") == "syndetics-bookcoverimg" ){ + lightbox_descriptions.push(_("Syndetics cover image (see the original image)").format($(img).data('link'))); + } + else if( div.attr("id") == "coce-coverimg" ){ // Identify which service's image is being loaded by Coce var coce_description; if( $(img).attr("src").indexOf('amazon.com') >= 0 ){ -- 2.30.2