From 952a0c0e2f703812a13b0b28a260cce3636a382c 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 Signed-off-by: Matt Blenkinsop --- 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 a7f87af6d37..c630578f95e 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 (Apple Git-154)