From 7c29d0666b54dfb0f7a34fc66041973055ffed80 Mon Sep 17 00:00:00 2001 From: Fridolin Somers 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 --- 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.47.0