Jonathan Druart
4edfc7900f
When searching for a patron from the circulation tab, the results table shows the date of birth unformatted. Test plan: Apply this patch, search for patrons in the circ tab and confirm that the date of birth are correctly formatted according to the dateformat syspref Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
43 lines
1.9 KiB
HTML
43 lines
1.9 KiB
HTML
[% USE KohaDates %]
|
|
<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": [ 0, "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>Date of birth</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>[% borrower.dateofbirth | $KohaDates %]</td>
|
|
<td>[% Categories.GetName( borrower.categorycode ) %]</td>
|
|
<td>[% Branches.GetName( borrower.branchcode ) %]</td>
|
|
<td>[% borrower.address %]</td>
|
|
</tr>
|
|
[% END %]
|
|
</tbody>
|
|
</table>
|