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