Merge remote-tracking branch 'origin/new/bug_7412'
[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     $("#table_issues").dataTable($.extend(true, {}, dataTablesDefaults, {
11             "aaSorting": [[ 4, "desc" ]]
12         })
13     );
14 }); </script>
15
16 </head>
17 <body id="catalog_issuehistory" class="catalog">
18
19 [% INCLUDE 'header.inc' %]
20 [% INCLUDE 'cat-search.inc' %]
21
22 <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>
23
24 <div id="doc3" class="yui-t2">
25
26    <div id="bd">
27         <div id="yui-main">
28         <div class="yui-b">
29
30 <h1>Checkout history for [% title |html %]</h1>
31 [% IF ( author ) %]<h3>by [% author %]</h3>[% END %]
32
33 <div class="searchresults">
34     [% IF ( issues ) %]
35         <h4>Checked out [% total %] times</h4>
36         <table id="table_issues">
37             <thead><tr>
38             <th>Patron</th>
39             <th>Barcode</th>
40             <th>Checked out from</th>
41             <th>Renewed</th>
42             <th>Checkout on</th>
43             <th>Due date</th>
44             <th>Checkin on</th>
45             </tr></thead>
46             <tbody>
47         [% FOREACH issue IN issues %]
48         [% UNLESS ( loop.odd ) %]<tr class="highlight">[% ELSE %]<tr>[% END %]
49                 <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>
50                 <td>[% IF ( issue.barcode ) %]
51                         <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% issue.biblionumber %]&amp;itemnumber=[% issue.itemnumber %]">[% issue.barcode %]</a>
52                     [% ELSE %]
53                         &nbsp;
54                     [% END %]</td>
55                 <td>[% IF ( issue.branchcode ) %]
56                         [% issue.branchcode %]
57                     [% ELSE %]
58                         &nbsp;
59                     [% END %]</td>
60                 <td>[% IF ( issue.renewals ) %]
61                         Yes[% IF ( issue.lastreneweddate ) %], <small>last on: [% issue.lastreneweddate %]</small>
62                             [% END %]
63                     [% ELSE %]
64                         No
65                     [% END %]</td>
66                 <td>[% IF ( issue.issuedate ) %]
67                         [% issue.issuedate %]
68                     [% ELSE %]
69                         &nbsp;
70                     [% END %]</td>
71                 <td>[% IF ( issue.date_due ) %]
72                         [% issue.date_due %]
73                     [% ELSE %]
74                         &nbsp;
75                     [% END %]</td>
76                 <td>[% IF ( issue.returndate ) %]
77                         [% issue.returndate %]
78                     [% ELSE %]
79                         &nbsp;
80                     [% END %]</td>
81            </tr>
82         [% END %]
83         </tbody>
84                 </table>
85     [% ELSE %]
86         <div class="dialog message"><p>
87         <b>[% title |html %][% IF ( author ) %], by [% author %][% END %]</b> has never been checked out.</p></div>
88
89     [% END %]
90 </div>
91
92 </div>
93 </div>
94 <div class="yui-b">
95 [% INCLUDE 'biblio-view-menu.inc' %]
96 </div>
97 </div>
98 [% INCLUDE 'intranet-bottom.inc' %]