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