Bugzilla – Attachment 175487 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.98 KB, created by
Matt Blenkinsop
on 2024-12-16 09:39:43 UTC
(
hide
)
Description:
Bug 38683: Opac cover images are only shown on fist result page
Filename:
MIME Type:
Creator:
Matt Blenkinsop
Created:
2024-12-16 09:39:43 UTC
Size:
1.98 KB
patch
obsolete
>From 952a0c0e2f703812a13b0b28a260cce3636a382c 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> >Signed-off-by: Sam Sowanick <sam.sowanick@corvallisoregon.gov> >Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com> >--- > 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)
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