5 [% USE AuthorisedValues %]
7 [% USE TablesSettings %]
9 [% INCLUDE 'doc-head-open.inc' %]
10 <title>Circulation History for [% INCLUDE 'patron-title.inc' no_html = 1 %]</title>
11 [% INCLUDE 'doc-head-close.inc' %]
14 <body id="pat_readingrec" class="pat">
15 [% INCLUDE 'header.inc' %]
16 [% INCLUDE 'patron-search.inc' %]
18 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> › Circulation history for [% INCLUDE 'patron-title.inc' %]</div>
20 <div class="main container-fluid">
22 <div class="col-sm-10 col-sm-push-2">
25 [% INCLUDE 'members-toolbar.inc' %]
26 <h1>Circulation history</h1>
28 [% UNLESS Koha.Preference('intranetreadinghistory') %]
29 <div class="dialog alert">Staff members are not allowed to access patron's checkout history</div>
30 [% ELSIF is_anonymous %]
31 <div class="dialog alert">This is the anonymous patron, so no circulation history is displayed. To get a list of anonymized loans, please run a report.</div>
32 [% ELSIF ( patron.privacy == 2) %]
33 <div class="dialog message">This patron has set the privacy rules to never keeping a circulation history.</div>
34 [% ELSIF ( !loop_reading ) %]
35 <div class="dialog message">This patron has no circulation history.</div>
37 <form action="/cgi-bin/koha/members/readingrec.pl" method="get"><input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber | html %]" /></form>
40 <div id="tabs" class="toptabs">
41 [% IF Koha.Preference('OnSiteCheckouts') %]
43 <li><a href="#readingrec" id="tab_all">All</a></li>
44 <li><a href="#readingrec" id="tab_checkout">Checkouts</a></li>
45 <li><a href="#readingrec" id="tab_onsite_checkout">On-site checkouts</a></li>
49 <table id="table_readingrec">
52 <th style="display:none;">Type</th>
53 <th class="title-string">Date</th>
54 <th class="anti-the">Title</th>
58 <th>Number of renewals</th>
59 <th class="title-string">Checked out on</th>
60 <th>Checked out from</th>
61 [% IF Koha.Preference('RecordIssuer') %]
62 <th>Checked out by</th>
64 <th class="title-string">Date due</th>
65 <th class="title-string">Return date</th>
69 [% FOREACH issue IN loop_reading %]
70 [% IF issue.returndate %]<tr>[% ELSE %]<tr class="onissue">[% END %]
71 <td style="display:none;">
72 [% IF issue.onsite_checkout %][% issuetype = 'onsite_checkout' | html %]
73 [% ELSE %][% issuetype = 'standard_checkout' | html %]
75 [% issuetype | html %]
78 <span title="[% issue.issuestimestamp | html %]">[% issue.issuestimestamp | $KohaDates with_hours => 1 %]</span>
81 [% INCLUDE 'biblio-title.inc' biblio=issue link = 1 %]
84 <td>[% issue.author | html %]</td>
87 [% IF issue.classification %]
88 [% issue.classification | html %]
90 [% issue.itemcallnumber | html %]
94 <td><a href="/cgi-bin/koha/catalogue/moredetail.pl?itemnumber=[% issue.itemnumber | uri %]&biblionumber=[% issue.biblionumber | uri %]&bi=[% issue.biblioitemnumber | uri %]#item[% issue.itemnumber | uri %]">[% issue.barcode | html %]</a></td>
95 <td>[% issue.renewals | html %]</td>
97 <span title="[% issue.issuedate | html %]">[% issue.issuedate |$KohaDates with_hours => 1 %]</span>
99 <td>[% Branches.GetName( issue.branchcode ) | html %]</td>
100 [% IF Koha.Preference('RecordIssuer') %]
101 <td><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% issue.issuer | uri %]">[% issue.firstname | html %] [% issue.surname | html %]</a></td>
104 [% IF issue.date_due %]
105 <span title="[% issue.date_due | html %]">[% issue.date_due |$KohaDates with_hours => 1 %]</span>
107 <span title="0000-00-00"></span>
111 [% IF issue.returndate %]
112 <span title="[% issue.returndate | html %]">[% issue.returndate |$KohaDates with_hours => 1 %]</span>
114 <span title="Checked out"><small>Checked out</small></span>
126 </div> <!-- /.col-sm-10.col-sm-push-2 -->
128 <div class="col-sm-2 col-sm-pull-10">
130 [% INCLUDE 'circ-menu.inc' %]
132 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
133 </div> <!-- /.row -->
135 [% MACRO jsinclude BLOCK %]
136 [% INCLUDE 'str/members-menu.inc' %]
137 [% Asset.js("js/members-menu.js") | $raw %]
138 [% INCLUDE 'datatables.inc' %]
139 [% INCLUDE 'columns_settings.inc' %]
141 $(document).ready(function() {
142 var columns_settings = [% TablesSettings.GetColumns('members', 'checkouthistory', 'checkouthistory-table', 'json') %];
143 var table = KohaTable("table_readingrec", {
144 "sPaginationType": "full",
145 "aaSorting": [[10, 'desc']],
146 "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
147 }, columns_settings);
149 var tabs = $("#tabs").tabs({
150 activate: function(e, ui) {
151 var active = tabs.tabs("option", "active" );
153 table.fnFilter("standard_checkout", 0);
154 } else if ( active == 2 ) {
155 table.fnFilter("onsite_checkout", 0);
157 table.fnFilter('', 0);
165 [% INCLUDE 'intranet-bottom.inc' %]