[% USE KohaDates %]
[% USE Koha %]
+[% USE AuthorisedValues %]
[% USE Branches %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Circulation History for [% INCLUDE 'patron-title.inc' %]</title>
[% INCLUDE 'doc-head-close.inc' %]
-<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
+<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
[% INCLUDE 'datatables.inc' %]
<script type="text/javascript" id="js">
//<![CDATA[
[% INCLUDE 'members-toolbar.inc' %]
<h1>Circulation history</h1>
-[% IF is_anonymous %]
+[% UNLESS Koha.Preference('intranetreadinghistory') %]
+ <div class="dialog alert">Staff members are not allowed to access patron's checkout history</div>
+[% ELSIF is_anonymous %]
<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>
+[% ELSIF ( privacy == 2) %]
+ <div class="dialog message">This patron has set the privacy rules to never keeping a circulation history.</div>
[% ELSIF ( !loop_reading ) %]
<div class="dialog message">This patron has no circulation history.</div>
[% ELSE %]
[% FOREACH issue IN loop_reading %]
[% IF issue.returndate %]<tr>[% ELSE %]<tr class="onissue">[% END %]
<td style="display:none;">
- [% IF issue.onsite_checkout %]
- onsite_checkout
- [% ELSE %]
- standard_checkout
+ [% IF issue.onsite_checkout %][% issuetype = 'onsite_checkout' %]
+ [% ELSE %][% issuetype = 'standard_checkout' %]
[% END %]
+ [% issuetype %]
</td>
<td>
<span title="[% issue.issuestimestamp %]">[% issue.issuestimestamp | $KohaDates with_hours => 1 %]</span>