Jonathan Druart
04e5c2630c
Test plan: On circ/circulation-home.pl and reserve/request.pl, search for patrons The descriptions for the libraries and patron categories should be displayed. Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> On top of Bug 13336 Works as described, now descriptions instead of codes. No errors Signed-off-by: Nick Clemens <nick@bywatersolutions.com> https://bugs.koha-community.org/show_bug.cgi?id=16455 Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
40 lines
1.8 KiB
HTML
40 lines
1.8 KiB
HTML
<script type="text/javascript">
|
|
$(document).ready(function() {
|
|
$(".clickable").click(function() {
|
|
window.document.location = $(this).data('url');
|
|
});
|
|
var table = $("#table_borrowers").dataTable($.extend(true, {}, dataTablesDefaults, {
|
|
"aaSorting": [ 1, "asc" ],
|
|
"sDom": "t",
|
|
"iDisplayLength": -1
|
|
}));
|
|
});
|
|
</script>
|
|
<legend>Patron selection</legend>
|
|
<table id="table_borrowers" class="table_borrowers">
|
|
<thead>
|
|
<tr>
|
|
<th>Name</th>
|
|
<th>Card number</th>
|
|
<th>Category</th>
|
|
<th>Library</th>
|
|
<th>Address</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
[% FOREACH borrower IN borrowers %]
|
|
[% IF ( destination == "circ" ) %]
|
|
<tr class="clickable" data-url="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% borrower.borrowernumber %]">
|
|
<td><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% borrower.borrowernumber %]">[% borrower.surname %], [% borrower.firstname %]</a></td>
|
|
[% ELSE %]
|
|
<tr class="clickable" data-url="/cgi-bin/koha/reserve/request.pl?borrowernumber=[% borrower.borrowernumber %]&biblionumber=[% biblionumber %]">
|
|
<td><a href="/cgi-bin/koha/reserve/request.pl?borrowernumber=[% borrower.borrowernumber %]&biblionumber=[% biblionumber %]">[% borrower.surname %], [% borrower.firstname %]</a></td>
|
|
[% END %]
|
|
<td>[% borrower.cardnumber %]</td>
|
|
<td>[% Categories.GetName( borrower.categorycode ) %]</td>
|
|
<td>[% Branches.GetName( borrower.branchcode ) %]</td>
|
|
<td>[% borrower.address %]</td>
|
|
</tr>
|
|
[% END %]
|
|
</tbody>
|
|
</table>
|