3 [% USE AuthorisedValues %]
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Circulation History for [% INCLUDE 'patron-title.inc' %]</title>
7 [% INCLUDE 'doc-head-close.inc' %]
8 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
9 [% INCLUDE 'datatables.inc' %]
10 <script type="text/javascript" id="js">
13 $(document).ready(function() {
14 var table = $("#table_readingrec").dataTable($.extend(true, {}, dataTablesDefaults, {
15 "sPaginationType": "four_button",
18 { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
19 { "sType": "title-string", "aTargets" : [ "title-string" ] }
22 var tabs = $("#tabs").tabs({
23 activate: function(e, ui) {
24 var active = tabs.tabs("option", "active" );
26 table.fnFilter("standard_checkout", 0);
27 } else if ( active == 2 ) {
28 table.fnFilter("onsite_checkout", 0);
30 table.fnFilter('', 0);
38 <body id="pat_readingrec" class="pat">
39 [% INCLUDE 'header.inc' %]
40 [% INCLUDE 'patron-search.inc' %]
42 <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>
44 <div id="doc3" class="yui-t2">
49 [% INCLUDE 'members-toolbar.inc' %]
50 <h1>Circulation history</h1>
52 [% UNLESS Koha.Preference('intranetreadinghistory') %]
53 <div class="dialog alert">Staff members are not allowed to access patron's checkout history</div>
54 [% ELSIF is_anonymous %]
55 <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>
56 [% ELSIF ( privacy == 2) %]
57 <div class="dialog message">This patron has set the privacy rules to never keeping a circulation history.</div>
58 [% ELSIF ( !loop_reading ) %]
59 <div class="dialog message">This patron has no circulation history.</div>
61 <form action="/cgi-bin/koha/members/readingrec.pl" method="get"><input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrowernumber %]" /></form>
64 <div id="tabs" class="toptabs">
65 [% IF Koha.Preference('OnSiteCheckouts') %]
67 <li><a href="#readingrec" id="tab_all">All</a></li>
68 <li><a href="#readingrec" id="tab_checkout">Checkouts</a></li>
69 <li><a href="#readingrec" id="tab_onsite_checkout">On-site checkouts</a></li>
72 <div id="readingrec" style="overflow:hidden">
73 <table id="table_readingrec">
75 <th style="display:none;">Type</th>
76 <th class="title-string">Date</th>
77 <th class="anti-the">Title</th>
81 <th>Number of renewals</th>
82 <th class="title-string">Checked out on</th>
83 <th>Checked out from</th>
84 <th class="title-string">Date due</th>
85 <th class="title-string">Return date</th>
88 [% FOREACH issue IN loop_reading %]
89 [% IF issue.returndate %]<tr>[% ELSE %]<tr class="onissue">[% END %]
90 <td style="display:none;">
91 [% IF issue.onsite_checkout %]
98 <span title="[% issue.issuestimestamp %]">[% issue.issuestimestamp | $KohaDates with_hours => 1 %]</span>
100 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% issue.biblionumber %]">[% issue.title |html %]</a></td>
102 <td>[% issue.author %]</td>
105 [% IF issue.classification %]
106 [% issue.classification %]
108 [% issue.itemcallnumber %]
112 <td>[% issue.barcode %]</td>
113 <td>[% issue.renewals %]</td>
115 <span title="[% issue.issuedate %]">[% issue.issuedate |$KohaDates with_hours => 1 %]</span>
117 <td>[% Branches.GetName( issue.branchcode ) %]</td>
119 [% IF issue.date_due %]
120 <span title="[% issue.date_due %]">[% issue.date_due |$KohaDates with_hours => 1 %]</span>
122 <span title="0000-00-00"></span>
126 [% IF issue.returndate %]
127 <span title="[% issue.returndate %]">[% issue.returndate |$KohaDates with_hours => 1 %]</span>
129 <span title="Checked out"><small>Checked out</small></span>
143 [% INCLUDE 'circ-menu.inc' %]
146 [% INCLUDE 'intranet-bottom.inc' %]