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