Bug 33820: Add hints to warn the librarian that they will be logged out if they chang...
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / statistics.tt
1 [% USE raw %]
2 [% USE Asset %]
3 [% USE Koha %]
4 [% USE AuthorisedValues %]
5 [% USE Branches %]
6 [% SET footerjs = 1 %]
7 [% INCLUDE 'doc-head-open.inc' %]
8 <title>
9     [% UNLESS blocking_error %]
10         Statistics for [% INCLUDE 'patron-title.inc' no_html = 1 %]
11     [% END %] &rsaquo; Patrons &rsaquo; Koha
12 </title>
13 [% INCLUDE 'doc-head-close.inc' %]
14 </head>
15
16 <body id="pat_statistics" class="pat">
17 [% WRAPPER 'header.inc' %]
18     [% INCLUDE 'patron-search-header.inc' %]
19 [% END %]
20
21 [% WRAPPER 'sub-header.inc' %]
22     [% WRAPPER breadcrumbs %]
23         [% WRAPPER breadcrumb_item %]
24             <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
25         [% END %]
26         [% WRAPPER breadcrumb_item %]
27             <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">[% INCLUDE 'patron-title.inc' %]</a>
28         [% END %]
29         [% WRAPPER breadcrumb_item bc_active= 1 %]
30             <span>Statistics</span>
31         [% END %]
32     [% END #/ WRAPPER breadcrumbs %]
33 [% END #/ WRAPPER sub-header.inc %]
34
35 <div class="main container-fluid">
36     <div class="row">
37         <div class="col-sm-10 col-sm-push-2">
38             <main>
39
40         [% INCLUDE 'members-toolbar.inc' %]
41
42             <h1>Statistics for [% INCLUDE 'patron-title.inc' %]</h1>
43             [% IF ( datas.size ) %]
44                 <div class="page-section">
45                     <table id="statistics">
46                     <thead>
47                         <tr>
48                         [% FOREACH cn IN column_names %]
49                             <th>
50                                 [% SWITCH cn %]
51                                 [% CASE 'itype' %]
52                                     <span>Item type</span>
53                                 [% CASE 'ccode' %]
54                                     <span>Collection</span>
55                                 [% CASE 'location' %]
56                                     <span>Shelving location</span>
57                                 [% CASE 'homebranch' %]
58                                     <span>Home library</span>
59                                 [% CASE 'holdingbranch' %]
60                                     <span>Holding library</span>
61                                 [% CASE %]
62                                     <span>[% cn | html %]</span>
63                                 [% END %]
64                             </th>
65                         [% END %]
66                         <th>Total checkouts as of yesterday</th>
67                         <th>Today's checkouts</th>
68                         <th>Today's checkins</th>
69                         <th>Total checkouts</th>
70                         </tr>
71                     </thead>
72
73                     <tbody>
74                         [% FOREACH r IN datas %]
75                             <tr>
76                                 [% FOREACH c IN r %]
77                                     <td>[% c | html %]</td>
78                                 [% END %]
79                             </tr>
80                         [% END %]
81                     </tbody>
82                     <tfoot>
83                         <tr>
84                             <td colspan="[% column_names.size | html %]">TOTAL</td>
85                             <td>[% count_total_precedent_state | html %]</td>
86                             <td>[% count_total_issues | html %]</td>
87                             <td>[% count_total_issues_returned | html %]</td>
88                             <td>[% count_total_actual_state | html %]</td>
89                         </tr>
90                     </tfoot>
91                     </table>
92                 </div> <!-- /.page-section -->
93             [% ELSE %]
94                 <div class="dialog message">There are no statistics for this patron.</div>
95             [% END %]
96
97             </main>
98         </div> <!-- /.col-sm-10.col-sm-push-2 -->
99
100         <div class="col-sm-2 col-sm-pull-10">
101             <aside>
102                 [% INCLUDE 'circ-menu.inc' %]
103             </aside>
104         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
105      </div> <!-- /.row -->
106
107 [% MACRO jsinclude BLOCK %]
108     [% INCLUDE 'str/members-menu.inc' %]
109     [% Asset.js("js/members-menu.js") | $raw %]
110     [% INCLUDE 'datatables.inc' %]
111     <script>
112         $(document).ready(function() {
113             $("#statistics").dataTable($.extend(true, {}, dataTablesDefaults, {
114                 "sDom": 't',
115                 "bPaginate": false
116             }));
117         });
118     </script>
119 [% END %]
120
121 [% INCLUDE 'intranet-bottom.inc' %]