From 49b24732f73518349b8aaf44d3b711f569dc72a1 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 9 Dec 2024 18:44:18 +0000 Subject: [PATCH] Bug 38657: Prevent cover image from being from being obscured by the search results toolbar On the OPAC search results page we're including the Chocolat image viewer CSS after our global CSS file. This means that rules which are intended to override the default Chocolat CSS aren't working. The fix is to move the line which includes the Chocolat CSS. To test, apply the patch and enable the LocalCoverImages and OPACLocalCoverImages system preferences. - If necessary, add a local cover image to a bibliographic record. - Go to the OPAC and perform a search which will return multiple record including the record with the cover image. - Click the cover image to trigger the image viewer. - The image viewer should not appear to be "behind" the search results toolbar. Sponsored-by: Athens County Public Libraries Signed-off-by: David Nind Signed-off-by: Martin Renvoize --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt index a7f87af6d37..0da9fedda51 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt @@ -46,11 +46,11 @@ [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog +[% Asset.css("lib/Chocolat/css/chocolat.css") | $raw %] [% INCLUDE 'doc-head-close.inc' %] [% BLOCK cssinclude %][% END %] -[% Asset.css("lib/Chocolat/css/chocolat.css") | $raw %] [% INCLUDE 'bodytag.inc' bodyid='results' bodyclass='scrollto' %] [% INCLUDE 'masthead.inc' %] -- 2.47.1