5 [% PROCESS 'html_helpers.inc' %]
6 [% PROCESS 'patronfields.inc' %]
8 <h1 id="logo"><a href="/cgi-bin/koha/mainpage.pl">[% LibraryName | html %]</a></h1><!-- Begin Patrons Resident Search Box -->
9 <div id="header_search">
10 <div id="patron_search" class="residentsearch">
11 <p class="tip">Enter patron card number or partial name:</p>
12 <form action="/cgi-bin/koha/members/member.pl" method="post">
13 <div class="autocomplete">
14 <input id="searchmember" data-toggle="tooltip" size="25" class="head-searchbox focus" name="searchmember" type="text" value="[% searchmember | html %]" autocomplete="off" />
15 <input type="hidden" name="quicksearch" value="1" />
16 <span class="filteraction" id="filteraction_off"> <a href="#">[-]</a></span>
17 <span class="filteraction" id="filteraction_on"> <a href="#">[+]</a></span>
18 <input value="Search" class="submit" type="submit" />
24 <p><label for="searchfieldstype">Search fields:</label>
25 <select name="searchfieldstype" id="searchfieldstype">
26 [% pref_fields = Koha.Preference('DefaultPatronSearchFields').split(',') %]
27 [% default_fields = [ 'standard', 'surname', 'cardnumber', 'email', 'borrowernumber', 'userid', 'phone', 'address', 'dateofbirth', 'sort1', 'sort2' ] %]
28 [% search_options = default_fields.merge(pref_fields).unique %]
29 [% FOREACH s_o IN search_options %]
30 [% display_name = PROCESS patron_fields name=s_o %]
31 [% NEXT IF !display_name.length %]
32 [% IF searchfieldstype == s_o %]
33 <option selected="selected" value=[% s_o | html %]>[% display_name | $raw %]</option>
35 <option value=[% s_o | html %]>[% display_name | $raw %]</option>
41 <label for="searchtype">Search type:</label>
42 <select name="searchtype" id="searchtype">
43 [% IF searchtype == 'start_with' %]
44 <option selected="selected" value='start_with'>Starts with</option>
45 <option value='contain'>Contains</option>
47 <option value='start_with'>Starts with</option>
48 <option selected="selected" value='contain'>Contains</option>
54 <label for="branchcode">Library: </label>
55 [% SET branches = Branches.all( selected => branchcode_filter, only_from_group => 1 ) %]
56 <select name="branchcode_filter" id="branchcode">
57 [% IF branches.size != 1 %]
58 <option value="">Any</option>
60 [% PROCESS options_for_libraries libraries => branches %]
65 <label for="categorycode">Category: </label>
66 [% SET categories = Categories.all() %]
67 <select name="categorycode_filter" id="categorycode">
68 <option value="">Any</option>
69 [% FOREACH category IN categories %]
70 [% IF category.categorycode == categorycode_filter %]
71 <option value="[% category.categorycode | html %]" selected="selected">[% category.description | html %]</option>
73 <option value="[% category.categorycode | html %]">[% category.description | html %]</option>
81 [% INCLUDE 'patron-search-box.inc' %]
83 [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
84 <div id="checkin_search" class="residentsearch">
85 <p class="tip">Scan a barcode to check in:</p>
86 <form method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off">
87 <input class="head-searchbox" name="barcode" id="ret_barcode" size="40" accesskey="r" type="text" />
88 <input value="Submit" class="submit" type="submit" />
91 <div id="renew_search" class="residentsearch">
92 <p class="tip">Scan a barcode to renew:</p>
93 <form method="post" action="/cgi-bin/koha/circ/renew.pl" autocomplete="off">
94 <input class="head-searchbox" name="barcode" id="ren_barcode" size="40" type="text" />
95 <input value="Submit" class="submit" type="submit" />
100 [% IF ( CAN_user_catalogue ) %]
101 <div id="catalog_search" class="residentsearch">
102 <p class="tip">Enter search keywords:</p>
103 <form action="/cgi-bin/koha/catalogue/search.pl" method="get" id="cat-search-block">
104 [% IF ( Koha.Preference('IntranetCatalogSearchPulldown') ) %][% INCLUDE 'search_indexes.inc' %][% END %]
105 <input type="text" name="q" id="search-form" size="40" value="" title="Enter the terms you wish to search for." class="head-searchbox form-text" />
106 <input type="submit" name="op" id="opac-submit" value="Submit" class="submit" />
111 <li><a class="keep_text" href="#patron_search">Search patrons</a></li>
112 [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]<li><a class="keep_text" href="#circ_search">Check out</a></li>[% END %]
113 [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]<li><a class="keep_text" href="#checkin_search">Check in</a></li>[% END %]
114 [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]<li><a class="keep_text" href="#renew_search">Renew</a></li>[% END %]
115 [% IF ( CAN_user_catalogue ) %]<li><a class="keep_text" href="#catalog_search">Search the catalog</a></li>[% END %]
117 </div><!-- /header_search -->
118 </div><!-- /gradient -->
119 <!-- End Patrons Resident Search Box -->