From a64368e1fd16d73a87fdda37fc0851743e4ad6db Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 24 Jul 2020 11:19:24 +0000 Subject: [PATCH] Bug 25031: (follow-up) Fix markup error and restore cover class This patch corrects a markup error that appears when no cover image services are enabled. An unclosed
caused links on the page to break. This patch also restores a part of the cover-handling script which adds a bordered style to the cover image "tiles" Signed-off-by: Jonathan Druart --- .../prog/en/modules/catalogue/detail.tt | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt index d2376ab098..05c18f3ee2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -194,9 +194,11 @@
Custom cover image
[% END %] - - - [% END %] + + + [% ELSE %] + + [% END # /IF ( AmazonCoverImages, etc ) %]
@@ -993,13 +995,15 @@ Note that permanent location is a code, and location may be an authval. $(covernav).addClass("nav-active"); } $(covernav).html(""); - $("#cover-slides").addClass("cover-slides").append( covernav ); + $("#cover-slides").append( covernav ); }); } if( $(".cover-image:visible").length < 1 ){ $("#cover-slides").remove(); + } else { + $("#cover-slides").addClass("cover-slides"); } $("#editions img").each(function(i){ -- 2.39.5