6 [% USE TablesSettings %]
8 [% INCLUDE 'doc-head-open.inc' %]
9 <title>Koha › Catalog › Checkout history for [% INCLUDE 'biblio-title-head.inc' %]</title>
10 [% INCLUDE 'doc-head-close.inc' %]
13 <body id="catalog_issuehistory" class="catalog">
15 [% INCLUDE 'header.inc' %]
16 [% INCLUDE 'cat-search.inc' %]
18 <nav aria-label="Breadcrumb" class="breadcrumb">
21 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
24 <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a>
27 [% INCLUDE 'biblio-title.inc' link = 1 %]
30 <a href="#" aria-current="page">
37 <div class="main container-fluid">
39 <div class="col-sm-10 col-sm-push-2">
42 <h1>Checkout history for [% INCLUDE 'biblio-title.inc' %]</h1>
43 [% IF biblio.author %]<h3>by [% biblio.author | html %]</h3>[% END %]
45 [% SET show_patron_column = Koha.Preference('intranetreadinghistory') AND CAN_user_circulate_circulate_remaining_permissions %]
47 <div class="searchresults">
49 <h4>Checked out [% checkouts.size | html %] times</h4>
50 <table id="table_issues">
52 [% IF show_patron_column %]
56 <th>Checked out from</th>
57 [% IF Koha.Preference('RecordStaffUserOnCheckout') %]
58 <th>Checked out by</th>
61 <th class='title-string'>Checkout on</th>
62 <th class='title-string'>Due date</th>
63 <th class='title-string'>Checkin on</th>
66 [% FOREACH checkout IN checkouts %]
68 [% IF show_patron_column %]
70 [% IF checkout.patron %][%# Not set for deleted patron records %]
71 [% INCLUDE 'patron-title.inc' patron => checkout.patron hide_patron_infos_if_needed=1 %]
76 [% IF checkout.item.barcode %] [%# FIXME This test is not mandatory I think %]
77 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% checkout.item.biblionumber | uri %]&itemnumber=[% checkout.item.itemnumber | uri %]">[% checkout.item.barcode | html %]</a>
81 <td>[% IF checkout.branchcode %]
82 [% Branches.GetName( checkout.branchcode ) | html %]
86 [% IF Koha.Preference('RecordStaffUserOnCheckout') %]
87 <td>[% IF checkout.issuer_id %]
88 <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% checkout.issuer_id | uri %]">
89 [% INCLUDE 'patron-title.inc' patron=checkout.issuer_id %]
93 <td>[% IF checkout.renewals %]
94 Yes[% IF checkout.lastreneweddate %], <small>last on: [% checkout.lastreneweddate |$KohaDates with_hours => 1 %]</small>
99 <td>[% IF checkout.issuedate %]
100 <span title="[% checkout.issuedate | html %]">[% checkout.issuedate |$KohaDates with_hours => 1 %]</span>
102 <span title="0000-00-00"></span>
104 <td>[% IF checkout.date_due %]
105 <span title="[% checkout.date_due | html %]">[% checkout.date_due |$KohaDates with_hours => 1 %]</span>
107 <span title="0000-00-00"></span>
109 <td>[% IF checkout.returndate %]
110 <span title="[% checkout.returndate | html %]">[% checkout.returndate |$KohaDates with_hours => 1 %]</span>
112 <span title="Checked out"><small>Checked out</small></span>
119 <div class="dialog message"><p>
120 <strong>[% biblio.title | html %][% IF biblio.author %], by [% biblio.author | html %][% END %]</strong> has never been checked out.</p></div>
126 </div> <!-- /.col-sm-10.col-sm-push-2 -->
128 <div class="col-sm-2 col-sm-pull-10">
130 [% INCLUDE 'biblio-view-menu.inc' %]
132 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
133 </div> <!-- /.row -->
135 [% MACRO jsinclude BLOCK %]
136 [% INCLUDE 'datatables.inc' %]
137 [% INCLUDE 'columns_settings.inc' %]
139 $(document).ready(function() {
140 var columns_settings = [% TablesSettings.GetColumns('catalogue', 'detail', 'checkoutshistory-table', 'json') %];
141 [% UNLESS show_patron_column %]
142 // Remove the patron column definition
143 columns_settings.splice(0,1);
145 var table = KohaTable("table_issues", {
146 "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
147 "aaSorting": [[ 4, "desc" ]],
148 "sPaginationType": "full_numbers"
149 }, columns_settings);
154 [% INCLUDE 'intranet-bottom.inc' %]