From 40107f895fa9c2b1001fd8e5b3f026442c6684eb Mon Sep 17 00:00:00 2001 From: Paul POULAIN Date: Wed, 2 Jan 2008 13:12:21 -0600 Subject: [PATCH] Adding OPACItemsResultsDisplay syspref (missing file from previous commit) Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- opac/opac-search.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/opac/opac-search.pl b/opac/opac-search.pl index a1fc224e28..43dcd7d421 100755 --- a/opac/opac-search.pl +++ b/opac/opac-search.pl @@ -502,7 +502,9 @@ 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); + $template->param(SEARCH_RESULTS => \@newresults, + OPACItemsResultsDisplay => (C4::Context->preference("OPACItemsResultsDisplay") eq "itemdetails"?1:0), + ); ## Build the page numbers on the bottom of the page my @page_numbers; # total number of pages there will be -- 2.39.5