From e552b9652d2842de3fd88941e94ed222acd1b454 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 12 Dec 2024 15:15:36 +0000 Subject: [PATCH] Bug 38683: Opac cover images are only shown on fist result page This patch corrects the OPAC search results template so that cover images will be added on more than just the first page of results. To test, apply the patch and enable a cover image system preference e.g. OPACAmazonCoverImages. Perform a search in the OPAC which will return multiple pages of results. Page through several pages of results to confirm that cover images appear on each page. Signed-off-by: Jan Kissig Signed-off-by: Sam Sowanick --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 a7f87af6d3..c630578f95 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt @@ -23,9 +23,7 @@ [% SET BakerTaylorEnabled = Koha.Preference('BakerTaylorEnabled') %] [% SET OPACCoce = ( Koha.Preference('OPACCoce') && Koha.Preference('CoceProviders') ) %] [% IF ( CoverImagePlugins || OPACLocalCoverImages || OPACAmazonCoverImages || SyndeticsCoverImages || GoogleJackets || OpenLibraryCovers || BakerTaylorEnabled || OPACCoce || OPACCustomCoverImages ) %] - [% IF firstPage %] - [% SET CoverImages = 1 %] - [% END %] + [% SET CoverImages = 1 %] [% SET OPACCustomCoverImages = ( Koha.Preference('OPACCustomCoverImages') && Koha.Preference('CustomCoverImagesURL') ) %] [% SET OverDriveEnabled = Koha.Preference('OverDriveLibraryID') && Koha.Preference('OverDriveClientKey') && Koha.Preference('OverDriveClientSecret') %] [% END %] -- 2.39.5