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