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 [% WRAPPER 'header.inc' %]
16 [% INCLUDE 'cat-search.inc' %]
19 [% WRAPPER 'sub-header.inc' %]
20 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
23 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
26 <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a>
29 [% INCLUDE 'biblio-title.inc' link = 1 %]
32 <a href="#" aria-current="page">
40 <div class="main container-fluid">
42 <div class="col-sm-10 col-sm-push-2">
45 <h1>Checkout history for [% INCLUDE 'biblio-title.inc' %]</h1>
46 [% IF biblio.author %]<h3>by [% biblio.author | html %]</h3>[% END %]
48 [% SET show_patron_column = Koha.Preference('intranetreadinghistory') AND CAN_user_circulate_circulate_remaining_permissions %]
50 <div class="searchresults page-section">
52 <h2>Checked out [% checkouts.size | html %] times</h2>
53 <table id="table_issues">
55 [% IF show_patron_column %]
59 <th>Checked out from</th>
60 [% IF Koha.Preference('RecordStaffUserOnCheckout') %]
61 <th>Checked out by</th>
63 <th class="NoVisible">Checked out by</th>
71 [% FOREACH checkout IN checkouts %]
73 [% IF show_patron_column %]
75 [% IF checkout.patron %][%# Not set for deleted patron records %]
76 [% INCLUDE 'patron-title.inc' patron => checkout.patron hide_patron_infos_if_needed=1 %]
81 [% IF checkout.item.barcode %] [%# FIXME This test is not mandatory I think %]
82 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% checkout.item.biblionumber | uri %]&itemnumber=[% checkout.item.itemnumber | uri %]">[% checkout.item.barcode | html %]</a>
86 <td>[% IF checkout.branchcode %]
87 [% Branches.GetName( checkout.branchcode ) | html %]
91 <td>[% IF checkout.issuer_id %]
92 <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% checkout.issuer_id | uri %]">
93 [% INCLUDE 'patron-title.inc' patron=checkout.issuer %]
96 <td>[% IF checkout.renewals_count %]
97 Yes[% IF checkout.lastreneweddate %], <small>last on: [% checkout.lastreneweddate |$KohaDates with_hours => 1 %]</small>
102 <td data-order="[% checkout.issuedate | html %]">
103 [% checkout.issuedate |$KohaDates with_hours => 1 %]
105 <td data-order="[% checkout.date_due | html %]">
106 [% checkout.date_due |$KohaDates with_hours => 1 %]
108 <td data-order="[% checkout.returndate | html %]">
109 [% checkout.returndate |$KohaDates with_hours => 1 %]
116 <div class="dialog message"><p>
117 <strong>[% biblio.title | html %][% IF biblio.author %], by [% biblio.author | html %][% END %]</strong> has never been checked out.</p></div>
123 </div> <!-- /.col-sm-10.col-sm-push-2 -->
125 <div class="col-sm-2 col-sm-pull-10">
127 [% INCLUDE 'biblio-view-menu.inc' %]
129 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
130 </div> <!-- /.row -->
132 [% MACRO jsinclude BLOCK %]
133 [% INCLUDE 'datatables.inc' %]
134 [% INCLUDE 'columns_settings.inc' %]
136 $(document).ready(function() {
137 var table_settings = [% TablesSettings.GetTableSettings('catalogue', 'detail', 'checkoutshistory-table', 'json') | $raw %];
138 [% UNLESS show_patron_column %]
139 // Remove the patron column definition
140 table_settings['columns'].splice(0,1);
142 var table = KohaTable("table_issues", {
143 "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
144 "aaSorting": [[ 5, "desc" ]],
145 "sPaginationType": "full_numbers"
151 [% INCLUDE 'intranet-bottom.inc' %]