Bug 14321: Integrate Upload.pm into Koha
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / catalogue / issuehistory.tt
1 [% USE Koha %]
2 [% USE KohaDates %]
3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Koha &rsaquo; Catalog &rsaquo; Checkout history for [% title |html %]</title>
5 [% INCLUDE 'doc-head-close.inc' %]
6 <link rel="stylesheet" href="[% themelang %]/css/datatables.css" />
7 [% INCLUDE 'datatables.inc' %]
8 <script type="text/javascript" id="js">
9 $(document).ready(function() {
10     $("#table_issues").dataTable($.extend(true, {}, dataTablesDefaults, {
11         "aoColumnDefs": [
12             { "sType": "title-string", "aTargets" : [ "title-string" ] }
13         ],
14         "aaSorting": [[ 4, "desc" ]],
15         "sPaginationType": "full_numbers"
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             [% IF Koha.Preference('intranetreadinghistory') %]
42             <th>Patron</th>
43             [% END %]
44             <th>Barcode</th>
45             <th>Checked out from</th>
46             <th>Renewed</th>
47             <th class='title-string'>Checkout on</th>
48             <th class='title-string'>Due date</th>
49             <th class='title-string'>Checkin on</th>
50             </tr></thead>
51             <tbody>
52         [% FOREACH issue IN issues %]
53             <tr>
54                 [% IF Koha.Preference('intranetreadinghistory') %]
55                 <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>
56                 [% END %]
57                 <td>[% IF ( issue.barcode ) %]
58                         <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% issue.biblionumber %]&amp;itemnumber=[% issue.itemnumber %]">[% issue.barcode %]</a>
59                     [% ELSE %]
60                         &nbsp;
61                     [% END %]</td>
62                 <td>[% IF ( issue.branchcode ) %]
63                         [% issue.branchcode %]
64                     [% ELSE %]
65                         &nbsp;
66                     [% END %]</td>
67                 <td>[% IF ( issue.renewals ) %]
68                         Yes[% IF ( issue.lastreneweddate ) %], <small>last on: [% issue.lastreneweddate |$KohaDates with_hours => 1  %]</small>
69                             [% END %]
70                     [% ELSE %]
71                         No
72                     [% END %]</td>
73                 <td>[% IF ( issue.issuedate ) %]
74                         <span title="[% issue.issuedate %]">[% issue.issuedate |$KohaDates with_hours => 1  %]</span>
75                     [% ELSE %]
76                         <span title="0000-00-00"></span>
77                     [% END %]</td>
78                 <td>[% IF ( issue.date_due ) %]
79                         <span title="[% issue.date_due %]">[% issue.date_due |$KohaDates with_hours => 1  %]</span>
80                     [% ELSE %]
81                         <span title="0000-00-00"></span>
82                     [% END %]</td>
83                 <td>[% IF ( issue.returndate ) %]
84                         <span title="[% issue.returndate %]">[% issue.returndate |$KohaDates with_hours => 1  %]</span>
85                     [% ELSE %]
86                         <span title="Checked out"><small>Checked out</small></span>
87                     [% END %]</td>
88            </tr>
89         [% END %]
90         </tbody>
91                 </table>
92     [% ELSE %]
93         <div class="dialog message"><p>
94         <b>[% title |html %][% IF ( author ) %], by [% author %][% END %]</b> has never been checked out.</p></div>
95
96     [% END %]
97 </div>
98
99 </div>
100 </div>
101 <div class="yui-b">
102 [% INCLUDE 'biblio-view-menu.inc' %]
103 </div>
104 </div>
105 [% INCLUDE 'intranet-bottom.inc' %]