From be76f596a6dd901026d174723aee0324996b996d 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 (cherry picked from commit aa8dc28e97d1971e191d5f7d08802257ae98f378) Signed-off-by: Fridolin Somers (cherry picked from commit 6cef886164eb3fd792eacffa6a8451bdcc711cec) Signed-off-by: Pedro Amorim --- 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 87b1d58f13..9d92e6764b 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt @@ -1509,7 +1509,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