View | Details | Raw Unified | Return to bug 18854
Collapse All | Expand All

(-)a/catalogue/search.pl (+1 lines)
Lines 449-454 my $scan = $params->{'scan'}; Link Here
449
my $count = C4::Context->preference('numSearchResults') || 20;
449
my $count = C4::Context->preference('numSearchResults') || 20;
450
my $results_per_page = $params->{'count'} || $count;
450
my $results_per_page = $params->{'count'} || $count;
451
my $offset = $params->{'offset'} || 0;
451
my $offset = $params->{'offset'} || 0;
452
$offset = 0 if $offset < 0;
452
my $page = $cgi->param('page') || 1;
453
my $page = $cgi->param('page') || 1;
453
#my $offset = ($page-1)*$results_per_page;
454
#my $offset = ($page-1)*$results_per_page;
454
my $hits;
455
my $hits;
(-)a/opac/opac-search.pl (-1 / +1 lines)
Lines 521-526 my $count = C4::Context->preference('OPACnumSearchResults') || 20; Link Here
521
my $countRSS         = C4::Context->preference('numSearchRSSResults') || 50;
521
my $countRSS         = C4::Context->preference('numSearchRSSResults') || 50;
522
my $results_per_page = $params->{'count'} || $count;
522
my $results_per_page = $params->{'count'} || $count;
523
my $offset = $params->{'offset'} || 0;
523
my $offset = $params->{'offset'} || 0;
524
$offset = 0 if $offset < 0;
524
my $page = $cgi->param('page') || 1;
525
my $page = $cgi->param('page') || 1;
525
$offset = ($page-1)*$results_per_page if $page>1;
526
$offset = ($page-1)*$results_per_page if $page>1;
526
my $hits;
527
my $hits;
527
- 

Return to bug 18854