From 593a1457e533c6918ccc05844a02b222ccdb4726 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 16 Sep 2010 10:35:28 -0400 Subject: [PATCH] Fix for Bug 4268, Definition of OPACItemsResultsDisplay is wrong in searching.pref This patch changes how the preference is checked by opac-search.pl rather than changing the way the data is saved in the systempreferences table. --- opac/opac-search.pl | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/opac/opac-search.pl b/opac/opac-search.pl index 30bc34a..786f846 100755 --- a/opac/opac-search.pl +++ b/opac/opac-search.pl @@ -542,7 +542,7 @@ for (my $i=0;$i<=@servers;$i++) { $template->param(stopwords_removed => "@$stopwords_removed") if $stopwords_removed; $template->param(results_per_page => $results_per_page); $template->param(SEARCH_RESULTS => \@newresults, - OPACItemsResultsDisplay => (C4::Context->preference("OPACItemsResultsDisplay") eq "itemdetails"?1:0), + OPACItemsResultsDisplay => C4::Context->preference("OPACItemsResultsDisplay"), ); ## Build the page numbers on the bottom of the page my @page_numbers; -- 1.7.0.4