From 695e55c46769ecbb8f16c8517bfed919925101dd Mon Sep 17 00:00:00 2001 From: Alex Buckley Date: Tue, 30 Aug 2022 16:18:44 +1200 Subject: [PATCH] Bug 31446: Add IDs to parent elements of cover images Having ID attributes for all parent div tags of OPAC lightbox cover images would make it easier for libraries to hide the lightbox descriptions hint text displaying under cover images. Libraries could simply add some JavaScript (in a format like below) to their OpacUserJS system preference for each image content source they use: $("#coce-coverimg > .hint").hide(); Test plan: 1. Apply patch 2. Confirm all parent div elements of cover images now have an ID in opac-detail.tt Sponsored-by: Toi Ohomai Institute of Technology, New Zealand --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 e69c3fac730..9a012e62f5e 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt @@ -63,7 +63,7 @@ [% IF ( OPACLocalCoverImages ) %] [% IF localimages.count %] [% FOREACH image IN localimages %] -
+
Local cover image @@ -102,7 +102,7 @@ [% IF ( Koha.Preference('OPACCoce') && Koha.Preference('CoceProviders') && normalized_isbn ) %] [% coce_id = normalized_ean || normalized_isbn %] -
+
[% IF ( coce_id ) %] [% END %] -- 2.20.1