From b94ddd6cd39edc7a27721296a3d7396800da6d4b Mon Sep 17 00:00:00 2001 From: Paul POULAIN Date: Fri, 20 Jun 2008 17:36:56 +0200 Subject: [PATCH] bugfixing scan index Signed-off-by: Joshua Ferraro --- catalogue/search.pl | 6 +++++- .../intranet-tmpl/prog/en/modules/catalogue/results.tmpl | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/catalogue/search.pl b/catalogue/search.pl index 4d45f6f776..75aab0848a 100755 --- a/catalogue/search.pl +++ b/catalogue/search.pl @@ -414,6 +414,8 @@ my @results; ## parse the query_cgi string and put it into a form suitable for s my @query_inputs; +my $scan_index; + for my $this_cgi ( split('&',$query_cgi) ) { next unless $this_cgi; $this_cgi =~ m/(.*=)(.*)/; @@ -421,8 +423,10 @@ for my $this_cgi ( split('&',$query_cgi) ) { my $input_value = $2; $input_name =~ s/=$//; push @query_inputs, { input_name => $input_name, input_value => $input_value }; + $scan_index = $input_value unless $scan_index; } -$template->param ( QUERY_INPUTS => \@query_inputs ); +$template->param ( QUERY_INPUTS => \@query_inputs, + scan_index => $scan_index ); ## parse the limit_cgi string and put it into a form suitable for s my @limit_inputs; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tmpl index 9b6216f975..3f447c0f85 100755 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tmpl @@ -147,7 +147,7 @@ $(window).load(function() { - """> + &q="""> -- 2.39.5