6 [% USE ColumnsSettings %]
8 [% INCLUDE 'doc-head-open.inc' %]
9 <title>Koha › Catalog › Checkout history for [% biblio.title | html %]</title>
10 [% INCLUDE 'doc-head-close.inc' %]
11 [% Asset.css("css/datatables.css") | $raw %]
14 <body id="catalog_issuehistory" class="catalog">
16 [% INCLUDE 'header.inc' %]
17 [% INCLUDE 'cat-search.inc' %]
19 <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 <i>[% biblio.title | html %]</i></div>
21 <div id="doc3" class="yui-t2">
27 <h1>Checkout history for [% biblio.title | html %]</h1>
28 [% IF biblio.author %]<h3>by [% biblio.author | html %]</h3>[% END %]
30 [% SET show_patron_column = Koha.Preference('intranetreadinghistory') AND CAN_user_circulate_circulate_remaining_permissions %]
32 <div class="searchresults">
34 <h4>Checked out [% checkouts.size | html %] times</h4>
35 <table id="table_issues">
37 [% IF show_patron_column %]
41 <th>Checked out from</th>
43 <th class='title-string'>Checkout on</th>
44 <th class='title-string'>Due date</th>
45 <th class='title-string'>Checkin on</th>
48 [% FOREACH checkout IN checkouts %]
50 [% IF show_patron_column %]
51 <td>[% INCLUDE 'patron-title.inc' patron => checkout.patron hide_patron_infos_if_needed=1 %]</td>
54 [% IF checkout.item.barcode %] [%# FIXME This test is not mandatory I think %]
55 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% checkout.item.biblionumber | html %]&itemnumber=[% checkout.item.itemnumber | html %]">[% checkout.item.barcode | html %]</a>
59 <td>[% IF checkout.branchcode %]
60 [% Branches.GetName( checkout.branchcode ) | html %]
64 <td>[% IF checkout.renewals %]
65 Yes[% IF checkout.lastreneweddate %], <small>last on: [% checkout.lastreneweddate |$KohaDates with_hours => 1 | html %]</small>
70 <td>[% IF checkout.issuedate %]
71 <span title="[% checkout.issuedate | html %]">[% checkout.issuedate |$KohaDates with_hours => 1 | html %]</span>
73 <span title="0000-00-00"></span>
75 <td>[% IF checkout.date_due %]
76 <span title="[% checkout.date_due | html %]">[% checkout.date_due |$KohaDates with_hours => 1 | html %]</span>
78 <span title="0000-00-00"></span>
80 <td>[% IF checkout.returndate %]
81 <span title="[% checkout.returndate | html %]">[% checkout.returndate |$KohaDates with_hours => 1 | html %]</span>
83 <span title="Checked out"><small>Checked out</small></span>
90 <div class="dialog message"><p>
91 <b>[% biblio.title | html %][% IF biblio.author %], by [% biblio.author | html %][% END %]</b> has never been checked out.</p></div>
99 [% INCLUDE 'biblio-view-menu.inc' %]
103 [% MACRO jsinclude BLOCK %]
104 [% INCLUDE 'datatables.inc' %]
105 [% INCLUDE 'columns_settings.inc' %]
106 <script type="text/javascript" id="js">
107 $(document).ready(function() {
108 var columns_settings = [% ColumnsSettings.GetColumns('catalogue', 'detail', 'checkoutshistory-table', 'json') %];
109 [% UNLESS show_patron_column %]
110 // Remove the patron column definition
111 columns_settings.splice(0,1);
113 var table = KohaTable("table_issues", {
115 { "sType": "title-string", "aTargets" : [ "title-string" ] }
117 "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
118 "aaSorting": [[ 4, "desc" ]],
119 "sPaginationType": "full_numbers"
120 }, columns_settings);
125 [% INCLUDE 'intranet-bottom.inc' %]