From eab6705ce6890e2fdceb3a775c79500521f5e61e Mon Sep 17 00:00:00 2001 From: Joshua Ferraro Date: Sun, 25 Nov 2007 17:54:16 -0600 Subject: [PATCH] adding numSearchResults and OPACnumSearchResults Signed-off-by: Joshua Ferraro --- catalogue/search.pl | 3 ++- opac/opac-search.pl | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/catalogue/search.pl b/catalogue/search.pl index 386db2278b..05054ca6d5 100755 --- a/catalogue/search.pl +++ b/catalogue/search.pl @@ -387,7 +387,8 @@ push @limits, map "yr:".$_, split("\0",$params->{'limit-yr'}) if $params->{'limi # Params that can only have one value my $scan = $params->{'scan'}; -my $results_per_page = $params->{'count'} || 20; +my $count = C4::Context->preference('numSearchResults') || 20; +my $results_per_page = $params->{'count'} || $count; my $offset = $params->{'offset'} || 0; my $page = $cgi->param('page') || 1; #my $offset = ($page-1)*$results_per_page; diff --git a/opac/opac-search.pl b/opac/opac-search.pl index b70606ebd2..044b2a0091 100755 --- a/opac/opac-search.pl +++ b/opac/opac-search.pl @@ -395,7 +395,8 @@ push @limits, map "yr:".$_, split("\0",$params->{'limit-yr'}) if $params->{'limi # Params that can only have one value my $scan = $params->{'scan'}; -my $results_per_page = $params->{'count'} || 20; +my $count = C4::Context->preference('OPACnumSearchResults') || 20; +my $results_per_page = $params->{'count'} || $count; my $offset = $params->{'offset'} || 0; my $page = $cgi->param('page') || 1; #my $offset = ($page-1)*$results_per_page; -- 2.39.5