Bug 12904: Add KOHA_VERSION to few more .css
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / catalogue / issuehistory.tt
1 [% USE Koha %]
2 [% USE KohaDates %]
3 [% USE Branches %]
4 [% SET footerjs = 1 %]
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Koha &rsaquo; Catalog &rsaquo; Checkout history for [% biblio.title |html %]</title>
7 [% INCLUDE 'doc-head-close.inc' %]
8 <link rel="stylesheet" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
9 </head>
10
11 <body id="catalog_issuehistory" class="catalog">
12
13 [% INCLUDE 'header.inc' %]
14 [% INCLUDE 'cat-search.inc' %]
15
16 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a>  &rsaquo; Checkout history for <i>[% biblio.title |html %]</i></div>
17
18 <div id="doc3" class="yui-t2">
19
20    <div id="bd">
21         <div id="yui-main">
22         <div class="yui-b">
23
24 <h1>Checkout history for [% biblio.title |html %]</h1>
25 [% IF biblio.author %]<h3>by [% biblio.author %]</h3>[% END %]
26
27 <div class="searchresults">
28     [% IF checkouts.count %]
29         <h4>Checked out [% checkouts.count %] times</h4>
30         <table id="table_issues">
31             <thead><tr>
32             [% IF Koha.Preference('intranetreadinghistory') AND CAN_user_circulate_circulate_remaining_permissions %]
33             <th>Patron</th>
34             [% END %]
35             <th>Barcode</th>
36             <th>Checked out from</th>
37             <th>Renewed</th>
38             <th class='title-string'>Checkout on</th>
39             <th class='title-string'>Due date</th>
40             <th class='title-string'>Checkin on</th>
41             </tr></thead>
42             <tbody>
43         [% FOREACH checkout IN checkouts %]
44             <tr>
45                 [% IF Koha.Preference('intranetreadinghistory') AND CAN_user_circulate_circulate_remaining_permissions %]
46                 <td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% issue.borrowernumber %]">[% IF HidePatronName %][% issue.cardnumber %][% ELSE %][% issue.surname %][% IF ( issue.firstname ) %], [% issue.firstname %][% END %][% END %]</a></td>
47                 [% END %]
48                 <td>
49                     [% IF checkout.item.barcode %] [%# FIXME This test is not mandatory I think %]
50                         <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% checkout.item.biblionumber %]&amp;itemnumber=[% checkout.item.itemnumber %]">[% checkout.item.barcode %]</a>
51                     [% ELSE %]
52                         &nbsp;
53                     [% END %]</td>
54                 <td>[% IF checkout.branchcode %]
55                         [% Branches.GetName( checkout.branchcode ) %]
56                     [% ELSE %]
57                         &nbsp;
58                     [% END %]</td>
59                 <td>[% IF checkout.renewals %]
60                         Yes[% IF checkout.lastreneweddate %], <small>last on: [% checkout.lastreneweddate |$KohaDates with_hours => 1  %]</small>
61                             [% END %]
62                     [% ELSE %]
63                         No
64                     [% END %]</td>
65                 <td>[% IF checkout.issuedate %]
66                         <span title="[% checkout.issuedate %]">[% checkout.issuedate |$KohaDates with_hours => 1  %]</span>
67                     [% ELSE %]
68                         <span title="0000-00-00"></span>
69                     [% END %]</td>
70                 <td>[% IF checkout.date_due %]
71                         <span title="[% checkout.date_due %]">[% checkout.date_due |$KohaDates with_hours => 1  %]</span>
72                     [% ELSE %]
73                         <span title="0000-00-00"></span>
74                     [% END %]</td>
75                 <td>[% IF checkout.returndate %]
76                         <span title="[% checkout.returndate %]">[% checkout.returndate |$KohaDates with_hours => 1  %]</span>
77                     [% ELSE %]
78                         <span title="Checked out"><small>Checked out</small></span>
79                     [% END %]</td>
80            </tr>
81         [% END %]
82         </tbody>
83                 </table>
84     [% ELSE %]
85         <div class="dialog message"><p>
86         <b>[% biblio.title |html %][% IF biblio.author %], by [% biblio.author %][% END %]</b> has never been checked out.</p></div>
87
88     [% END %]
89 </div>
90
91 </div>
92 </div>
93 <div class="yui-b">
94 [% INCLUDE 'biblio-view-menu.inc' %]
95 </div>
96 </div>
97
98 [% MACRO jsinclude BLOCK %]
99 [% INCLUDE 'datatables.inc' %]
100     <script type="text/javascript" id="js">
101         $(document).ready(function() {
102             $("#table_issues").dataTable($.extend(true, {}, dataTablesDefaults, {
103                 "aoColumnDefs": [
104                     { "sType": "title-string", "aTargets" : [ "title-string" ] }
105                 ],
106                 "aaSorting": [[ 4, "desc" ]],
107                 "sPaginationType": "full_numbers"
108             }));
109         });
110     </script>
111 [% END %]
112
113 [% INCLUDE 'intranet-bottom.inc' %]