From 059b7d048b4f19f4bd6d6f9b75d54fef1da7be55 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Thu, 10 Aug 2023 17:31:10 +0000 Subject: [PATCH] Bug 34149: Let Syndetics images show when Amazon returns 1px images 1. Turn on Syndetics 2. Set AmazonCoverImages to show 3. Go to a record detail page that has a Syndetics image but no Amazon image. In KTD I am using bib 181. 4. The image never loads. 5. Apply patch 6. Try again, the image should load. 7. Try records that have both Amazon and Syndetics images making sure it loads correctly in the lightbox. --- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 3 +++ 1 file changed, 3 insertions(+) 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 2d7c7a1535..a04180c9d8 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -1509,6 +1509,9 @@ } } else if ( div.attr("id") == "syndetics-bookcoverimg" ){ lightbox_descriptions.push(_("Syndetics cover image (see the original image)").format($(img).data('link'))); + if ( $('#amazon-bookcoverimg').length === 0 ) { + div.show(); + } } else if( div.hasClass("coce-coverimg" ) ){ // Identify which service's image is being loaded by Coce -- 2.30.2