Bug 10868 - Use new DataTables include in catalog templates
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / catalogue / issuehistory.tt
1 [% USE KohaDates %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha &rsaquo; Catalog &rsaquo; Checkout history for [% title |html %]</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 <link rel="stylesheet" href="[% themelang %]/css/datatables.css" />
6 [% INCLUDE 'datatables.inc' %]
7 <script type="text/javascript" id="js">
8 $(document).ready(function() {
9     $("#table_issues").dataTable($.extend(true, {}, dataTablesDefaults, {
10             "aoColumns": [
11                 null,null,null,null,{ "sType": "title-string" },{ "sType": "title-string" },{ "sType": "title-string" }
12             ],
13             "aaSorting": [[ 4, "desc" ]]
14         })
15     );
16 }); </script>
17
18 </head>
19 <body id="catalog_issuehistory" class="catalog">
20
21 [% INCLUDE 'header.inc' %]
22 [% INCLUDE 'cat-search.inc' %]
23
24 <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>[% title |html %]</i></div>
25
26 <div id="doc3" class="yui-t2">
27
28    <div id="bd">
29         <div id="yui-main">
30         <div class="yui-b">
31
32 <h1>Checkout history for [% title |html %]</h1>
33 [% IF ( author ) %]<h3>by [% author %]</h3>[% END %]
34
35 <div class="searchresults">
36     [% IF ( issues ) %]
37         <h4>Checked out [% total %] times</h4>
38         <table id="table_issues">
39             <thead><tr>
40             <th>Patron</th>
41             <th>Barcode</th>
42             <th>Checked out from</th>
43             <th>Renewed</th>
44             <th>Checkout on</th>
45             <th>Due date</th>
46             <th>Checkin on</th>
47             </tr></thead>
48             <tbody>
49         [% FOREACH issue IN issues %]
50         [% UNLESS ( loop.odd ) %]<tr class="highlight">[% ELSE %]<tr>[% END %]
51                 <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>
52                 <td>[% IF ( issue.barcode ) %]
53                         <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% issue.biblionumber %]&amp;itemnumber=[% issue.itemnumber %]">[% issue.barcode %]</a>
54                     [% ELSE %]
55                         &nbsp;
56                     [% END %]</td>
57                 <td>[% IF ( issue.branchcode ) %]
58                         [% issue.branchcode %]
59                     [% ELSE %]
60                         &nbsp;
61                     [% END %]</td>
62                 <td>[% IF ( issue.renewals ) %]
63                         Yes[% IF ( issue.lastreneweddate ) %], <small>last on: [% issue.lastreneweddate |$KohaDates with_hours => 1  %]</small>
64                             [% END %]
65                     [% ELSE %]
66                         No
67                     [% END %]</td>
68                 <td>[% IF ( issue.issuedate ) %]
69                         <span title="[% issue.issuedate %]">[% issue.issuedate |$KohaDates with_hours => 1  %]</span>
70                     [% ELSE %]
71                         <span title="0000-00-00"></span>
72                     [% END %]</td>
73                 <td>[% IF ( issue.date_due ) %]
74                         <span title="[% issue.date_due %]">[% issue.date_due |$KohaDates with_hours => 1  %]</span>
75                     [% ELSE %]
76                         <span title="0000-00-00"></span>
77                     [% END %]</td>
78                 <td>[% IF ( issue.returndate ) %]
79                         <span title="[% issue.returndate %]">[% issue.returndate |$KohaDates with_hours => 1  %]</span>
80                     [% ELSE %]
81                         <span title="0000-00-00"></span>
82                     [% END %]</td>
83            </tr>
84         [% END %]
85         </tbody>
86                 </table>
87     [% ELSE %]
88         <div class="dialog message"><p>
89         <b>[% title |html %][% IF ( author ) %], by [% author %][% END %]</b> has never been checked out.</p></div>
90
91     [% END %]
92 </div>
93
94 </div>
95 </div>
96 <div class="yui-b">
97 [% INCLUDE 'biblio-view-menu.inc' %]
98 </div>
99 </div>
100 [% INCLUDE 'intranet-bottom.inc' %]