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

(-)a/catalogue/search.pl (-1 / +1 lines)
Lines 472-478 my $count = C4::Context->preference('numSearchResults') || 20; Link Here
472
my $results_per_page = $params->{'count'} || $count;
472
my $results_per_page = $params->{'count'} || $count;
473
my $offset = $params->{'offset'} || 0;
473
my $offset = $params->{'offset'} || 0;
474
my $whole_record = $params->{'whole_record'} || 0;
474
my $whole_record = $params->{'whole_record'} || 0;
475
my $weight_search = $params->{'weight_search'} || 0;
475
my $weight_search = $params->{'advsearch'} ? $params->{'weight_search'} || 0 : 1;
476
$offset = 0 if $offset < 0;
476
$offset = 0 if $offset < 0;
477
my $page = $cgi->param('page') || 1;
477
my $page = $cgi->param('page') || 1;
478
#my $offset = ($page-1)*$results_per_page;
478
#my $offset = ($page-1)*$results_per_page;
(-)a/opac/opac-search.pl (-2 / +1 lines)
Lines 530-536 $offset = 0 if $offset < 0; Link Here
530
my $page = $cgi->param('page') || 1;
530
my $page = $cgi->param('page') || 1;
531
$offset = ($page-1)*$results_per_page if $page>1;
531
$offset = ($page-1)*$results_per_page if $page>1;
532
my $hits;
532
my $hits;
533
my $weight_search = $cgi->param('weight_search') || 0;
533
my $weight_search = $cgi->param('advsearch') ? $cgi->param('weight_search') || 0 : 1;
534
534
535
# Define some global variables
535
# Define some global variables
536
my ($error,$query,$simple_query,$query_cgi,$query_desc,$limit,$limit_cgi,$limit_desc,$query_type);
536
my ($error,$query,$simple_query,$query_cgi,$query_desc,$limit,$limit_cgi,$limit_desc,$query_type);
537
- 

Return to bug 24155