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>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit bf82831913)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
Signed-off-by: wainuiwitikapark <wainuiwitikapark@catalyst.net.nz>
This commit is contained in:
Fridolin Somers 2024-12-09 12:48:12 +01:00 committed by wainuiwitikapark
parent 1667d7db42
commit 35bee8465a
1 changed files with 2 additions and 3 deletions

View File

@ -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 ) =