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

Return to bug 33505