Main Koha release repository https://koha-community.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

40 lines
2.0 KiB

[% USE Branches %]
[% IF ( CAN_user_catalogue ) %]
<div id="catalog_search" class="residentsearch">
<form action="/cgi-bin/koha/catalogue/search.pl" method="get" id="cat-search-block">
<span class="form-title">
<label class="control-label">Search catalog</label>
</span>
<span class="form-content">
[% IF ( Koha.Preference('RetainCatalogSearchTerms') ) %]
<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" />
[% ELSE %]
<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" />
[% END %]
<button type="button" class="form-extra-content-toggle"><i class="fa fa-sliders"></i></button>
</span>
<button type="submit"><i class="fa fa-arrow-right"></i></button>
<div class="form-extra-content">
[% IF ( Koha.Preference('IntranetCatalogSearchPulldown') ) %]
<div>
<label for="idx">Search index</label>
[% INCLUDE 'search_indexes.inc' $header_pulldown = 1 %]
</div>
[% END %]
[% IF ( Koha.Preference('IntranetAddMastheadLibraryPulldown') ) %]
<div>
<label for="select_library">Library</label>
<select id="select_library" name="limit">
<option value="">All libraries</option>
[% PROCESS options_for_libraries prefix => "branch:" libraries => Branches.all( selected => branch_limit ) %]
</select>
</div>
[% END %]
</div>
</form>
</div>
[% END %]