Lines 492-497
my $searcher = Koha::SearchEngine::Search->new(
Link Here
|
492 |
## parse the query_cgi string and put it into a form suitable for <input>s |
492 |
## parse the query_cgi string and put it into a form suitable for <input>s |
493 |
my @query_inputs; |
493 |
my @query_inputs; |
494 |
my $scan_index_to_use; |
494 |
my $scan_index_to_use; |
|
|
495 |
my $scan_search_term_to_use; |
495 |
|
496 |
|
496 |
for my $this_cgi ( split('&',$query_cgi) ) { |
497 |
for my $this_cgi ( split('&',$query_cgi) ) { |
497 |
next unless $this_cgi; |
498 |
next unless $this_cgi; |
Lines 502-510
for my $this_cgi ( split('&',$query_cgi) ) {
Link Here
|
502 |
if ($input_name eq 'idx') { |
503 |
if ($input_name eq 'idx') { |
503 |
$scan_index_to_use = $input_value; # unless $scan_index_to_use; |
504 |
$scan_index_to_use = $input_value; # unless $scan_index_to_use; |
504 |
} |
505 |
} |
|
|
506 |
if ($input_name eq 'q') { |
507 |
$scan_search_term_to_use = $input_value; |
508 |
} |
505 |
} |
509 |
} |
506 |
$template->param ( QUERY_INPUTS => \@query_inputs, |
510 |
$template->param ( QUERY_INPUTS => \@query_inputs, |
507 |
scan_index_to_use => $scan_index_to_use ); |
511 |
scan_index_to_use => $scan_index_to_use, |
|
|
512 |
scan_search_term_to_use => $scan_search_term_to_use ); |
508 |
|
513 |
|
509 |
## parse the limit_cgi string and put it into a form suitable for <input>s |
514 |
## parse the limit_cgi string and put it into a form suitable for <input>s |
510 |
my @limit_inputs; |
515 |
my @limit_inputs; |