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