X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=koha-tmpl%2Fintranet-tmpl%2Fprog%2Fen%2Fmodules%2Fmembers%2Freadingrec.tt;h=5f2e1d836b6d65dac7ed672d68b85b973b5895b3;hb=e17209de48f3c9d3184dfd430d882a4e8f8d5d4f;hp=32c91a715b69e639c78e4a7e1f62bf806d63b98a;hpb=4c23d24f400a924745b61dd930dfce8df9b84032;p=koha.git
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt
index 32c91a715b..5f2e1d836b 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt
@@ -1,20 +1,36 @@
[% USE KohaDates %]
+[% USE Koha %]
+[% USE AuthorisedValues %]
+[% USE Branches %]
[% INCLUDE 'doc-head-open.inc' %]
[% INCLUDE 'members-toolbar.inc' %]
Circulation history
-[% IF loop_reading %]
+
+[% UNLESS Koha.Preference('intranetreadinghistory') %]
+
Staff members are not allowed to access patron's checkout history
+[% ELSIF is_anonymous %]
+
This is the anonymous patron, so no circulation history is displayed. To get a list of anonymized loans, please run a report.
+[% ELSIF ( privacy == 2) %]
+
This patron has set the privacy rules to never keeping a circulation history.
+[% ELSIF ( !loop_reading ) %]
+
This patron has no circulation history.
+[% ELSE %]
-
-
- Date |
- Title |
- Author |
- Call no. |
- Barcode |
- Number of renewals |
- Checked out on |
- Checked out from |
- Date due |
- Return date |
-
-[% FOREACH issue IN loop_reading %]
- [% IF issue.returndate %][% ELSE %]
[% END %]
-
- [% issue.issuestimestamp | $KohaDates %]
- |
- [% issue.title |html %] |
+
+ [% IF Koha.Preference('OnSiteCheckouts') %]
+
+ [% END %]
+
+
+
+ Type |
+ Date |
+ Title |
+ Author |
+ Call no. |
+ Barcode |
+ Number of renewals |
+ Checked out on |
+ Checked out from |
+ Date due |
+ Return date |
+
+
+ [% FOREACH issue IN loop_reading %]
+ [% IF issue.returndate %][% ELSE %]
[% END %]
+
+ [% IF issue.onsite_checkout %][% issuetype = 'onsite_checkout' %]
+ [% ELSE %][% issuetype = 'standard_checkout' %]
+ [% END %]
+ [% issuetype %]
+ |
+
+ [% issue.issuestimestamp | $KohaDates with_hours => 1 %]
+ |
+ [% issue.title |html %] |
- [% issue.author %] |
+ [% issue.author %] |
-
+ |
[% IF issue.classification %]
[% issue.classification %]
[% ELSE %]
[% issue.itemcallnumber %]
[% END %]
- |
-
- [% issue.barcode %] |
+
-
- [% issue.renewals %] |
-
- [% issue.issuedate | $KohaDates %] |
-
- [% issue.issuingbranch %] |
- [% IF issue.date_due %]
- [% issue.date_due | $KohaDates %]
- [% ELSE %] [% END %] |
-
- [% IF issue.returndate %]
- [% issue.returndate | $KohaDates %]
- [% ELSE %]
- Checked Out
- [% END %]
- |
-
-[% END %]
-
-[% ELSE %]
-
This patron has no circulation history.
+
[% issue.barcode %] |
+
[% issue.renewals %] |
+
+ [% issue.issuedate |$KohaDates with_hours => 1 %]
+ |
+
[% Branches.GetName( issue.branchcode ) %] |
+
+ [% IF issue.date_due %]
+ [% issue.date_due |$KohaDates with_hours => 1 %]
+ [% ELSE %]
+
+ [% END %]
+ |
+
+ [% IF issue.returndate %]
+ [% issue.returndate |$KohaDates with_hours => 1 %]
+ [% ELSE %]
+ Checked out
+ [% END %]
+ |
+
+ [% END %]
+
+
+
+
[% END %]