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 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
21 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
24 <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
27 <a href="#" aria-current="page">
28 Circulation history for [% INCLUDE 'patron-title.inc' %]
34 <div class="main container-fluid">
36 <div class="col-sm-10 col-sm-push-2">
39 [% INCLUDE 'members-toolbar.inc' %]
40 <h1>Circulation history</h1>
42 [% UNLESS Koha.Preference('intranetreadinghistory') %]
43 <div class="dialog alert">Staff members are not allowed to access patron's checkout history</div>
44 [% ELSIF is_anonymous %]
45 <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>
46 [% ELSIF ( patron.privacy == 2) %]
47 <div class="dialog message">This patron has set the privacy rules to never keeping a circulation history.</div>
48 [% ELSIF ( !loop_reading ) %]
49 <div class="dialog message">This patron has no circulation history.</div>
51 <form action="/cgi-bin/koha/members/readingrec.pl" method="get"><input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber | html %]" /></form>
54 <div id="tabs" class="toptabs">
55 [% IF Koha.Preference('OnSiteCheckouts') %]
57 <li><a href="#readingrec" id="tab_all">All</a></li>
58 <li><a href="#readingrec" id="tab_checkout">Checkouts</a></li>
59 <li><a href="#readingrec" id="tab_onsite_checkout">On-site checkouts</a></li>
63 <table id="table_readingrec">
66 <th style="display:none;">Type</th>
67 <th class="title-string">Date</th>
68 <th class="anti-the">Title</th>
72 <th>Number of renewals</th>
73 <th class="title-string">Checked out on</th>
74 <th>Checked out from</th>
75 [% IF Koha.Preference('RecordStaffUserOnCheckout') %]
76 <th>Checked out by</th>
78 <th class="title-string">Date due</th>
79 <th class="title-string">Return date</th>
83 [% FOREACH issue IN loop_reading %]
84 [% IF issue.returndate %]<tr>[% ELSE %]<tr class="onissue">[% END %]
85 <td style="display:none;">
86 [% IF issue.onsite_checkout %][% issuetype = 'onsite_checkout' | html %]
87 [% ELSE %][% issuetype = 'standard_checkout' | html %]
89 [% issuetype | html %]
92 <span title="[% issue.issuestimestamp | html %]">[% issue.issuestimestamp | $KohaDates with_hours => 1 %]</span>
95 [% INCLUDE 'biblio-title.inc' biblio=issue link = 1 %]
98 <td>[% issue.author | html %]</td>
101 [% IF issue.classification %]
102 [% issue.classification | html %]
104 [% issue.itemcallnumber | html %]
108 <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>
109 <td>[% issue.renewals | html %]</td>
111 <span title="[% issue.issuedate | html %]">[% issue.issuedate |$KohaDates with_hours => 1 %]</span>
113 <td>[% Branches.GetName( issue.branchcode ) | html %]</td>
114 [% IF Koha.Preference('RecordStaffUserOnCheckout') %]
115 <td><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% issue.issuer_id | uri %]">[% issue.firstname | html %] [% issue.surname | html %]</a></td>
118 [% IF issue.date_due %]
119 <span title="[% issue.date_due | html %]">[% issue.date_due |$KohaDates with_hours => 1 %]</span>
121 <span title="0000-00-00"></span>
125 [% IF issue.returndate %]
126 <span title="[% issue.returndate | html %]">[% issue.returndate |$KohaDates with_hours => 1 %]</span>
128 <span title="Checked out"><small>Checked out</small></span>
140 </div> <!-- /.col-sm-10.col-sm-push-2 -->
142 <div class="col-sm-2 col-sm-pull-10">
144 [% INCLUDE 'circ-menu.inc' %]
146 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
147 </div> <!-- /.row -->
149 [% MACRO jsinclude BLOCK %]
150 [% INCLUDE 'str/members-menu.inc' %]
151 [% Asset.js("js/members-menu.js") | $raw %]
152 [% INCLUDE 'datatables.inc' %]
153 [% INCLUDE 'columns_settings.inc' %]
155 $(document).ready(function() {
156 var columns_settings = [% TablesSettings.GetColumns('members', 'checkouthistory', 'checkouthistory-table', 'json') %];
157 var table = KohaTable("table_readingrec", {
158 "sPaginationType": "full",
159 "aaSorting": [[10, 'desc']],
160 "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
161 }, columns_settings);
163 var tabs = $("#tabs").tabs({
164 activate: function(e, ui) {
165 var active = tabs.tabs("option", "active" );
167 table.fnFilter("standard_checkout", 0);
168 } else if ( active == 2 ) {
169 table.fnFilter("onsite_checkout", 0);
171 table.fnFilter('', 0);
179 [% INCLUDE 'intranet-bottom.inc' %]