Bug 28663: Prevent discounts against void lines
[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 [% INCLUDE 'header.inc' %]
18 [% INCLUDE 'patron-search.inc' %]
19
20 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
21     <ol>
22         <li>
23             <a href="/cgi-bin/koha/mainpage.pl">Home</a>
24         </li>
25
26         [% IF blocking_error %]
27             <li>
28                 <a href="#" aria-current="page">
29                     Patrons
30                 </a>
31             </li>
32
33         [% ELSE %]
34             <li>
35                 <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
36             </li>
37             <li>
38                 <a href="#" aria-current="page">
39                     Statistics for [% INCLUDE 'patron-title.inc' invert_name = 1 %]
40
41                 </a>
42             </li>
43         [% END %]
44     </ol>
45 </nav>
46
47 <div class="main container-fluid">
48     <div class="row">
49         <div class="col-sm-10 col-sm-push-2">
50             <main>
51
52         [% INCLUDE 'members-toolbar.inc' %]
53
54             <h1>Statistics for [% INCLUDE 'patron-title.inc' %]</h1>
55             [% IF ( datas.size ) %]
56                 <table id="statistics">
57                 <thead>
58                     <tr>
59                       [% FOREACH cn IN column_names %]
60                           <th>
61                             [% SWITCH cn %]
62                             [% CASE 'itype' %]
63                                 Item type
64                             [% CASE 'ccode' %]
65                                 Collection
66                             [% CASE 'location' %]
67                                 Shelving location
68                             [% CASE 'homebranch' %]
69                                 Home library
70                             [% CASE 'holdingbranch' %]
71                                 Holding library
72                             [% CASE %]
73                                 [% cn | html %]
74                             [% END %]
75                           </th>
76                       [% END %]
77                       <th>Total checkouts as of yesterday</th>
78                       <th>Today's checkouts</th>
79                       <th>Today's checkins</th>
80                       <th>Total checkouts</th>
81                     </tr>
82                 </thead>
83
84                 <tbody>
85                     [% FOREACH r IN datas %]
86                         <tr>
87                             [% FOREACH c IN r %]
88                                 <td>[% c | html %]</td>
89                             [% END %]
90                         </tr>
91                     [% END %]
92                 </tbody>
93                 <tfoot>
94                     <tr>
95                         <td colspan="[% column_names.size | html %]">TOTAL</td>
96                         <td>[% count_total_precedent_state | html %]</td>
97                         <td>[% count_total_issues | html %]</td>
98                         <td>[% count_total_issues_returned | html %]</td>
99                         <td>[% count_total_actual_state | html %]</td>
100                     </tr>
101                 </tfoot>
102                 </table>
103             [% ELSE %]
104                 <div class="dialog message">There are no statistics for this patron.</div>
105             [% END %]
106
107             </main>
108         </div> <!-- /.col-sm-10.col-sm-push-2 -->
109
110         <div class="col-sm-2 col-sm-pull-10">
111             <aside>
112                 [% INCLUDE 'circ-menu.inc' %]
113             </aside>
114         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
115      </div> <!-- /.row -->
116
117 [% MACRO jsinclude BLOCK %]
118     [% INCLUDE 'str/members-menu.inc' %]
119     [% Asset.js("js/members-menu.js") | $raw %]
120     [% INCLUDE 'datatables.inc' %]
121     <script>
122         $(document).ready(function() {
123             $("#statistics").dataTable($.extend(true, {}, dataTablesDefaults, {
124                 "sDom": 't',
125                 "bPaginate": false
126             }));
127         });
128     </script>
129 [% END %]
130
131 [% INCLUDE 'intranet-bottom.inc' %]