Bug 11869: (follow-up) only display active fines
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / readingrec.tt
1 [% USE KohaDates %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Circulation History for [% INCLUDE 'patron-title.inc' %]</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
6 [% INCLUDE 'datatables.inc' %]
7 <script type="text/javascript" id="js">
8 //<![CDATA[
9
10  $(document).ready(function() {
11     [% IF (dateformat == 'metric') %]
12         dt_add_type_uk_date();
13     [% END %]
14     $("#table_readingrec").dataTable($.extend(true, {}, dataTablesDefaults, {
15         "sPaginationType": "four_button",
16         "aaSorting": [],
17         "aoColumns": [
18             null,
19             { "sType": "anti-the" },
20             null,
21             null,
22             null,
23             null,
24             null,
25             null,
26             null,
27             { "sType": "title-string" }
28         ]
29     }));
30  });
31 //]]>
32 </script>
33 </head>
34 <body id="pat_readingrec" class="pat">
35 [% INCLUDE 'header.inc' %]
36 [% INCLUDE 'patron-search.inc' %]
37
38 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>  &rsaquo; Circulation history for [% INCLUDE 'patron-title.inc' %]</div>
39
40 <div id="doc3" class="yui-t2">
41    
42    <div id="bd">
43         <div id="yui-main">
44         <div class="yui-b">
45 [% INCLUDE 'members-toolbar.inc' %]
46 <h1>Circulation history</h1>
47
48 [% IF is_anonymous %]
49     <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>
50 [% ELSIF ( !loop_reading ) %]
51     <div class="dialog message">This patron has no circulation history.</div>
52 [% ELSE %]
53 <form action="/cgi-bin/koha/members/readingrec.pl" method="get"><input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrowernumber %]" /></form>
54
55
56 <table id="table_readingrec">
57 <thead>
58     <th>Date</th>
59         <th>Title</th>
60         <th>Author</th>
61     <th>Call no.</th>
62         <th>Barcode</th>
63     <th>Number of renewals</th>
64         <th>Checked out on</th>
65         <th>Checked out from</th>
66     <th>Date due</th>
67     <th>Return date</th>
68 </thead>
69 [% FOREACH issue IN loop_reading %]
70     [% IF  issue.returndate  %]<tr>[% ELSE %]<tr class="onissue">[% END %]
71         <td>
72             [% issue.issuestimestamp | $KohaDates %]
73         </td>
74         <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% issue.biblionumber %]">[% issue.title |html %]</a></td>
75
76         <td>[% issue.author %]</td>
77
78         <td>
79             [% IF issue.classification %]
80                 [% issue.classification %]
81             [% ELSE %]
82                 [% issue.itemcallnumber %]
83             [% END %]
84        </td>
85
86         <td>[% issue.barcode %]</td>
87
88             <td>
89         [% issue.renewals %]</td>
90             <td>
91         [% issue.issuedate | $KohaDates %]</td>
92             <td>
93         [% issue.issuingbranch %]</td>
94                         <td>[% IF issue.date_due %]
95                     [% issue.date_due | $KohaDates %]
96                 [% ELSE %]&nbsp;[% END %]</td>
97             <td>
98                 [% IF  issue.returndate %]
99                     <span title="[% issue.returndate %]">[% issue.returndate | $KohaDates %]</span>
100                 [% ELSE %]
101                     <span title="Checked Out"><small>Checked Out</small></span>
102                 [% END %]
103             </td>
104 </tr>
105 [% END %]
106 </table>
107 [% END %]
108 </div>
109 </div>
110
111 <div class="yui-b">
112 [% INCLUDE 'circ-menu.inc' %]
113 </div>
114 </div>
115 [% INCLUDE 'intranet-bottom.inc' %]