Bugzilla – Attachment 186508 Details for
Bug 40822
Custom cover images not displayed in search results
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40822: Custom cover images not displayed in search results
Bug-40822-Custom-cover-images-not-displayed-in-sea.patch (text/plain), 2.84 KB, created by
Hammat wele
on 2025-09-16 20:34:14 UTC
(
hide
)
Description:
Bug 40822: Custom cover images not displayed in search results
Filename:
MIME Type:
Creator:
Hammat wele
Created:
2025-09-16 20:34:14 UTC
Size:
2.84 KB
patch
obsolete
>From a06ccdfe7ea21582e76cd11e78955a3409630603 Mon Sep 17 00:00:00 2001 >From: Hammat Wele <hammat.wele@inlibro.com> >Date: Tue, 16 Sep 2025 20:33:26 +0000 >Subject: [PATCH] Bug 40822: Custom cover images not displayed in search > results > >When using OPACCustomCoverImages, the custom cover image shows correctly on the bibliographic detail page but does not appear in the search results list. > >To Test: > >1. Disable all cover image preferences (OPACLocalCoverImages, OPACAmazonCoverImages, SyndeticsCoverImages, GoogleJackets OpenLibraryCovers, BakerTaylorEnabled, OPACCoce). >2. Enable OPACCustomCoverImages. >3. Set CustomCoverImagesURL to {956}. >4. Ensure field 956 is visible in the record editor. > 1. Go to Administration --> MARC bibliographic framework. > 2. Click Actions --> MARC Structure for the default framework. > 3. Search for field 956. > 4. Click Actions --> Edit subfields. > 5. Open the u subfield tab. > 6. Make sure the subfield is in tab 9. > 7. Check OPAC, Intranet, and Editor. > 8. Click Save changes. >5. In a bibliographic record, add the following URL to 956: > https://m.media-amazon.com/images/I/71Uo7Fqbu3L.jpg >6. At the OPAC, perform a search to display the record in a results list. > --> The custom cover image does not appear in the search results list. >7. Apply the patch >8. Repeat step 6 > --> The custom cover image appears in the search results. >--- > 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 131972bc3e0..d789fc1241a 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt >@@ -22,9 +22,9 @@ > [% SET OpenLibraryCovers = Koha.Preference('OpenLibraryCovers') %] > [% SET BakerTaylorEnabled = Koha.Preference('BakerTaylorEnabled') %] > [% SET OPACCoce = ( Koha.Preference('OPACCoce') && Koha.Preference('CoceProviders') ) %] >+[% SET OPACCustomCoverImages = ( Koha.Preference('OPACCustomCoverImages') && Koha.Preference('CustomCoverImagesURL') ) %] > [% IF ( CoverImagePlugins || OPACLocalCoverImages || OPACAmazonCoverImages || SyndeticsCoverImages || GoogleJackets || OpenLibraryCovers || BakerTaylorEnabled || OPACCoce || OPACCustomCoverImages ) %] > [% SET CoverImages = 1 %] >- [% SET OPACCustomCoverImages = ( Koha.Preference('OPACCustomCoverImages') && Koha.Preference('CustomCoverImagesURL') ) %] > [% SET OverDriveEnabled = Koha.Preference('OverDriveLibraryID') && Koha.Preference('OverDriveClientKey') && Koha.Preference('OverDriveClientSecret') %] > [% END %] > [% SET OverDriveEnabled = ( Koha.Preference( "OPACOverDrive" ) && Koha.Preference('OverDriveLibraryID') && Koha.Preference('OverDriveClientKey') && Koha.Preference('OverDriveClientSecret') ) %] >-- >2.34.1
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 40822
: 186508