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