3 [% USE AuthorisedValues %]
6 [% INCLUDE 'doc-head-open.inc' %]
7 <title>Circulation History for [% INCLUDE 'patron-title.inc' no_html = 1 %]</title>
8 [% INCLUDE 'doc-head-close.inc' %]
9 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
12 <body id="pat_readingrec" class="pat">
13 [% INCLUDE 'header.inc' %]
14 [% INCLUDE 'patron-search.inc' %]
16 <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>
18 <div id="doc3" class="yui-t2">
23 [% INCLUDE 'members-toolbar.inc' %]
24 <h1>Circulation history</h1>
26 [% UNLESS Koha.Preference('intranetreadinghistory') %]
27 <div class="dialog alert">Staff members are not allowed to access patron's checkout history</div>
28 [% ELSIF is_anonymous %]
29 <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>
30 [% ELSIF ( patron.privacy == 2) %]
31 <div class="dialog message">This patron has set the privacy rules to never keeping a circulation history.</div>
32 [% ELSIF ( !loop_reading ) %]
33 <div class="dialog message">This patron has no circulation history.</div>
35 <form action="/cgi-bin/koha/members/readingrec.pl" method="get"><input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber %]" /></form>
38 <div id="tabs" class="toptabs">
39 [% IF Koha.Preference('OnSiteCheckouts') %]
41 <li><a href="#readingrec" id="tab_all">All</a></li>
42 <li><a href="#readingrec" id="tab_checkout">Checkouts</a></li>
43 <li><a href="#readingrec" id="tab_onsite_checkout">On-site checkouts</a></li>
46 <div id="readingrec" style="overflow:hidden">
47 <table id="table_readingrec">
49 <th style="display:none;">Type</th>
50 <th class="title-string">Date</th>
51 <th class="anti-the">Title</th>
55 <th>Number of renewals</th>
56 <th class="title-string">Checked out on</th>
57 <th>Checked out from</th>
58 <th class="title-string">Date due</th>
59 <th class="title-string">Return date</th>
62 [% FOREACH issue IN loop_reading %]
63 [% IF issue.returndate %]<tr>[% ELSE %]<tr class="onissue">[% END %]
64 <td style="display:none;">
65 [% IF issue.onsite_checkout %][% issuetype = 'onsite_checkout' %]
66 [% ELSE %][% issuetype = 'standard_checkout' %]
71 <span title="[% issue.issuestimestamp %]">[% issue.issuestimestamp | $KohaDates with_hours => 1 %]</span>
73 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% issue.biblionumber %]">[% issue.title |html %]</a></td>
75 <td>[% issue.author %]</td>
78 [% IF issue.classification %]
79 [% issue.classification %]
81 [% issue.itemcallnumber %]
85 <td>[% issue.barcode %]</td>
86 <td>[% issue.renewals %]</td>
88 <span title="[% issue.issuedate %]">[% issue.issuedate |$KohaDates with_hours => 1 %]</span>
90 <td>[% Branches.GetName( issue.branchcode ) %]</td>
92 [% IF issue.date_due %]
93 <span title="[% issue.date_due %]">[% issue.date_due |$KohaDates with_hours => 1 %]</span>
95 <span title="0000-00-00"></span>
99 [% IF issue.returndate %]
100 <span title="[% issue.returndate %]">[% issue.returndate |$KohaDates with_hours => 1 %]</span>
102 <span title="Checked out"><small>Checked out</small></span>
116 [% INCLUDE 'circ-menu.inc' %]
120 [% MACRO jsinclude BLOCK %]
121 <script type="text/javascript" src="[% interface %]/[% theme %]/js/members-menu_[% KOHA_VERSION %].js"></script>
122 [% INCLUDE 'datatables.inc' %]
123 <script type="text/javascript" id="js">
124 $(document).ready(function() {
125 var table = $("#table_readingrec").dataTable($.extend(true, {}, dataTablesDefaults, {
126 "sPaginationType": "four_button",
129 { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
130 { "sType": "title-string", "aTargets" : [ "title-string" ] }
133 var tabs = $("#tabs").tabs({
134 activate: function(e, ui) {
135 var active = tabs.tabs("option", "active" );
137 table.fnFilter("standard_checkout", 0);
138 } else if ( active == 2 ) {
139 table.fnFilter("onsite_checkout", 0);
141 table.fnFilter('', 0);
149 [% INCLUDE 'intranet-bottom.inc' %]