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

(-)a/catalogue/search.pl (-3 / +3 lines)
Lines 498-504 if ($query_cgi) { Link Here
498
        if ($input_name eq 'idx') {
498
        if ($input_name eq 'idx') {
499
            $scan_index_to_use = $input_value; # unless $scan_index_to_use;
499
            $scan_index_to_use = $input_value; # unless $scan_index_to_use;
500
        }
500
        }
501
        if ($input_name eq 'q') {
501
        if (!defined $scan_search_term_to_use && $input_name eq 'q') {
502
            $scan_search_term_to_use = Encode::decode_utf8( uri_unescape( $input_value ));
502
            $scan_search_term_to_use = Encode::decode_utf8( uri_unescape( $input_value ));
503
        }
503
        }
504
    }
504
    }
Lines 582-589 for (my $i=0;$i<@servers;$i++) { Link Here
582
            $template->param( EnableSearchHistory => 1 );
582
            $template->param( EnableSearchHistory => 1 );
583
        }
583
        }
584
584
585
        ## If there's just one result, redirect to the detail page
585
        ## If there's just one result, redirect to the detail page unless doing an index scan
586
        if ($total == 1) {         
586
        if ($total == 1 && !$scan) {
587
            my $biblionumber = $newresults[0]->{biblionumber};
587
            my $biblionumber = $newresults[0]->{biblionumber};
588
            my $defaultview = C4::Context->preference('IntranetBiblioDefaultView');
588
            my $defaultview = C4::Context->preference('IntranetBiblioDefaultView');
589
            my $views = { C4::Search::enabled_staff_search_views };
589
            my $views = { C4::Search::enabled_staff_search_views };
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt (-2 / +2 lines)
Lines 297-303 Link Here
297
                            [% ELSE %]<option value="ti">Title</option>[% END %]
297
                            [% ELSE %]<option value="ti">Title</option>[% END %]
298
                            [% IF ( ms_ticommaphr ) %]<option selected="selected" value="ti,phr">Title phrase</option>
298
                            [% IF ( ms_ticommaphr ) %]<option selected="selected" value="ti,phr">Title phrase</option>
299
                            [% ELSE %]<option value="ti,phr">Title phrase</option>[% END %]
299
                            [% ELSE %]<option value="ti,phr">Title phrase</option>[% END %]
300
                            [% IF ( ms_aucommaphr ) %]<option selected="selected" value="au,phr">Author</option>
300
                            [% IF ( ms_au || ms_aucommaphr ) %]<option selected="selected" value="au,phr">Author</option>
301
                            [% ELSE %]<option value="au,phr">Author</option>[% END %]
301
                            [% ELSE %]<option value="au,phr">Author</option>[% END %]
302
                            [% IF ( ms_su ) %]<option selected="selected" value="su">Subject</option>
302
                            [% IF ( ms_su ) %]<option selected="selected" value="su">Subject</option>
303
                            [% ELSE %]<option value="su">Subject</option>[% END %]
303
                            [% ELSE %]<option value="su">Subject</option>[% END %]
Lines 315-320 Link Here
315
                            [% ELSE %]<option value="ss">ISSN</option>[% END %]
315
                            [% ELSE %]<option value="ss">ISSN</option>[% END %]
316
                        </select>
316
                        </select>
317
                        <input type="hidden" name="scan" value="1" />
317
                        <input type="hidden" name="scan" value="1" />
318
                        <input class="submit" type="submit" value="Submit" />
318
                    </td>
319
                    </td>
319
                </tr>
320
                </tr>
320
            </table>
321
            </table>
321
- 

Return to bug 22592