1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Basket User Search</title>
3 [% INCLUDE 'doc-head-close.inc' %]
5 <style type="text/css">
15 <script type="text/javascript">
17 // modify parent window owner element
18 function add_user(borrowernumber, borrowername) {
19 var p = window.opener;
20 if(p.add_basket_user(borrowernumber, borrowername) < 0) {
21 alert(_("Borrower '%s' is already in the list.").format(borrowername));
29 <div id="custom-doc" class="yui-t7">
33 <h3>Search for Basket User</h3>
34 <form action="/cgi-bin/koha/acqui/aqbasketuser_search.pl" method="post">
36 <input type="hidden" name="op" id="op" value="do_search" />
37 <input type="text" name="q" id="q" value="[% q %]" class="focus" />
38 <input type="submit" class="button" value="Search" />
40 <div class="hint">Only staff with superlibrarian or acquisitions permissions (or order_manage permission if granular permissions are enabled) are returned in the search results</div>
44 <p>Searched for <span class="ex">[% q %]</span>, [% nresults %] patron(s) found.</p>
46 [% IF ( users_loop ) %]
58 [% FOREACH user IN users_loop %]
59 [% IF ( user.toggle ) %]
62 <tr class="highlight">
64 <td>[% user.cardnumber %]</td>
65 <td>[% user.surname %], [% user.firstname %]</td>
66 <td>[% user.branchcode %]</td>
67 <td>[% user.categorycode %]</td>
69 <a style="cursor:pointer" onclick="add_user('[% user.borrowernumber %]', '[% user.firstname %] [% user.surname %]');">Add</a>
76 <div id="closewindow"><a href="#" class="close">Close</a></div>
79 [% INCLUDE 'intranet-bottom.inc' %]