Hi Paul,
Can you give more information about what the current bugs with scan
index are and how this patch resolves them?
Thanks,
Josh
On Mon, Jun 02, 2008 at 03:39:16PM +0200, [EMAIL PROTECTED] wrote:
> From: Paul POULAIN <[EMAIL PROTECTED]>
>
> diff --git a/catalogue/search.pl b/catalogue/search.pl
> index 10ec0e3..866f4cb 100755
> --- a/catalogue/search.pl
> +++ b/catalogue/search.pl
> @@ -396,6 +396,8 @@ my @results;
>
> ## parse the query_cgi string and put it into a form suitable for <input>s
> my @query_inputs;
> +my $scan_index;
> +
> for my $this_cgi ( split('&',$query_cgi) ) {
> next unless $this_cgi;
> $this_cgi =~ m/(.*=)(.*)/;
> @@ -403,8 +405,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 => [EMAIL PROTECTED] );
> +$template->param ( QUERY_INPUTS => [EMAIL PROTECTED],
> + scan_index => $scan_index );
>
> ## parse the limit_cgi string and put it into a form suitable for <input>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 795d674..dbc26e6 100755
> --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tmpl
> +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tmpl
> @@ -151,7 +151,7 @@ $(window).load(function() {
> <tr>
> <!-- /TMPL_IF -->
> <td>
> - <a
> href="/cgi-bin/koha/catalogue/search.pl?q=<!-- TMPL_VAR NAME="scan_use"
> escape="url" -->"<!-- TMPL_VAR NAME="title_nospan" -->""><!--
> TMPL_VAR NAME="title" --></a>
> + <a
> href="/cgi-bin/koha/catalogue/search.pl?idx=<!-- TMPL_VAR name="scan_index"
> -->&q=<!-- TMPL_VAR NAME="scan_use" escape="url" -->"<!-- TMPL_VAR
> NAME="title_nospan" -->""><!-- TMPL_VAR NAME="title" --></a>
> </td>
> <td>
> <!-- TMPL_VAR NAME="author" -->
> --
> 1.5.3.2
>
> _______________________________________________
> Koha-patches mailing list
> [email protected]
> http://lists.koha.org/mailman/listinfo/koha-patches
_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches