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> › Checkout history for <em>[% INCLUDE 'biblio-title.inc' %]</em></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>
41 <th class='title-string'>Checkout on</th>
42 <th class='title-string'>Due date</th>
43 <th class='title-string'>Checkin on</th>
46 [% FOREACH checkout IN checkouts %]
48 [% IF show_patron_column %]
50 [% IF checkout.patron %][%# Not set for deleted patron records %]
51 [% INCLUDE 'patron-title.inc' patron => checkout.patron hide_patron_infos_if_needed=1 %]
56 [% IF checkout.item.barcode %] [%# FIXME This test is not mandatory I think %]
57 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% checkout.item.biblionumber | uri %]&itemnumber=[% checkout.item.itemnumber | uri %]">[% checkout.item.barcode | html %]</a>
61 <td>[% IF checkout.branchcode %]
62 [% Branches.GetName( checkout.branchcode ) | html %]
66 <td>[% IF checkout.renewals %]
67 Yes[% IF checkout.lastreneweddate %], <small>last on: [% checkout.lastreneweddate |$KohaDates with_hours => 1 %]</small>
72 <td>[% IF checkout.issuedate %]
73 <span title="[% checkout.issuedate | html %]">[% checkout.issuedate |$KohaDates with_hours => 1 %]</span>
75 <span title="0000-00-00"></span>
77 <td>[% IF checkout.date_due %]
78 <span title="[% checkout.date_due | html %]">[% checkout.date_due |$KohaDates with_hours => 1 %]</span>
80 <span title="0000-00-00"></span>
82 <td>[% IF checkout.returndate %]
83 <span title="[% checkout.returndate | html %]">[% checkout.returndate |$KohaDates with_hours => 1 %]</span>
85 <span title="Checked out"><small>Checked out</small></span>
92 <div class="dialog message"><p>
93 <b>[% biblio.title | html %][% IF biblio.author %], by [% biblio.author | html %][% END %]</b> has never been checked out.</p></div>
99 </div> <!-- /.col-sm-10.col-sm-push-2 -->
101 <div class="col-sm-2 col-sm-pull-10">
103 [% INCLUDE 'biblio-view-menu.inc' %]
105 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
106 </div> <!-- /.row -->
108 [% MACRO jsinclude BLOCK %]
109 [% INCLUDE 'datatables.inc' %]
110 [% INCLUDE 'columns_settings.inc' %]
112 $(document).ready(function() {
113 var columns_settings = [% TablesSettings.GetColumns('catalogue', 'detail', 'checkoutshistory-table', 'json') %];
114 [% UNLESS show_patron_column %]
115 // Remove the patron column definition
116 columns_settings.splice(0,1);
118 var table = KohaTable("table_issues", {
119 "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
120 "aaSorting": [[ 4, "desc" ]],
121 "sPaginationType": "full_numbers"
122 }, columns_settings);
127 [% INCLUDE 'intranet-bottom.inc' %]