Bug 20661: Shortcut circ scripts if a blocking error appeared
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / circ / bookcount.tt
1 [% USE KohaDates %]
2 [% USE Branches %]
3 [% SET footerjs = 1 %]
4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>Koha &rsaquo; Circulation &rsaquo; Circulation statistics for [% title |html %]</title>
6 [% INCLUDE 'doc-head-close.inc' %]
7 </head>
8
9 <body id="circ_bookcount" class="circ">
10 [% INCLUDE 'header.inc' %]
11 [% INCLUDE 'circ-search.inc' %]
12
13 <div id="breadcrumbs">
14     <a href="/cgi-bin/koha/mainpage.pl">Home</a>
15     &rsaquo; <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a>
16     [% UNLESS blocking_error %]&rsaquo; Circulation statistics for [% title |html %][% END %]
17 </div>
18
19 <div id="doc3" class="yui-t2">
20    
21    <div id="bd">
22         <div id="yui-main">
23         <div class="yui-b">
24
25 [% INCLUDE 'blocking_errors.inc' %]
26 <h2>[% title |html %] [% IF ( author ) %] by [% author |html %][% END %]</h2>
27 <h3>Barcode [% barcode %]</h3>
28 <table>
29         <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>
30
31         <tr><td>[% Branches.GetName( homebranch ) %]</td>
32             <td>[% Branches.GetName( holdingbranch ) %]</td>
33             <td>[% IF ( lastdate ) %][% lastdate | $KohaDates %][% ELSE %]Item has no transfer record[% END %]</td>
34             <td>[% count %]</td>
35         </tr>
36 </table>
37 <table>
38     <tr>
39         <th>Library</th>
40         <th>No. of times checked out</th>
41         <th>Last seen</th>
42     </tr>
43     [% FOREACH library IN libraries %]
44     [% IF library.selected %]
45         <tr class="mybranch">
46     [% ELSE %]
47         <tr>
48     [% END %]
49             <td>[% library.branchname %]</td>
50             <td>[% library.issues %]</td>
51             <td>[% IF library.seen %]
52                     [% library.seen | $KohaDates with_hours => 1 %]
53                 [% ELSE %]
54                     <span>Never</span>
55                 [% END %]
56             </td>
57         </tr>
58     [% END %]
59 </table>
60
61 </div>
62 </div>
63 <div class="yui-b">
64 [% INCLUDE 'biblio-view-menu.inc' %]
65 </div>
66 </div>
67
68 [% MACRO jsinclude BLOCK %]
69     <script type="text/javascript">
70         $(document).ready(function(){
71         $("tr.mybranch td").css("background-color", "#CFE7FF");
72     });
73     </script>
74 [% END %]
75
76 [% INCLUDE 'intranet-bottom.inc' %]