Jonathan Druart
38526ca13a
There are other scripts where the borrower variable is not defined and the fields are passed one by one. To have a consistent behaviour we should add the title at the different places. Note that this script also add the use of the include file for statistics.tt and remove the pass of parameters to the template, already done later: 99 $template->param(%$borrower); Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
97 lines
3.4 KiB
Text
97 lines
3.4 KiB
Text
[% USE Koha %]
|
|
[% USE AuthorisedValues %]
|
|
[% USE Branches %]
|
|
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>Koha › Patrons ›
|
|
Statistics for [% INCLUDE 'patron-title.inc' %]
|
|
</title>
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/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 [% INCLUDE 'patron-title.inc' invert_name = 1 %][% 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 [% INCLUDE 'patron-title.inc' %]</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' %]
|