Merge branch 'bug_9102' into 3.12-master
[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">
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     }));
18  });
19 //]]>
20 </script>
21 </head>
22 <body id="pat_readingrec" class="pat">
23 [% INCLUDE 'header.inc' %]
24 [% INCLUDE 'patron-search.inc' %]
25
26 <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>
27
28 <div id="doc3" class="yui-t2">
29    
30    <div id="bd">
31         <div id="yui-main">
32         <div class="yui-b">
33 [% INCLUDE 'members-toolbar.inc' %]
34 <h1>Circulation history</h1>
35 [% IF loop_reading %]
36 <form action="/cgi-bin/koha/members/readingrec.pl" method="get"><input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrowernumber %]" /></form>
37
38
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 issue IN loop_reading %]
53     [% IF  issue.returndate  %]<tr>[% ELSE %]<tr class="onissue">[% END %]
54         <td>
55             [% issue.issuestimestamp | $KohaDates %]
56         </td>
57         <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% issue.biblionumber %]">[% issue.title |html %]</a></td>
58
59         <td>[% issue.author %]</td>
60
61         <td>
62             [% IF issue.classification %]
63                 [% issue.classification %]
64             [% ELSE %]
65                 [% issue.itemcallnumber %]
66             [% END %]
67        </td>
68
69         <td>[% issue.barcode %]</td>
70
71             <td>
72         [% issue.renewals %]</td>
73             <td>
74         [% issue.issuedate | $KohaDates %]</td>
75             <td>
76         [% issue.issuingbranch %]</td>
77                         <td>[% IF issue.date_due %]
78                     [% issue.date_due | $KohaDates %]
79                 [% ELSE %]&nbsp;[% END %]</td>
80             <td>
81         [% IF  issue.returndate %]
82             [% issue.returndate | $KohaDates %]
83         [% ELSE %]
84             Checked Out
85         [% END %]
86         </td>
87 </tr>
88 [% END %]
89 </table>
90 [% ELSE %]
91 <div class="dialog message">This patron has no circulation history.</div>
92 [% END %]
93 </div>
94 </div>
95
96 <div class="yui-b">
97 [% INCLUDE 'circ-menu.inc' %]
98 </div>
99 </div>
100 [% INCLUDE 'intranet-bottom.inc' %]