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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt (-46 / +38 lines)
Lines 71-76 Link Here
71
                    <h3>
71
                    <h3>
72
                        [% total | html %] result(s) found [% IF ( query_desc ) %]for <span class="results_query_desc">'[% query_desc | html %]'</span>[% END %][% IF limit_desc  %]&nbsp;with limit(s): <span class="results_limit_desc">'[% limit_desc | html %]'</span>[% END %][% IF ( LibraryName ) %] in [% LibraryName | html %] Catalog[% END %].
72
                        [% total | html %] result(s) found [% IF ( query_desc ) %]for <span class="results_query_desc">'[% query_desc | html %]'</span>[% END %][% IF limit_desc  %]&nbsp;with limit(s): <span class="results_limit_desc">'[% limit_desc | html %]'</span>[% END %][% IF ( LibraryName ) %] in [% LibraryName | html %] Catalog[% END %].
73
                    </h3>
73
                    </h3>
74
75
                [% UNLESS scan %]
74
                    <a href="/cgi-bin/koha/catalogue/search.pl?advsearch=1&edit_search=1&[% query_cgi | $raw %]&[% limit_cgi | $raw %]&sort_by=[% sort_by | $raw %]">Edit this search</a>
76
                    <a href="/cgi-bin/koha/catalogue/search.pl?advsearch=1&edit_search=1&[% query_cgi | $raw %]&[% limit_cgi | $raw %]&sort_by=[% sort_by | $raw %]">Edit this search</a>
75
                    [% IF ( Koha.Preference('SavedSearchFilters') && CAN_user_parameters_manage_search_filters ) %]
77
                    [% IF ( Koha.Preference('SavedSearchFilters') && CAN_user_parameters_manage_search_filters ) %]
76
                        | <a href="#" id="save_search_filter">Save search as filter</a>
78
                        | <a href="#" id="save_search_filter">Save search as filter</a>
Lines 331-336 Link Here
331
333
332
                        </div> <!-- /#selection_ops -->
334
                        </div> <!-- /#selection_ops -->
333
                    </div> <!-- /#searchheader -->
335
                    </div> <!-- /#searchheader -->
336
                [% END %]
334
337
335
                [% ELSE # /IF total %]
338
                [% ELSE # /IF total %]
336
                    <form method="post" name="fz3950" class="fz3950bigrpad">
339
                    <form method="post" name="fz3950" class="fz3950bigrpad">
Lines 365-416 Link Here
365
                <!-- Search Results Table -->
368
                <!-- Search Results Table -->
366
                [% IF ( total ) %]
369
                [% IF ( total ) %]
367
                    [% IF ( scan ) %]
370
                    [% IF ( scan ) %]
368
                        <h1>Scan index:</h1>
371
                        <h2>Scan index</h2>
369
                        <form action="/cgi-bin/koha/catalogue/search.pl" method="get">
372
                        <form action="/cgi-bin/koha/catalogue/search.pl" method="get">
370
                            <table>
373
                           <label for="scan-index">Scan index:</label>
371
                                <tr>
374
                            <select name="idx" id="scan-index">
372
                                    <td>
375
                                [% IF ( header_pulldown == "" ) %]<option selected="selected" value="">Any word</option>
373
                                        [% IF ( scan_search_term_to_use ) %]
376
                                [% ELSE %]<option selected="selected" value="">Any word</option[% END %]
374
                                            Scan index for: <input type="text" name="q" id="scan-index" size="35" value="[% scan_search_term_to_use | html %]" />
377
                                [% IF ( header_pulldown == "ms_anycommaphr" ) %]<option selected="selected" value="any,phr">Any phrase</option>
375
                                        [% ELSE %]
378
                                [% ELSE %]<option value="any,phr">Any phrase</option>[% END %]
376
                                            Scan index for: <input type="text" name="q" id="scan-index" size="35" value="" />
379
                                [% IF ( header_pulldown == "ms_ti" ) %]<option selected="selected" value="ti">Title</option>
377
                                        [% END %]
380
                                [% ELSE %]<option value="ti">Title</option>[% END %]
378
                                    </td>
381
                                [% IF ( header_pulldown == "ms_ticommaphr" ) %]<option selected="selected" value="ti,phr">Title phrase</option>
379
                                </tr>
382
                                [% ELSE %]<option value="ti,phr">Title phrase</option>[% END %]
380
                                <tr>
383
                                [% IF ( header_pulldown == ( "ms_au" || "ms_aucommaphr" ) ) %]<option selected="selected" value="au,phr">Author</option>
381
                                    <td>
384
                                [% ELSE %]<option value="au,phr">Author</option>[% END %]
382
                                        <label for="scan-index">Indexed in: </label>
385
                                [% IF ( header_pulldown == "ms_su" ) %]<option selected="selected" value="su">Subject</option>
383
                                        <select name="idx" id="scan-index">
386
                                [% ELSE %]<option value="su">Subject</option>[% END %]
384
                                            [% IF ( header_pulldown == "" ) %]<option selected="selected" value="">Any word</option>
387
                                [% IF ( header_pulldown == "ms_sucommaphr" ) %]<option selected="selected" value="su,phr">Subject phrase</option>
385
                                            [% ELSE %]<option selected="selected" value="">Any word</option[% END %]
388
                                [% ELSE %]<option value="su,phr">Subject phrase</option>[% END %]
386
                                            [% IF ( header_pulldown == "ms_anycommaphr" ) %]<option selected="selected" value="any,phr">Any phrase</option>
389
                                [% IF ( header_pulldown ==  "ms_se" ) %]<option selected="selected" value="se">Series</option>
387
                                            [% ELSE %]<option value="any,phr">Any phrase</option>[% END %]
390
                                [% ELSE %]<option value="se">Series</option>[% END %]
388
                                            [% IF ( header_pulldown == "ms_ti" ) %]<option selected="selected" value="ti">Title</option>
391
                                [% IF ( header_pulldown ==  "ms_pb" ) %]<option selected="selected" value="pb">Publisher</option>
389
                                            [% ELSE %]<option value="ti">Title</option>[% END %]
392
                                [% ELSE %]<option value="pb">Publisher</option>[% END %]
390
                                            [% IF ( header_pulldown == "ms_ticommaphr" ) %]<option selected="selected" value="ti,phr">Title phrase</option>
393
                                [% IF ( header_pulldown ==  "ms_nt" ) %]<option selected="selected" value="nt">Notes</option>
391
                                            [% ELSE %]<option value="ti,phr">Title phrase</option>[% END %]
394
                                [% ELSE %]<option value="nt">Notes</option>[% END %]
392
                                            [% IF ( header_pulldown == ( "ms_au" || "ms_aucommaphr" ) ) %]<option selected="selected" value="au,phr">Author</option>
395
                                [% IF ( header_pulldown ==  "ms_sn" ) %]<option selected="selected" value="sn">ISBN</option>
393
                                            [% ELSE %]<option value="au,phr">Author</option>[% END %]
396
                                [% ELSE %]<option value="sn">ISBN</option>[% END %]
394
                                            [% IF ( header_pulldown == "ms_su" ) %]<option selected="selected" value="su">Subject</option>
397
                                [% IF ( header_pulldown ==  "ms_ss" ) %]<option selected="selected" value="ss">ISSN</option>
395
                                            [% ELSE %]<option value="su">Subject</option>[% END %]
398
                                [% ELSE %]<option value="ss">ISSN</option>[% END %]
396
                                            [% IF ( header_pulldown == "ms_sucommaphr" ) %]<option selected="selected" value="su,phr">Subject phrase</option>
399
                            </select>
397
                                            [% ELSE %]<option value="su,phr">Subject phrase</option>[% END %]
400
                            [% IF ( scan_search_term_to_use ) %]
398
                                            [% IF ( header_pulldown ==  "ms_se" ) %]<option selected="selected" value="se">Series</option>
401
                                 <input type="text" name="q" id="scan-index-term" size="35" value="[% scan_search_term_to_use | html %]" />
399
                                            [% ELSE %]<option value="se">Series</option>[% END %]
402
                            [% ELSE %]
400
                                            [% IF ( header_pulldown ==  "ms_pb" ) %]<option selected="selected" value="pb">Publisher</option>
403
                                Scan index for: <input type="text" name="q" id="scan-index-term" size="35" value="" />
401
                                            [% ELSE %]<option value="pb">Publisher</option>[% END %]
404
                            [% END %]
402
                                            [% IF ( header_pulldown ==  "ms_nt" ) %]<option selected="selected" value="nt">Notes</option>
405
                            <input type="hidden" name="scan" value="1" />
403
                                            [% ELSE %]<option value="nt">Notes</option>[% END %]
406
                            <input class="submit" type="submit" value="Submit" />
404
                                            [% IF ( header_pulldown ==  "ms_sn" ) %]<option selected="selected" value="sn">ISBN</option>
405
                                            [% ELSE %]<option value="sn">ISBN</option>[% END %]
406
                                            [% IF ( header_pulldown ==  "ms_ss" ) %]<option selected="selected" value="ss">ISSN</option>
407
                                            [% ELSE %]<option value="ss">ISSN</option>[% END %]
408
                                        </select>
409
                                        <input type="hidden" name="scan" value="1" />
410
                                        <input class="submit" type="submit" value="Submit" />
411
                                    </td>
412
                                </tr>
413
                            </table>
414
                        </form>
407
                        </form>
415
408
416
                        <form action="/cgi-bin/koha/catalogue/search.pl" method="get">
409
                        <form action="/cgi-bin/koha/catalogue/search.pl" method="get">
417
- 

Return to bug 33505