Lines 520-525
my $count = C4::Context->preference('OPACnumSearchResults') || 20;
Link Here
|
520 |
my $countRSS = C4::Context->preference('numSearchRSSResults') || 50; |
520 |
my $countRSS = C4::Context->preference('numSearchRSSResults') || 50; |
521 |
my $results_per_page = $params->{'count'} || $count; |
521 |
my $results_per_page = $params->{'count'} || $count; |
522 |
my $offset = $params->{'offset'} || 0; |
522 |
my $offset = $params->{'offset'} || 0; |
|
|
523 |
$offset = -2 if $offset < 0; |
523 |
my $page = $cgi->param('page') || 1; |
524 |
my $page = $cgi->param('page') || 1; |
524 |
$offset = ($page-1)*$results_per_page if $page>1; |
525 |
$offset = ($page-1)*$results_per_page if $page>1; |
525 |
my $hits; |
526 |
my $hits; |
526 |
- |
|
|