Bug 17394 - exporting checkouts with items selects without items in combo-box
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / circ-patron-search-results.inc
1 <script type="text/javascript">
2     $(document).ready(function() {
3         $(".clickable").click(function() {
4             window.document.location = $(this).data('url');
5         });
6         var table = $("#table_borrowers").dataTable($.extend(true, {}, dataTablesDefaults, {
7             "aaSorting": [ 0, "asc" ],
8             "sDom": "t",
9             "iDisplayLength": -1
10         }));
11     });
12 </script>
13 <legend>Patron selection</legend>
14 <table id="table_borrowers" class="table_borrowers">
15     <thead>
16         <tr>
17             <th>Name</th>
18             <th>Card number</th>
19             <th>Date of birth</th>
20             <th>Category</th>
21             <th>Library</th>
22             <th>Address</th>
23         </tr>
24     </thead>
25     <tbody>
26         [% FOREACH borrower IN borrowers %]
27             [% IF ( destination == "circ" ) %]
28                 <tr class="clickable" data-url="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% borrower.borrowernumber %]">
29                     <td><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% borrower.borrowernumber %]">[% borrower.surname %], [% borrower.firstname %]</a></td>
30             [% ELSE %]
31                 <tr class="clickable" data-url="/cgi-bin/koha/reserve/request.pl?borrowernumber=[% borrower.borrowernumber %]&amp;biblionumber=[% biblionumber %]">
32                     <td><a href="/cgi-bin/koha/reserve/request.pl?borrowernumber=[% borrower.borrowernumber %]&amp;biblionumber=[% biblionumber %]">[% borrower.surname %], [% borrower.firstname %]</a></td>
33             [% END %]
34                 <td>[% borrower.cardnumber %]</td>
35                 <td>[% borrower.dateofbirth %]</td>
36                 <td>[% Categories.GetName( borrower.categorycode ) %]</td>
37                 <td>[% Branches.GetName( borrower.branchcode ) %]</td>
38                 <td>[% borrower.address %]</td>
39             </tr>
40         [% END %]
41     </tbody>
42 </table>