5 <h1 id="logo"><a href="/cgi-bin/koha/mainpage.pl">[% LibraryName | html %]</a></h1><!-- Begin Patrons Resident Search Box -->
6 <div id="header_search">
7 <div id="patron_search" class="residentsearch">
8 <p class="tip">Enter patron card number or partial name:</p>
9 <form action="/cgi-bin/koha/members/member.pl" method="post">
10 <input id="searchmember" data-toggle="tooltip" size="25" class="head-searchbox focus" name="searchmember" type="text" value="[% searchmember | html %]"/>
11 <input type="hidden" name="quicksearch" value="1" />
12 <span class="filteraction" id="filteraction_off"> <a href="#">[-]</a></span>
13 <span class="filteraction" id="filteraction_on"> <a href="#">[+]</a></span>
15 <input value="Search" class="submit" type="submit" />
18 <p><label for="searchfieldstype">Search fields:</label>
19 <select name="searchfieldstype" id="searchfieldstype">
20 [% IF searchfieldstype == "standard" %]
21 <option selected="selected" value='standard'>Standard</option>
23 <option value='standard'>Standard</option>
25 [% IF searchfieldstype == "surname" %]
26 <option selected="selected" value='surname'>Surname</option>
28 <option value='surname'>Surname</option>
30 [% IF searchfieldstype == "email" %]
31 <option selected="selected" value='email'>Email</option>
33 <option value='email'>Email</option>
35 [% IF searchfieldstype == "borrowernumber" %]
36 <option selected="selected" value='borrowernumber'>Borrower number</option>
38 <option value='borrowernumber'>Borrower number</option>
40 [% IF searchfieldstype == "userid" %]
41 <option selected="selected" value='userid'>Username</option>
43 <option value='userid'>Username</option>
45 [% IF searchfieldstype == "phone" %]
46 <option selected="selected" value='phone'>Phone number</option>
48 <option value='phone'>Phone number</option>
50 [% IF searchfieldstype == "address" %]
51 <option selected="selected" value='address'>Street address</option>
53 <option value='address'>Street address</option>
55 [% IF searchfieldstype == "dateofbirth" %]
56 <option selected="selected" value='dateofbirth'>Date of birth</option>
58 <option value='dateofbirth'>Date of birth</option>
60 [% IF searchfieldstype == "sort1" %]
61 <option selected="selected" value='sort1'>Sort field 1</option>
63 <option value='sort1'>Sort field 1</option>
65 [% IF searchfieldstype == "sort2" %]
66 <option selected="selected" value='sort2'>Sort field 2</option>
68 <option value='sort2'>Sort field 2</option>
74 <label for="searchtype">Search type:</label>
75 <select name="searchtype" id="searchtype">
76 [% IF searchtype == 'start_with' %]
77 <option selected="selected" value='start_with'>Starts with</option>
78 <option value='contain'>Contains</option>
80 <option value='start_with'>Starts with</option>
81 <option selected="selected" value='contain'>Contains</option>
87 <label for="branchcode">Library: </label>
88 [% SET branches = Branches.all( selected => branchcode_filter, only_my_group => 1 ) %]
89 <select name="branchcode_filter" id="branchcode">
90 [% IF branches.size != 1 %]
91 <option value="">Any</option>
93 [% FOREACH b IN branches %]
95 <option value="[% b.branchcode | html %]" selected="selected">[% b.branchname | html %]</option>
97 <option value="[% b.branchcode | html %]">[% b.branchname | html %]</option>
104 <label for="categorycode">Category: </label>
105 [% SET categories = Categories.all() %]
106 <select name="categorycode_filter" id="categorycode">
107 <option value="">Any</option>
108 [% FOREACH category IN categories %]
109 [% IF category.categorycode == categorycode_filter %]
110 <option value="[% category.categorycode | html %]" selected="selected">[% category.description | html %]</option>
112 <option value="[% category.categorycode | html %]">[% category.description | html %]</option>
120 [% INCLUDE 'patron-search-box.inc' %]
122 [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
123 <div id="checkin_search" class="residentsearch">
124 <p class="tip">Scan a barcode to check in:</p>
125 <form method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off">
126 <input class="head-searchbox" name="barcode" id="ret_barcode" size="40" accesskey="r" type="text" />
127 <input value="Submit" class="submit" type="submit" />
130 <div id="renew_search" class="residentsearch">
131 <p class="tip">Scan a barcode to renew:</p>
132 <form method="post" action="/cgi-bin/koha/circ/renew.pl" autocomplete="off">
133 <input class="head-searchbox" name="barcode" id="ren_barcode" size="40" type="text" />
134 <input value="Submit" class="submit" type="submit" />
139 [% IF ( CAN_user_catalogue ) %]
140 <div id="catalog_search" class="residentsearch">
141 <p class="tip">Enter search keywords:</p>
142 <form action="/cgi-bin/koha/catalogue/search.pl" method="get" id="cat-search-block">
143 [% IF ( Koha.Preference('IntranetCatalogSearchPulldown') ) %][% INCLUDE 'search_indexes.inc' %][% END %]
144 <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" />
145 <input type="submit" name="op" id="opac-submit" value="Submit" class="submit" />
150 <li><a class="keep_text" href="#patron_search">Search patrons</a></li>
151 [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]<li><a class="keep_text" href="#circ_search">Check out</a></li>[% END %]
152 [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]<li><a class="keep_text" href="#checkin_search">Check in</a></li>[% END %]
153 [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]<li><a class="keep_text" href="#renew_search">Renew</a></li>[% END %]
154 [% IF ( CAN_user_catalogue ) %]<li><a class="keep_text" href="#catalog_search">Search the catalog</a></li>[% END %]
156 </div><!-- /header_search -->
157 </div><!-- /gradient -->
158 <!-- End Patrons Resident Search Box -->