Bug 16522: (follow-up) MARC display templates and get_marc_host fixes
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / catalogue-search-box.inc
1 [% USE Koha %]
2 [% USE Branches %]
3 [% IF ( CAN_user_catalogue ) %]
4     <div id="catalog_search" class="residentsearch">
5         <form action="/cgi-bin/koha/catalogue/search.pl"  method="get" id="cat-search-block">
6             <span class="form-title">
7                 <label class="control-label">Search catalog</label>
8             </span>
9
10             <span class="form-content">
11                 [% IF ( Koha.Preference('RetainCatalogSearchTerms') ) %]
12                     <input type="text" name="q" id="search-form" size="20" value="[% ms_value | html %]" title="Enter the terms you wish to search for." class="query form-text head-searchbox form-control" placeholder="Enter search keywords" />
13                 [% ELSE %]
14                     <input type="text" name="q" id="search-form" size="20" title="Enter the terms you wish to search for." class="query form-text head-searchbox form-control" placeholder="Enter search keywords" />
15                 [% END %]
16
17                 [% IF Koha.Preference('IntranetCatalogSearchPulldown') || Koha.Preference('IntranetAddMastheadLibraryPulldown') %]
18                     <button type="button" class="form-extra-content-toggle"><i class="fa fa-sliders"></i></button>
19                 [% END %]
20             </span>
21             <button type="submit"><i class="fa fa-arrow-right"></i></button>
22
23             <div class="form-extra-content">
24                 [% IF ( Koha.Preference('IntranetCatalogSearchPulldown') ) %]
25                     <div>
26                         <label for="idx">Search index</label>
27                         [% INCLUDE 'search_indexes.inc' $header_pulldown = 1 %]
28                     </div>
29                 [% END %]
30
31                 [% IF ( Koha.Preference('IntranetAddMastheadLibraryPulldown') ) %]
32                     <div>
33                         <label for="select_library">Library</label>
34                         <select id="select_library" name="limit">
35                             <option value="">All libraries</option>
36                             [% PROCESS options_for_libraries prefix => "branch:" libraries => Branches.all( selected => branch_limit ) %]
37                         </select>
38                     </div>
39                 [% END %]
40             </div>
41         </form>
42     </div>
43 [% END %]