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

(-)a/catalogue/search.pl (-1 / +1 lines)
Lines 427-433 my $count = C4::Context->preference('numSearchResults') || 20; Link Here
427
my $results_per_page = $params->{'count'} || $count;
427
my $results_per_page = $params->{'count'} || $count;
428
my $offset = $params->{'offset'} || 0;
428
my $offset = $params->{'offset'} || 0;
429
my $whole_record = $params->{'whole_record'} || 0;
429
my $whole_record = $params->{'whole_record'} || 0;
430
my $weight_search = $params->{'weight_search'} || 0;
430
my $weight_search = $params->{'advsearch'} ? $params->{'weight_search'} || 0 : 1;
431
$offset = 0 if $offset < 0;
431
$offset = 0 if $offset < 0;
432
my $page = $cgi->param('page') || 1;
432
my $page = $cgi->param('page') || 1;
433
#my $offset = ($page-1)*$results_per_page;
433
#my $offset = ($page-1)*$results_per_page;
(-)a/opac/opac-search.pl (-2 / +1 lines)
Lines 532-538 $offset = 0 if $offset < 0; Link Here
532
my $page = $cgi->param('page') || 1;
532
my $page = $cgi->param('page') || 1;
533
$offset = ($page-1)*$results_per_page if $page>1;
533
$offset = ($page-1)*$results_per_page if $page>1;
534
my $hits;
534
my $hits;
535
my $weight_search = $cgi->param('weight_search') || 0;
535
my $weight_search = $cgi->param('advsearch') ? $cgi->param('weight_search') || 0 : 1;
536
536
537
# Define some global variables
537
# Define some global variables
538
my ($error,$query,$simple_query,$query_cgi,$query_desc,$limit,$limit_cgi,$limit_desc,$query_type);
538
my ($error,$query,$simple_query,$query_cgi,$query_desc,$limit,$limit_cgi,$limit_desc,$query_type);
539
- 

Return to bug 24155