[% INCLUDE 'doc-head-open.inc' %]
-<title>Koha › Patrons [% IF ( searching ) %]› Search Results[% END %]</title>
+<title>Koha › Patrons [% IF ( searching ) %]› Search results[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
<style type="text/css">
#custom-doc { width:47.23em;*width:46.04em;min-width:600px; margin:auto; text-align:left; }
</style>
-<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
+<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
<script type="text/javascript">
//<![CDATA[
$(document).ready(function(){
//]]>
</script>
</head>
-<body>
+<body id="pcard_members-search" class="tools pcard">
<div id="custom-doc" class="yui-t7">
<div id="bd">
<div class="yui-g">
-<h3>Patron Search</h3>
+<h3>Patron search</h3>
<div class="browse">
Browse by last name:
- <a href="/cgi-bin/koha/patroncards/members-search.pl?member=a&batch_id=[% batch_id %]">A</a>
- <a href="/cgi-bin/koha/patroncards/members-search.pl?member=b&batch_id=[% batch_id %]">B</a>
- <a href="/cgi-bin/koha/patroncards/members-search.pl?member=c&batch_id=[% batch_id %]">C</a>
- <a href="/cgi-bin/koha/patroncards/members-search.pl?member=d&batch_id=[% batch_id %]">D</a>
- <a href="/cgi-bin/koha/patroncards/members-search.pl?member=e&batch_id=[% batch_id %]">E</a>
- <a href="/cgi-bin/koha/patroncards/members-search.pl?member=f&batch_id=[% batch_id %]">F</a>
- <a href="/cgi-bin/koha/patroncards/members-search.pl?member=g&batch_id=[% batch_id %]">G</a>
- <a href="/cgi-bin/koha/patroncards/members-search.pl?member=h&batch_id=[% batch_id %]">H</a>
- <a href="/cgi-bin/koha/patroncards/members-search.pl?member=i&batch_id=[% batch_id %]">I</a>
- <a href="/cgi-bin/koha/patroncards/members-search.pl?member=j&batch_id=[% batch_id %]">J</a>
- <a href="/cgi-bin/koha/patroncards/members-search.pl?member=k&batch_id=[% batch_id %]">K</a>
- <a href="/cgi-bin/koha/patroncards/members-search.pl?member=l&batch_id=[% batch_id %]">L</a>
- <a href="/cgi-bin/koha/patroncards/members-search.pl?member=m&batch_id=[% batch_id %]">M</a>
- <a href="/cgi-bin/koha/patroncards/members-search.pl?member=n&batch_id=[% batch_id %]">N</a>
- <a href="/cgi-bin/koha/patroncards/members-search.pl?member=o&batch_id=[% batch_id %]">O</a>
- <a href="/cgi-bin/koha/patroncards/members-search.pl?member=p&batch_id=[% batch_id %]">P</a>
- <a href="/cgi-bin/koha/patroncards/members-search.pl?member=q&batch_id=[% batch_id %]">Q</a>
- <a href="/cgi-bin/koha/patroncards/members-search.pl?member=r&batch_id=[% batch_id %]">R</a>
- <a href="/cgi-bin/koha/patroncards/members-search.pl?member=s&batch_id=[% batch_id %]">S</a>
- <a href="/cgi-bin/koha/patroncards/members-search.pl?member=t&batch_id=[% batch_id %]">T</a>
- <a href="/cgi-bin/koha/patroncards/members-search.pl?member=u&batch_id=[% batch_id %]">U</a>
- <a href="/cgi-bin/koha/patroncards/members-search.pl?member=v&batch_id=[% batch_id %]">V</a>
- <a href="/cgi-bin/koha/patroncards/members-search.pl?member=w&batch_id=[% batch_id %]">W</a>
- <a href="/cgi-bin/koha/patroncards/members-search.pl?member=x&batch_id=[% batch_id %]">X</a>
- <a href="/cgi-bin/koha/patroncards/members-search.pl?member=y&batch_id=[% batch_id %]">Y</a>
- <a href="/cgi-bin/koha/patroncards/members-search.pl?member=z&batch_id=[% batch_id %]">Z</a>
+ [% FOREACH letter IN alphabet.split(' ') %]
+ <a href="/cgi-bin/koha/patroncards/members-search.pl?not_attributes=1&member=[% letter %]&batch_id=[% batch_id %]">[% letter %]</a>
+ [% END %]
</div>
<form method="get" action="/cgi-bin/koha/patroncards/members-search.pl"><p>
<input type="hidden" name="batch_id" value="[% batch_id %]" />
<input type="hidden" name="type" value="[% type %]" />
-<label for="member">Name</label>
-<input id="member" name="member" />
-<label for="category">Category code</label>
-<input id="category" name="category" />
+<label for="member">Name: </label>
+<input id="member" name="member" value="[% member %]" />
+
+[% UNLESS ( no_categories ) %]
+ <label for="category">Category: </label>
+ <select name="category" id="category">
+ <option value="">Any</option>
+ [% FOREACH categorie IN categories %]
+ [% IF ( categorie.categorycode == category ) %]
+ <option value="[% categorie.categorycode %]" selected="selected">[% categorie.description |html_entity %]</option>
+ [% ELSE %]
+ <option value="[% categorie.categorycode %]">[% categorie.description |html_entity %]</option>
+ [% END %]
+ [% END %]
+ </select>
+[% END %]
+
<input type="submit" value="Search" /></p>
</form>
[% IF ( resultsloop ) %]
-<div id="searchheader"> <h3>Results [% from %] to [% to %] of [% numresults %] found for [% IF ( member ) %]name: '<span class="ex">[% member %][% ELSIF ( category_type ) %]category code: '<span class="ex">[% category_type %][% END %]</span>'</h3></div>
+<div id="searchheader"> <h3>Results [% from %] to [% to %] of [% numresults %] found [% IF ( member ) %]for name: '<span class="ex">[% member %]</span>'[% END %] [% IF ( category ) %]with category code: '<span class="ex">[% category %]</span>'[% END %]</h3></div>
[% IF ( paginationbar ) %]<div id="pagination_top" class="pages">[% paginationbar %]</div>[% END %]
<form name="resultform" action="/cgi-bin/koha/patroncards/members-search.pl" method="get" class="checkboxed"><div style="float: right; margin-top: .5em;"><input type="submit" class="icon addchecked" value="Add checked" onclick="add_item('checked',[% batch_id %]); return false" /> <input type="button" class="close" value="Done" /></div>
<div style="line-height: 2em; margin-left: .7em;"><a id="CheckAll" href="/cgi-bin/koha/patroncards/members-search.pl">Select All</a><a id="CheckNone" href="/cgi-bin/koha/patroncards/members-search.pl">Clear All</a></div>
<table style="float: left; margin: .5em 0;">
<tr>
- <th><label style="font-weight:bold;">Select</label></th>
- <th><a href="members-search.pl?member=[% member %]&category=[% category_type %]&batch_id=[% batch_id %]&orderby=cardnumber">Card</a></th>
- <th><a href="members-search.pl?member=[% member %]&category=[% category_type %]&batch_id=[% batch_id %]&orderby=surname">Name</a></th>
- <th><a href="members-search.pl?member=[% member %]&category=[% category_type %]&batch_id=[% batch_id %]&orderby=borrowers.categorycode">Category</a></th>
- <th><a href="members-search.pl?member=[% member %]&category=[% category_type %]&batch_id=[% batch_id %]&orderby=branchcode">Library</a></th>
+ <th>Select</th>
+ <th><a href="members-search.pl?member=[% member %]&category=[% category %]&batch_id=[% batch_id %]&orderby=cardnumber">Card</a></th>
+ <th><a href="members-search.pl?member=[% member %]&category=[% category %]&batch_id=[% batch_id %]&orderby=surname">Name</a></th>
+ <th><a href="members-search.pl?member=[% member %]&category=[% category %]&batch_id=[% batch_id %]&orderby=borrowers.categorycode">Category</a></th>
+ <th><a href="members-search.pl?member=[% member %]&category=[% category %]&batch_id=[% batch_id %]&orderby=branchcode">Library</a></th>
<th>Expires on</th>
<th>Notes</th>
<th></th>
<td> <input type="checkbox" name="borrowernumber" id="patron[% resultsloo.borrowernumber %]" value="[% resultsloo.borrowernumber %]" /> </td>
<td>[% resultsloo.cardnumber %]</td>
<td style="white-space: nowrap;"><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% resultsloo.borrowernumber %]">[% resultsloo.surname %], [% resultsloo.firstname %]</a> <br /> [% resultsloo.address %][% IF ( resultsloo.address2 ) %]<br />[% resultsloo.address2 %][% END %][% IF ( resultsloo.city ) %]<br />[% resultsloo.city %][% END %]</td>
- <td>[% resultsloo.category_description %] ([% resultsloo.category_type %])</td>
+ <td>[% resultsloo.category_description %] ([% resultsloo.categorycode %])</td>
<td>[% resultsloo.branchcode %]</td>
<td>[% resultsloo.dateexpiry %]</td>
<td>[% resultsloo.borrowernotes %]</td>