Bug 32207: Add page-section to some circulation pages
[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">Home</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 <div class="page-section">
54     <table>
55             <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>
56
57             <tr><td>[% Branches.GetName( homebranch ) | html %]</td>
58                 <td>[% Branches.GetName( holdingbranch ) | html %]</td>
59                 <td>[% IF ( lastdate ) %][% lastdate | $KohaDates %][% ELSE %]Item has no transfer record[% END %]</td>
60                 <td>[% count | html %]</td>
61             </tr>
62     </table>
63 </div> <!-- /.page-section -->
64
65 <div class="page-section">
66     <table>
67         <tr>
68             <th>Library</th>
69             <th>No. of times checked out</th>
70             <th>Last seen</th>
71         </tr>
72         [% FOREACH library IN libraries %]
73         [% IF library.selected %]
74             <tr class="mybranch">
75         [% ELSE %]
76             <tr>
77         [% END %]
78                 <td>[% library.branchname | html %]</td>
79                 <td>[% library.issues | html %]</td>
80                 <td>[% IF library.seen %]
81                         [% library.seen | $KohaDates  with_hours => 1 %]
82                     [% ELSE %]
83                         <span>Never</span>
84                     [% END %]
85                 </td>
86             </tr>
87         [% END %]
88     </table>
89 </div> <!-- /.page-section -->
90
91             </main>
92         </div> <!-- /.col-sm-10.col-sm-push-2 -->
93
94         <div class="col-sm-2 col-sm-pull-10">
95             <aside>
96                 [% INCLUDE 'biblio-view-menu.inc' %]
97             </aside>
98         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
99      </div> <!-- /.row -->
100
101 [% MACRO jsinclude BLOCK %]
102     <script>
103         $(document).ready(function(){
104         $("tr.mybranch td").css("background-color", "#CFE7FF");
105     });
106     </script>
107 [% END %]
108
109 [% INCLUDE 'intranet-bottom.inc' %]