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