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

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

Return to bug 22592