Bugzilla – Attachment 175299 Details for
Bug 38653
Obsolete call on system preference 'OPACLocalCoverImagesPriority'
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38653: Remove call on system preference 'OPACLocalCoverImagesPriority'
Bug-38653-Remove-call-on-system-preference-OPACLoc.patch (text/plain), 1.59 KB, created by
Owen Leonard
on 2024-12-09 12:04:30 UTC
(
hide
)
Description:
Bug 38653: Remove call on system preference 'OPACLocalCoverImagesPriority'
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2024-12-09 12:04:30 UTC
Size:
1.59 KB
patch
obsolete
>From da3b33be19c816da31633cad9dea86e26137786c Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Mon, 9 Dec 2024 12:48:12 +0100 >Subject: [PATCH] Bug 38653: Remove call on system preference > 'OPACLocalCoverImagesPriority' > >This is in opac/opac-search.pl a call on system preference >OPACLocalCoverImagesPriority. This preference does not exists elsewhere >and dates back to Koha 3.8 from Bug 1633 > >This patch removes the call and fixes folding of if. > >Check this returns empty : git grep OPACLocalCoverImagesPriority > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > opac/opac-search.pl | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > >diff --git a/opac/opac-search.pl b/opac/opac-search.pl >index a5d80ed585..49b0b467d0 100755 >--- a/opac/opac-search.pl >+++ b/opac/opac-search.pl >@@ -794,9 +794,8 @@ for (my $i=0;$i<@servers;$i++) { > SEARCH_RESULTS => \@newresults, > suppress_result_number => $hide, > ); >- if (C4::Context->preference("OPACLocalCoverImages")){ >- $template->param(OPACLocalCoverImages => 1); >- $template->param(OPACLocalCoverImagesPriority => C4::Context->preference("OPACLocalCoverImagesPriority")); >+ if ( C4::Context->preference("OPACLocalCoverImages") ) { >+ $template->param( OPACLocalCoverImages => 1 ); > } > ## Build the page numbers on the bottom of the page > my ( $page_numbers, $hits_to_paginate, $pages, $current_page_number, $previous_page_offset, $next_page_offset, $last_page_offset ) = >-- >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 38653
:
175298
|
175299
|
175446