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 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a> › [% INCLUDE 'biblio-title.inc' link = 1 %] › Checkout history</div>
20 <div class="main container-fluid">
22 <div class="col-sm-10 col-sm-push-2">
25 <h1>Checkout history for [% INCLUDE 'biblio-title.inc' %]</h1>
26 [% IF biblio.author %]<h3>by [% biblio.author | html %]</h3>[% END %]
28 [% SET show_patron_column = Koha.Preference('intranetreadinghistory') AND CAN_user_circulate_circulate_remaining_permissions %]
30 <div class="searchresults">
32 <h4>Checked out [% checkouts.size | html %] times</h4>
33 <table id="table_issues">
35 [% IF show_patron_column %]
39 <th>Checked out from</th>
40 [% IF Koha.Preference('RecordStaffUserOnCheckout') %]
41 <th>Checked out by</th>
44 <th class='title-string'>Checkout on</th>
45 <th class='title-string'>Due date</th>
46 <th class='title-string'>Checkin on</th>
49 [% FOREACH checkout IN checkouts %]
51 [% IF show_patron_column %]
53 [% IF checkout.patron %][%# Not set for deleted patron records %]
54 [% INCLUDE 'patron-title.inc' patron => checkout.patron hide_patron_infos_if_needed=1 %]
59 [% IF checkout.item.barcode %] [%# FIXME This test is not mandatory I think %]
60 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% checkout.item.biblionumber | uri %]&itemnumber=[% checkout.item.itemnumber | uri %]">[% checkout.item.barcode | html %]</a>
64 <td>[% IF checkout.branchcode %]
65 [% Branches.GetName( checkout.branchcode ) | html %]
69 [% IF Koha.Preference('RecordStaffUserOnCheckout') %]
70 <td>[% IF checkout.issuer_id %]
71 <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% checkout.issuer_id | uri %]">
72 [% INCLUDE 'patron-title.inc' patron=checkout.issuer_id %]
76 <td>[% IF checkout.renewals %]
77 Yes[% IF checkout.lastreneweddate %], <small>last on: [% checkout.lastreneweddate |$KohaDates with_hours => 1 %]</small>
82 <td>[% IF checkout.issuedate %]
83 <span title="[% checkout.issuedate | html %]">[% checkout.issuedate |$KohaDates with_hours => 1 %]</span>
85 <span title="0000-00-00"></span>
87 <td>[% IF checkout.date_due %]
88 <span title="[% checkout.date_due | html %]">[% checkout.date_due |$KohaDates with_hours => 1 %]</span>
90 <span title="0000-00-00"></span>
92 <td>[% IF checkout.returndate %]
93 <span title="[% checkout.returndate | html %]">[% checkout.returndate |$KohaDates with_hours => 1 %]</span>
95 <span title="Checked out"><small>Checked out</small></span>
102 <div class="dialog message"><p>
103 <strong>[% biblio.title | html %][% IF biblio.author %], by [% biblio.author | html %][% END %]</strong> has never been checked out.</p></div>
109 </div> <!-- /.col-sm-10.col-sm-push-2 -->
111 <div class="col-sm-2 col-sm-pull-10">
113 [% INCLUDE 'biblio-view-menu.inc' %]
115 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
116 </div> <!-- /.row -->
118 [% MACRO jsinclude BLOCK %]
119 [% INCLUDE 'datatables.inc' %]
120 [% INCLUDE 'columns_settings.inc' %]
122 $(document).ready(function() {
123 var columns_settings = [% TablesSettings.GetColumns('catalogue', 'detail', 'checkoutshistory-table', 'json') %];
124 [% UNLESS show_patron_column %]
125 // Remove the patron column definition
126 columns_settings.splice(0,1);
128 var table = KohaTable("table_issues", {
129 "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
130 "aaSorting": [[ 4, "desc" ]],
131 "sPaginationType": "full_numbers"
132 }, columns_settings);
137 [% INCLUDE 'intranet-bottom.inc' %]