Jonathan Druart
bde685fa92
The patron's information displayed in the member module (includes/circ-menu.inc and includes/member-display-address-style-*.inc) are not always displayed the same way. Sometimes the streetnumber is missing, sometimes it's the streettype. Sometimes the streettype is after the address, sometimes before... Test plan: Go on a patron detail page, and open all the tabs on the left (Check out, Fines, Notices, etc.) Without this patch, the patron's info displayed will differ from one page to another. With this patch, they will be displayed the same everywhere. Followed test plan, works as expected. (Tested both patches together.) Signed-off-by: Marc Véron <veron@veron.ch> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
100 lines
3.5 KiB
Text
100 lines
3.5 KiB
Text
[% USE Koha %]
|
|
[% USE AuthorisedValues %]
|
|
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>Koha › Patrons ›
|
|
[% IF ( unknowuser ) %]
|
|
Patron does not exist
|
|
[% ELSE %]
|
|
Statistics for [% INCLUDE 'patron-title.inc' %]
|
|
[% END %]
|
|
</title>
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
|
|
[% INCLUDE 'datatables.inc' %]
|
|
[% INCLUDE 'calendar.inc' %]
|
|
<script type="text/javascript">
|
|
$(document).ready(function() {
|
|
$("#statistics").dataTable($.extend(true, {}, dataTablesDefaults, {
|
|
"sDom": 't',
|
|
"bPaginate": false
|
|
}));
|
|
});
|
|
</script>
|
|
</head>
|
|
|
|
<body id="pat_statistics" class="pat">
|
|
[% INCLUDE 'header.inc' %]
|
|
[% INCLUDE 'patron-search.inc' %]
|
|
|
|
<div id="breadcrumbs">
|
|
<a href="/cgi-bin/koha/mainpage.pl">Home</a>
|
|
› <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
|
|
› [% IF ( unknowuser ) %]Patron does not exist[% ELSE %]Statistics for [% firstname %] [% surname %] ([% cardnumber %])[% END %]
|
|
</div>
|
|
|
|
<div id="doc3" class="yui-t1">
|
|
|
|
<div id="bd">
|
|
<div id="yui-main">
|
|
<div class="yui-b">
|
|
[% INCLUDE 'members-toolbar.inc' %]
|
|
|
|
<h3>Statistics for [% UNLESS ( I ) %][% title %] [% firstname %] [% END %] [% surname %] ([% cardnumber %])</h3>
|
|
[% IF ( datas.size ) %]
|
|
<table id="statistics">
|
|
<thead>
|
|
<tr>
|
|
[% FOREACH cn IN column_names %]
|
|
<th>
|
|
[% SWITCH cn %]
|
|
[% CASE 'itype' %]
|
|
Item type
|
|
[% CASE 'ccode' %]
|
|
Collection code
|
|
[% CASE 'location' %]
|
|
Shelving location
|
|
[% CASE 'homebranch' %]
|
|
Home library
|
|
[% CASE 'holdingbranch' %]
|
|
Holding library
|
|
[% CASE %]
|
|
[% cn %]
|
|
[% END %]
|
|
</th>
|
|
[% END %]
|
|
<th>Total checkouts as of yesterday</th>
|
|
<th>Today's checkouts</th>
|
|
<th>Today's checkins</th>
|
|
<th>Total checkouts</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
[% FOREACH r IN datas %]
|
|
<tr>
|
|
[% FOREACH c IN r %]
|
|
<td>[% c %]</td>
|
|
[% END %]
|
|
</tr>
|
|
[% END %]
|
|
</tbody>
|
|
<tfoot>
|
|
<tr>
|
|
<td colspan="[% column_names.size %]">TOTAL</td>
|
|
<td>[% count_total_precedent_state %]</td>
|
|
<td>[% count_total_issues %]</td>
|
|
<td>[% count_total_issues_returned %]</td>
|
|
<td>[% count_total_actual_state %]</td>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
[% ELSE %]
|
|
<div class="dialog message">There are no statistics for this patron.</div>
|
|
[% END %]
|
|
</div>
|
|
</div>
|
|
<div class="yui-b">
|
|
[% INCLUDE 'circ-menu.inc' %]
|
|
</div>
|
|
</div>
|
|
[% INCLUDE 'intranet-bottom.inc' %]
|