From 378eaf4a6892dace3259d1580828e2888815f1cf 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 (cherry picked from commit be76f596a6dd901026d174723aee0324996b996d) Signed-off-by: Lucas Gass --- 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 f978f662ef..6802e557a2 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt @@ -1472,7 +1472,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