Bugzilla – Attachment 175416 Details for
Bug 38683
OPAC cover images are only shown on first result page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38683: Opac cover images are only shown on fist result page
Bug-38683-Opac-cover-images-are-only-shown-on-fist.patch (text/plain), 1.83 KB, created by
Jan Kissig
on 2024-12-12 18:34:53 UTC
(
hide
)
Description:
Bug 38683: Opac cover images are only shown on fist result page
Filename:
MIME Type:
Creator:
Jan Kissig
Created:
2024-12-12 18:34:53 UTC
Size:
1.83 KB
patch
obsolete
>From 9b043ba6ccd25e2369c40692157878c2c56d18cf Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >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 <bibliothek@th-wildau.de> >--- > 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 38683
:
175404
|
175416
|
175417
|
175487