Bug 10184 - Circulation History reverses sort order
[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="[% interface %]/[% theme %]/en/css/datatables.css" />
6 <script type="text/javascript" src="[% interface %]/[% theme %]/en/lib/jquery/plugins/jquery.dataTables.min.js"></script>
7 [% INCLUDE 'datatables-strings.inc' %]
8 <script type="text/javascript" src="[% interface %]/[% theme %]/en/js/datatables.js"></script>
9 <script type="text/javascript" id="js">
10 //<![CDATA[
11  $(document).ready(function() {
12     [% IF (dateformat == 'metric') %]
13         dt_add_type_uk_date();
14     [% END %]
15     $("#table_readingrec").dataTable($.extend(true, {}, dataTablesDefaults, {
16         "sPaginationType": "four_button",
17         "aaSorting": []
18     }));
19  });
20 //]]>
21 </script>
22 </head>
23 <body id="pat_readingrec" class="pat">
24 [% INCLUDE 'header.inc' %]
25 [% INCLUDE 'patron-search.inc' %]
26
27 <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>
28
29 <div id="doc3" class="yui-t2">
30    
31    <div id="bd">
32         <div id="yui-main">
33         <div class="yui-b">
34 [% INCLUDE 'members-toolbar.inc' %]
35 <h1>Circulation history</h1>
36 [% IF loop_reading %]
37 <form action="/cgi-bin/koha/members/readingrec.pl" method="get"><input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrowernumber %]" /></form>
38
39
40 <table id="table_readingrec">
41 <thead>
42     <th>Date</th>
43         <th>Title</th>
44         <th>Author</th>
45     <th>Call no.</th>
46         <th>Barcode</th>
47     <th>Number of renewals</th>
48         <th>Checked out on</th>
49         <th>Checked out from</th>
50     <th>Date due</th>
51     <th>Return date</th>
52 </thead>
53 [% FOREACH issue IN loop_reading %]
54     [% IF  issue.returndate  %]<tr>[% ELSE %]<tr class="onissue">[% END %]
55         <td>
56             [% issue.issuestimestamp | $KohaDates %]
57         </td>
58         <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% issue.biblionumber %]">[% issue.title |html %]</a></td>
59
60         <td>[% issue.author %]</td>
61
62         <td>
63             [% IF issue.classification %]
64                 [% issue.classification %]
65             [% ELSE %]
66                 [% issue.itemcallnumber %]
67             [% END %]
68        </td>
69
70         <td>[% issue.barcode %]</td>
71
72             <td>
73         [% issue.renewals %]</td>
74             <td>
75         [% issue.issuedate | $KohaDates %]</td>
76             <td>
77         [% issue.issuingbranch %]</td>
78                         <td>[% IF issue.date_due %]
79                     [% issue.date_due | $KohaDates %]
80                 [% ELSE %]&nbsp;[% END %]</td>
81             <td>
82         [% IF  issue.returndate %]
83             [% issue.returndate | $KohaDates %]
84         [% ELSE %]
85             Checked Out
86         [% END %]
87         </td>
88 </tr>
89 [% END %]
90 </table>
91 [% ELSE %]
92 <div class="dialog message">This patron has no circulation history.</div>
93 [% END %]
94 </div>
95 </div>
96
97 <div class="yui-b">
98 [% INCLUDE 'circ-menu.inc' %]
99 </div>
100 </div>
101 [% INCLUDE 'intranet-bottom.inc' %]