3 <h1 id="logo"><a href="/cgi-bin/koha/mainpage.pl">[% LibraryName %]</a></h1><!-- Begin Patrons Resident Search Box -->
4 <div id="header_search">
5 <div id="patron_search" class="residentsearch">
6 <p class="tip">Enter patron card number or partial name:</p>
7 <form action="/cgi-bin/koha/members/member.pl" method="post">
8 <input id="searchmember" size="25" class="focus" name="member" type="text" value="[% member %]"/>
9 <span class="filteraction" id="filteraction_off"> <a href="#" onclick="$('#filters').toggle();$('.filteraction').toggle();">[-]</a></span>
10 <span class="filteraction" id="filteraction_on"> <a href="#" onclick="$('#filters').toggle();$('.filteraction').toggle();">[+]</a></span>
12 <input value="Search" class="submit" type="submit" />
15 <p><label for="searchfields">Search fields:</label>
16 <select name="searchfields" id="searchfields">
17 <option selected="selected" value=''>Standard</option>
18 <option value='email,emailpro,B_email,'>Email</option>
19 <option value='borrowernumber'>Borrower number</option>
20 <option value='phone,phonepro,B_phone,altcontactphone,mobile'>Phone number</option>
21 <option value='streettype,address,address2,city,state,zipcode,country'>Street Address</option>
22 <option value='dateofbirth'>Date of birth</option>
24 <script type="text/javascript">
25 [% SET dateformat = Koha.Preference('dateformat') %]
26 $("#searchfields").change(function() {
27 if ( $(this).val() == 'dateofbirth' ) {
28 [% IF dateformat == 'us' %]
29 [% SET format = 'MM/DD/YYYY' %]
30 [% ELSIF dateformat == 'iso' %]
31 [% SET format = 'YYYY-MM-DD' %]
32 [% ELSIF dateformat == 'metric' %]
33 [% SET format = 'DD/MM/YYYY' %]
36 $('#searchmember').qtip({
37 content: 'Dates of birth should be entered in the format "[% format %]"',
43 $('#searchmember').qtip('destroy');
48 <p><label for="searchtype">Search type:</label>
49 <select name="searchtype" id="searchtype">
50 <option selected="selected" value=''>Starts with</option>
51 <option value='contain'>Contains</option>
54 <p><label for="searchorderby">Order by:</label>
55 <select name="orderby" id="searchorderby">
56 <option value="">Surname, Firstname</option>
57 <option value="cardnumber,0">Cardnumber</option>
59 [% IF ( branchloop ) %] <p><label for="branchcode">Library: </label><select name="branchcode" id="branchcode">
60 <option value="">Any</option>[% FOREACH branchloo IN branchloop %]
61 [% IF ( branchloo.selected ) %]
62 <option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>[% ELSE %]
63 <option value="[% branchloo.value %]">[% branchloo.branchname %]</option>[% END %]
64 [% END %]</select></p>
66 [% IF ( categories ) %]
67 <p><label for="categorycode">Category: </label><select name="categorycode" id="categorycode">
68 <option value="">Any</option>[% FOREACH categorie IN categories %]
69 [% IF ( categorie.selected ) %]
70 <option value="[% categorie.categorycode %]" selected="selected">[% categorie.description %]</option>[% ELSE %]
71 <option value="[% categorie.categorycode %]">[% categorie.description %]</option>[% END %]
72 [% END %]</select></p>
78 [% INCLUDE 'patron-search-box.inc' %]
80 [% IF ( CAN_user_catalogue ) %]
81 <div id="catalog_search" class="residentsearch">
82 <p class="tip">Enter search keywords:</p>
83 <form action="/cgi-bin/koha/catalogue/search.pl" method="get" id="cat-search-block">
84 <input type="text" name="q" id="search-form" size="40" value="" title="Enter the terms you wish to search for." class="form-text" />
85 <input type="submit" name="op" id="opac-submit" value="Submit" class="submit" />
88 [% IF ( CAN_user_circulate ) %]
89 <div id="checkin_search" class="residentsearch">
90 <p class="tip">Scan a barcode to check in:</p>
91 <form method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off">
92 <input name="barcode" id="ret_barcode" size="40" accesskey="r" />
93 <input value="Submit" class="submit" type="submit" />
98 <li><a href="#patron_search">Search patrons</a></li>
99 [% IF ( CAN_user_circulate ) %]<li><a href="#circ_search">Check out</a></li>[% END %]
100 [% IF ( CAN_user_circulate ) %]<li><a href="#checkin_search">Check in</a></li>[% END %]
101 [% IF ( CAN_user_catalogue ) %]<li><a href="#catalog_search">Search the catalog</a></li>[% END %]
103 </div><!-- /header_search -->
104 </div><!-- /gradient -->
105 <script type="text/javascript">//<![CDATA[
106 $(document).ready(function() {
107 [% IF ( advsearch ) %]$("#filteraction_on").toggle();
108 [% ELSE %]$("#filters").toggle();
109 $("#filteraction_off").toggle();[% END %]
113 <!-- End Patrons Resident Search Box -->