From aa8dc28e97d1971e191d5f7d08802257ae98f378 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 31 May 2023 13:41:26 +0200 Subject: [PATCH] Bug 33848: Don't remove coce container from template It's removed from coce.js Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 8449cc3b86..f658c06c1e 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt @@ -1505,7 +1505,7 @@ var img = div.find("img")[0]; if( img && $(img).length > 0 ){ var description = ""; - if( img.naturalHeight == 0 && div.attr("id") != "googlejacket-coverimg" ){ + if( img.naturalHeight == 0 && div.attr("id") != "googlejacket-coverimg" && div.hasClass('coce-coverimg') ){ // No image loaded in the container. Remove the slide div.remove(); } else { -- 2.39.5