Bugzilla – Attachment 151864 Details for
Bug 33848
Enabling Coce in the OPAC breaks cover images on bibliographic detail page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33848: Don't remove coce container from template
Bug-33848-Dont-remove-coce-container-from-template.patch (text/plain), 1.22 KB, created by
Jonathan Druart
on 2023-05-31 11:46:29 UTC
(
hide
)
Description:
Bug 33848: Don't remove coce container from template
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-05-31 11:46:29 UTC
Size:
1.22 KB
patch
obsolete
>From b9adfc89c0e87768f5a2f6dbfbffdc28c50cb3e8 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 33848
:
151864
|
152722
|
152747
|
154063
|
154064