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

(-)a/catalogue/search.pl (-1 / +1 lines)
Lines 504-510 for my $this_cgi ( split('&',$query_cgi) ) { Link Here
504
        $scan_index_to_use = $input_value; # unless $scan_index_to_use;
504
        $scan_index_to_use = $input_value; # unless $scan_index_to_use;
505
    }
505
    }
506
    if ($input_name eq 'q') {
506
    if ($input_name eq 'q') {
507
        $scan_search_term_to_use = $input_value;
507
        $scan_search_term_to_use = Encode::decode_utf8( uri_unescape( $input_value ));
508
    }
508
    }
509
}
509
}
510
$template->param ( QUERY_INPUTS => \@query_inputs,
510
$template->param ( QUERY_INPUTS => \@query_inputs,
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt (-2 / +1 lines)
Lines 422-428 var holdForPatron = function () { Link Here
422
                <tr>
422
                <tr>
423
                    <td>
423
                    <td>
424
                        [% IF ( scan_search_term_to_use ) %]
424
                        [% IF ( scan_search_term_to_use ) %]
425
                            Scan Index for: <input type="text" name="q" id="scan-index" size="35" value="[% scan_search_term_to_use %]" />
425
                            Scan Index for: <input type="text" name="q" id="scan-index" size="35" value="[% scan_search_term_to_use | html %]" />
426
                        [% ELSE %]
426
                        [% ELSE %]
427
                            Scan Index for: <input type="text" name="q" id="scan-index" size="35" value="" />
427
                            Scan Index for: <input type="text" name="q" id="scan-index" size="35" value="" />
428
                        [% END %]
428
                        [% END %]
429
- 

Return to bug 17074