6 [% USE TablesSettings %]
8 [% INCLUDE 'doc-head-open.inc' %]
9 <title>Checkout history for [% INCLUDE 'biblio-title-head.inc' %] › Catalog › Koha</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 id="breadcrumbs" 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>
60 <th class="NoVisible">Checked out by</th>
68 [% FOREACH checkout IN checkouts %]
70 [% IF show_patron_column %]
72 [% IF checkout.patron %][%# Not set for deleted patron records %]
73 [% INCLUDE 'patron-title.inc' patron => checkout.patron hide_patron_infos_if_needed=1 %]
78 [% IF checkout.item.barcode %] [%# FIXME This test is not mandatory I think %]
79 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% checkout.item.biblionumber | uri %]&itemnumber=[% checkout.item.itemnumber | uri %]">[% checkout.item.barcode | html %]</a>
83 <td>[% IF checkout.branchcode %]
84 [% Branches.GetName( checkout.branchcode ) | html %]
88 <td>[% IF checkout.issuer_id %]
89 <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% checkout.issuer_id | uri %]">
90 [% INCLUDE 'patron-title.inc' patron=checkout.issuer %]
93 <td>[% IF checkout.renewals %]
94 Yes[% IF checkout.lastreneweddate %], <small>last on: [% checkout.lastreneweddate |$KohaDates with_hours => 1 %]</small>
99 <td data-order="[% checkout.issuedate | html %]">
100 [% checkout.issuedate |$KohaDates with_hours => 1 %]
102 <td data-order="[% checkout.date_due | html %]">
103 [% checkout.date_due |$KohaDates with_hours => 1 %]
105 <td data-order="[% checkout.returndate | html %]">
106 [% checkout.returndate |$KohaDates with_hours => 1 %]
113 <div class="dialog message"><p>
114 <strong>[% biblio.title | html %][% IF biblio.author %], by [% biblio.author | html %][% END %]</strong> has never been checked out.</p></div>
120 </div> <!-- /.col-sm-10.col-sm-push-2 -->
122 <div class="col-sm-2 col-sm-pull-10">
124 [% INCLUDE 'biblio-view-menu.inc' %]
126 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
127 </div> <!-- /.row -->
129 [% MACRO jsinclude BLOCK %]
130 [% INCLUDE 'datatables.inc' %]
131 [% INCLUDE 'columns_settings.inc' %]
133 $(document).ready(function() {
134 var columns_settings = [% TablesSettings.GetColumns('catalogue', 'detail', 'checkoutshistory-table', 'json') %];
135 [% UNLESS show_patron_column %]
136 // Remove the patron column definition
137 columns_settings.splice(0,1);
139 var table = KohaTable("table_issues", {
140 "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
141 "aaSorting": [[ 5, "desc" ]],
142 "sPaginationType": "full_numbers"
143 }, columns_settings);
148 [% INCLUDE 'intranet-bottom.inc' %]