Bug 19700: Move template JavaScript to the footer: Some circulation pages
[srvgit] / 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"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> &rsaquo; Circulation statistics for [% title |html %]</div>
14
15 <div id="doc3" class="yui-t2">
16    
17    <div id="bd">
18         <div id="yui-main">
19         <div class="yui-b">
20
21 <h2>
22 [% title |html %] [% IF ( author ) %] by [% author |html %][% END %]</h2>
23 <h3>Barcode [% barcode %]</h3>
24 <table>
25         <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>
26
27         <tr><td>[% Branches.GetName( homebranch ) %]</td>
28             <td>[% Branches.GetName( holdingbranch ) %]</td>
29             <td>[% IF ( lastdate ) %][% lastdate | $KohaDates %][% ELSE %]Item has no transfer record[% END %]</td>
30             <td>[% count %]</td>
31         </tr>
32 </table>
33 <table>
34     <tr>
35         <th>Library</th>
36         <th>No. of times checked out</th>
37         <th>Last seen</th>
38     </tr>
39     [% FOREACH library IN libraries %]
40     [% IF library.selected %]
41         <tr class="mybranch">
42     [% ELSE %]
43         <tr>
44     [% END %]
45             <td>[% library.branchname %]</td>
46             <td>[% library.issues %]</td>
47             <td>[% IF library.seen %]
48                     [% library.seen | $KohaDates with_hours => 1 %]
49                 [% ELSE %]
50                     <span>Never</span>
51                 [% END %]
52             </td>
53         </tr>
54     [% END %]
55 </table>
56
57 </div>
58 </div>
59 <div class="yui-b">
60 [% INCLUDE 'biblio-view-menu.inc' %]
61 </div>
62 </div>
63
64 [% MACRO jsinclude BLOCK %]
65     <script type="text/javascript">
66         $(document).ready(function(){
67         $("tr.mybranch td").css("background-color", "#CFE7FF");
68     });
69     </script>
70 [% END %]
71
72 [% INCLUDE 'intranet-bottom.inc' %]