Bug 28035: Improve breadcrumbs of cataloging search page
[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>Koha &rsaquo; Circulation &rsaquo; Circulation statistics for [% title | html %]</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 [% INCLUDE 'blocking_errors.inc' %]
46 <h2>[% title |html %] [% IF ( author ) %] by [% author |html %][% END %]</h2>
47 <h3>Barcode [% barcode | html %]</h3>
48 <table>
49         <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>
50
51         <tr><td>[% Branches.GetName( homebranch ) | html %]</td>
52             <td>[% Branches.GetName( holdingbranch ) | html %]</td>
53             <td>[% IF ( lastdate ) %][% lastdate | $KohaDates %][% ELSE %]Item has no transfer record[% END %]</td>
54             <td>[% count | html %]</td>
55         </tr>
56 </table>
57 <table>
58     <tr>
59         <th>Library</th>
60         <th>No. of times checked out</th>
61         <th>Last seen</th>
62     </tr>
63     [% FOREACH library IN libraries %]
64     [% IF library.selected %]
65         <tr class="mybranch">
66     [% ELSE %]
67         <tr>
68     [% END %]
69             <td>[% library.branchname | html %]</td>
70             <td>[% library.issues | html %]</td>
71             <td>[% IF library.seen %]
72                     [% library.seen | $KohaDates  with_hours => 1 %]
73                 [% ELSE %]
74                     <span>Never</span>
75                 [% END %]
76             </td>
77         </tr>
78     [% END %]
79 </table>
80
81             </main>
82         </div> <!-- /.col-sm-10.col-sm-push-2 -->
83
84         <div class="col-sm-2 col-sm-pull-10">
85             <aside>
86                 [% INCLUDE 'biblio-view-menu.inc' %]
87             </aside>
88         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
89      </div> <!-- /.row -->
90
91 [% MACRO jsinclude BLOCK %]
92     <script>
93         $(document).ready(function(){
94         $("tr.mybranch td").css("background-color", "#CFE7FF");
95     });
96     </script>
97 [% END %]
98
99 [% INCLUDE 'intranet-bottom.inc' %]