From b9adfc89c0e87768f5a2f6dbfbffdc28c50cb3e8 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 --- 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 4ef51c19c49..a647ad66c97 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt @@ -1511,7 +1511,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.25.1