Adding OPACItemsResultsDisplay syspref (missing file from previous commit)

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Paul POULAIN 2008-01-02 13:12:21 -06:00 committed by Joshua Ferraro
parent ee252ad5af
commit 40107f895f

View file

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