5 [% USE AuthorisedValues %]
8 [% INCLUDE 'doc-head-open.inc' %]
9 <title>Circulation History for [% INCLUDE 'patron-title.inc' no_html = 1 %]</title>
10 [% INCLUDE 'doc-head-close.inc' %]
13 <body id="pat_readingrec" class="pat">
14 [% INCLUDE 'header.inc' %]
15 [% INCLUDE 'patron-search.inc' %]
17 <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>
19 <div class="main container-fluid">
21 <div class="col-sm-10 col-sm-push-2">
24 [% INCLUDE 'members-toolbar.inc' %]
25 <h1>Circulation history</h1>
27 [% UNLESS Koha.Preference('intranetreadinghistory') %]
28 <div class="dialog alert">Staff members are not allowed to access patron's checkout history</div>
29 [% ELSIF is_anonymous %]
30 <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>
31 [% ELSIF ( patron.privacy == 2) %]
32 <div class="dialog message">This patron has set the privacy rules to never keeping a circulation history.</div>
33 [% ELSIF ( !loop_reading ) %]
34 <div class="dialog message">This patron has no circulation history.</div>
36 <form action="/cgi-bin/koha/members/readingrec.pl" method="get"><input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber | html %]" /></form>
39 <div id="tabs" class="toptabs">
40 [% IF Koha.Preference('OnSiteCheckouts') %]
42 <li><a href="#readingrec" id="tab_all">All</a></li>
43 <li><a href="#readingrec" id="tab_checkout">Checkouts</a></li>
44 <li><a href="#readingrec" id="tab_onsite_checkout">On-site checkouts</a></li>
47 <div id="readingrec" style="overflow:hidden">
48 <table id="table_readingrec">
51 <th style="display:none;">Type</th>
52 <th class="title-string">Date</th>
53 <th class="anti-the">Title</th>
57 <th>Number of renewals</th>
58 <th class="title-string">Checked out on</th>
59 <th>Checked out from</th>
60 <th class="title-string">Date due</th>
61 <th class="title-string">Return date</th>
65 [% FOREACH issue IN loop_reading %]
66 [% IF issue.returndate %]<tr>[% ELSE %]<tr class="onissue">[% END %]
67 <td style="display:none;">
68 [% IF issue.onsite_checkout %][% issuetype = 'onsite_checkout' | html %]
69 [% ELSE %][% issuetype = 'standard_checkout' | html %]
71 [% issuetype | html %]
74 <span title="[% issue.issuestimestamp | html %]">[% issue.issuestimestamp | $KohaDates with_hours => 1 %]</span>
76 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% issue.biblionumber | uri %]">[% issue.title | html %]</a></td>
78 <td>[% issue.author | html %]</td>
81 [% IF issue.classification %]
82 [% issue.classification | html %]
84 [% issue.itemcallnumber | html %]
88 <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>
89 <td>[% issue.renewals | html %]</td>
91 <span title="[% issue.issuedate | html %]">[% issue.issuedate |$KohaDates with_hours => 1 %]</span>
93 <td>[% Branches.GetName( issue.branchcode ) | html %]</td>
95 [% IF issue.date_due %]
96 <span title="[% issue.date_due | html %]">[% issue.date_due |$KohaDates with_hours => 1 %]</span>
98 <span title="0000-00-00"></span>
102 [% IF issue.returndate %]
103 <span title="[% issue.returndate | html %]">[% issue.returndate |$KohaDates with_hours => 1 %]</span>
105 <span title="Checked out"><small>Checked out</small></span>
117 </div> <!-- /.col-sm-10.col-sm-push-2 -->
119 <div class="col-sm-2 col-sm-pull-10">
121 [% INCLUDE 'circ-menu.inc' %]
123 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
124 </div> <!-- /.row -->
126 [% MACRO jsinclude BLOCK %]
127 [% INCLUDE 'str/members-menu.inc' %]
128 [% Asset.js("js/members-menu.js") | $raw %]
129 [% INCLUDE 'datatables.inc' %]
131 $(document).ready(function() {
132 var table = $("#table_readingrec").dataTable($.extend(true, {}, dataTablesDefaults, {
133 "sPaginationType": "four_button",
136 { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
137 { "sType": "title-string", "aTargets" : [ "title-string" ] }
140 var tabs = $("#tabs").tabs({
141 activate: function(e, ui) {
142 var active = tabs.tabs("option", "active" );
144 table.fnFilter("standard_checkout", 0);
145 } else if ( active == 2 ) {
146 table.fnFilter("onsite_checkout", 0);
148 table.fnFilter('', 0);
156 [% INCLUDE 'intranet-bottom.inc' %]