Jonathan Druart
e08629b68b
To be nicer with translators. Update the PO files for whichever languages will show how this is useful. Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> Rebased-by: Victor Grousset/tuxayo <victor@tuxayo.net> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
131 lines
4.2 KiB
Text
131 lines
4.2 KiB
Text
[% USE raw %]
|
|
[% USE Asset %]
|
|
[% USE Koha %]
|
|
[% USE AuthorisedValues %]
|
|
[% USE Branches %]
|
|
[% SET footerjs = 1 %]
|
|
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>
|
|
[% UNLESS blocking_error %]
|
|
Statistics for [% INCLUDE 'patron-title.inc' no_html = 1 %]
|
|
[% END %] › Patrons › Koha
|
|
</title>
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
</head>
|
|
|
|
<body id="pat_statistics" class="pat">
|
|
[% INCLUDE 'header.inc' %]
|
|
[% INCLUDE 'patron-search-header.inc' %]
|
|
|
|
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
|
|
<ol>
|
|
<li>
|
|
<a href="/cgi-bin/koha/mainpage.pl">Home</a>
|
|
</li>
|
|
|
|
[% IF blocking_error %]
|
|
<li>
|
|
<a href="#" aria-current="page">
|
|
Patrons
|
|
</a>
|
|
</li>
|
|
|
|
[% ELSE %]
|
|
<li>
|
|
<a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
|
|
</li>
|
|
<li>
|
|
<a href="#" aria-current="page">
|
|
Statistics for [% INCLUDE 'patron-title.inc' invert_name = 1 %]
|
|
|
|
</a>
|
|
</li>
|
|
[% END %]
|
|
</ol>
|
|
</nav>
|
|
|
|
<div class="main container-fluid">
|
|
<div class="row">
|
|
<div class="col-sm-10 col-sm-push-2">
|
|
<main>
|
|
|
|
[% INCLUDE 'members-toolbar.inc' %]
|
|
|
|
<h1>Statistics for [% INCLUDE 'patron-title.inc' %]</h1>
|
|
[% IF ( datas.size ) %]
|
|
<table id="statistics">
|
|
<thead>
|
|
<tr>
|
|
[% FOREACH cn IN column_names %]
|
|
<th>
|
|
[% SWITCH cn %]
|
|
[% CASE 'itype' %]
|
|
<span>Item type</span>
|
|
[% CASE 'ccode' %]
|
|
<span>Collection</span>
|
|
[% CASE 'location' %]
|
|
<span>Shelving location</span>
|
|
[% CASE 'homebranch' %]
|
|
<span>Home library</span>
|
|
[% CASE 'holdingbranch' %]
|
|
<span>Holding library</span>
|
|
[% CASE %]
|
|
<span>[% cn | html %]</span>
|
|
[% 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 | html %]</td>
|
|
[% END %]
|
|
</tr>
|
|
[% END %]
|
|
</tbody>
|
|
<tfoot>
|
|
<tr>
|
|
<td colspan="[% column_names.size | html %]">TOTAL</td>
|
|
<td>[% count_total_precedent_state | html %]</td>
|
|
<td>[% count_total_issues | html %]</td>
|
|
<td>[% count_total_issues_returned | html %]</td>
|
|
<td>[% count_total_actual_state | html %]</td>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
[% ELSE %]
|
|
<div class="dialog message">There are no statistics for this patron.</div>
|
|
[% END %]
|
|
|
|
</main>
|
|
</div> <!-- /.col-sm-10.col-sm-push-2 -->
|
|
|
|
<div class="col-sm-2 col-sm-pull-10">
|
|
<aside>
|
|
[% INCLUDE 'circ-menu.inc' %]
|
|
</aside>
|
|
</div> <!-- /.col-sm-2.col-sm-pull-10 -->
|
|
</div> <!-- /.row -->
|
|
|
|
[% MACRO jsinclude BLOCK %]
|
|
[% INCLUDE 'str/members-menu.inc' %]
|
|
[% Asset.js("js/members-menu.js") | $raw %]
|
|
[% INCLUDE 'datatables.inc' %]
|
|
<script>
|
|
$(document).ready(function() {
|
|
$("#statistics").dataTable($.extend(true, {}, dataTablesDefaults, {
|
|
"sDom": 't',
|
|
"bPaginate": false
|
|
}));
|
|
});
|
|
</script>
|
|
[% END %]
|
|
|
|
[% INCLUDE 'intranet-bottom.inc' %]
|