Merge remote-tracking branch 'kc/new/bug_5616' into kcmaster
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / readingrec.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Circulation History for [% firstname %] [% surname %]</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
5 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.pager.js"></script>
6 <script type="text/javascript" id="js">$(document).ready(function() {
7         $.tablesorter.addParser({
8                 id: 'articles',
9                 is: function(s) {return false;  },
10                 format: function(s) { return s.toLowerCase().replace(/^(the|an|a) /,''); },
11                 type: 'text'
12         });
13         $.tablesorter.defaults.widgets = ['zebra'];
14         $("#table_readingrec").tablesorter({[% IF ( dateformat_metric ) %]
15                 dateFormat: 'uk',[% END %]
16                 sortList: [[8,1]],
17                 headers: { 1: { sorter: 'articles' }, 9: { sorter: 'shortDate'} }
18         }).tablesorterPager({container: $("#pagertable_readingrec"),positionFixed: false,size: 20});
19 }); </script>
20 </head>
21 <body>
22 [% INCLUDE 'header.inc' %]
23 [% INCLUDE 'patron-search.inc' %]
24
25 <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 [% firstname %] [% surname %]</div>
26
27 <div id="doc3" class="yui-t2">
28    
29    <div id="bd">
30         <div id="yui-main">
31         <div class="yui-b">
32 [% INCLUDE 'circ-toolbar.inc' %]
33 <h1>Circulation History</h1>
34 <form action="/cgi-bin/koha/members/readingrec.pl" method="get"><input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrowernumber %]" /></form>
35
36 <div id="pagertable_readingrec">
37 [% INCLUDE 'table-pager.inc' perpage='20' %]
38 </div>
39 <table id="table_readingrec">
40 <thead>
41     <th>Date</th>
42         <th>Title</th>
43         <th>Author</th>
44         <th>Call No.</th>
45         <th>Barcode</th>
46         <th>Number of Renewals</th>
47         <th>Checked out on</th>
48         <th>Checked out from</th>
49         <th>Date Due</th>
50         <th>Return Date</th>
51 </thead>
52 [% FOREACH loop_readin IN loop_reading %]
53     [% IF ( loop_readin.returndate ) %]<tr>[% ELSE %]<tr class="onissue">[% END %]
54         <td>
55             [% loop_readin.issuestimestamp %]
56         </td>
57         <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loop_readin.biblionumber %]">[% loop_readin.title |html %]</a></td>
58
59         <td>[% loop_readin.author %]</td>
60
61         <td>[% loop_readin.classification %]</td>
62
63         <td>[% loop_readin.barcode %]</td>
64
65             <td>
66         [% loop_readin.renewals %]</td>
67             <td>
68         [% loop_readin.issuedate %]</td>
69             <td>
70         [% loop_readin.issuingbranch %]</td>
71                         <td>[% IF ( loop_readin.date_due ) %][% loop_readin.date_due %][% ELSE %]&nbsp;[% END %]</td>
72             <td>
73         [% IF ( loop_readin.returndate ) %]
74             [% loop_readin.returndate %]
75         [% ELSE %]
76             Checked Out
77         [% END %]
78         </td>
79 </tr>
80 [% END %]
81 </table>
82
83 </div>
84 </div>
85
86 <div class="yui-b">
87 [% INCLUDE 'circ-menu.inc' %]
88 </div>
89 </div>
90 [% INCLUDE 'intranet-bottom.inc' %]