Bug 30952: Staff interface redesign (header)
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / circ / bookcount.tt
1 [% USE Koha %]
2 [% USE KohaDates %]
3 [% USE Branches %]
4 [% SET footerjs = 1 %]
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Circulation statistics for [% title | html %] &rsaquo; Circulation &rsaquo; Koha</title>
7 [% INCLUDE 'doc-head-close.inc' %]
8 </head>
9
10 <body id="circ_bookcount" class="circ">
11 [% WRAPPER 'header.inc' %]
12     [% INCLUDE 'circ-search.inc' %]
13 [% END %]
14
15 [% WRAPPER 'sub-header.inc' %]
16 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
17     <ol>
18         <li>
19             <a href="/cgi-bin/koha/mainpage.pl"><i class="fa fa-home"></i></a>
20         </li>
21
22         [% IF blocking_error %]
23             <li>
24                 <a href="#" aria-current="page">
25                     Circulation
26                 </a>
27             </li>
28
29         [% ELSE %]
30             <li>
31                 <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a>
32             </li>
33             <li>
34                 <a href="#" aria-current="page">
35                     Circulation statistics for [% title |html %]
36                 </a>
37             </li>
38         [% END %]
39     </ol>
40 </nav>
41 [% END %]
42
43 <div class="main container-fluid">
44     <div class="row">
45         <div class="col-sm-10 col-sm-push-2">
46             <main>
47
48                 <h1>Circulation statistics for [% title | html %] [% IF ( author ) %] by [% author |html %][% END %]</h1>
49
50 [% INCLUDE 'blocking_errors.inc' %]
51
52 <h3>Barcode [% barcode | html %]</h3>
53 <table>
54         <tr><th>Home library</th><th>Current library</th><th>Date arrived<br />at current library </th><th>Number of checkouts<br />since last transfer</th></tr>
55
56         <tr><td>[% Branches.GetName( homebranch ) | html %]</td>
57             <td>[% Branches.GetName( holdingbranch ) | html %]</td>
58             <td>[% IF ( lastdate ) %][% lastdate | $KohaDates %][% ELSE %]Item has no transfer record[% END %]</td>
59             <td>[% count | html %]</td>
60         </tr>
61 </table>
62 <table>
63     <tr>
64         <th>Library</th>
65         <th>No. of times checked out</th>
66         <th>Last seen</th>
67     </tr>
68     [% FOREACH library IN libraries %]
69     [% IF library.selected %]
70         <tr class="mybranch">
71     [% ELSE %]
72         <tr>
73     [% END %]
74             <td>[% library.branchname | html %]</td>
75             <td>[% library.issues | html %]</td>
76             <td>[% IF library.seen %]
77                     [% library.seen | $KohaDates  with_hours => 1 %]
78                 [% ELSE %]
79                     <span>Never</span>
80                 [% END %]
81             </td>
82         </tr>
83     [% END %]
84 </table>
85
86             </main>
87         </div> <!-- /.col-sm-10.col-sm-push-2 -->
88
89         <div class="col-sm-2 col-sm-pull-10">
90             <aside>
91                 [% INCLUDE 'biblio-view-menu.inc' %]
92             </aside>
93         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
94      </div> <!-- /.row -->
95
96 [% MACRO jsinclude BLOCK %]
97     <script>
98         $(document).ready(function(){
99         $("tr.mybranch td").css("background-color", "#CFE7FF");
100     });
101     </script>
102 [% END %]
103
104 [% INCLUDE 'intranet-bottom.inc' %]