Bug 7720: add options for controlling display of an item's home and/or holdings location
[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="[% themelang %]/css/datatables.css" />
6 [% INCLUDE 'datatables.inc' %]
7 <script type="text/javascript" id="js">
8 //<![CDATA[
9
10  $(document).ready(function() {
11     $("#table_readingrec").dataTable($.extend(true, {}, dataTablesDefaults, {
12         "sPaginationType": "four_button",
13         "aaSorting": [],
14         "aoColumnDefs": [
15             { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
16             { "sType": "title-string", "aTargets" : [ "title-string" ] }
17         ]
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
37 [% IF is_anonymous %]
38     <div class="dialog alert">This is the anonymous patron, so no circulation history is displayed. To get a list of anonymized loans, please run a report.</div>
39 [% ELSIF ( !loop_reading ) %]
40     <div class="dialog message">This patron has no circulation history.</div>
41 [% ELSE %]
42 <form action="/cgi-bin/koha/members/readingrec.pl" method="get"><input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrowernumber %]" /></form>
43
44
45 <table id="table_readingrec">
46 <thead>
47     <tr>
48     <th class="title-string">Date</th>
49     <th class="anti-the">Title</th>
50         <th>Author</th>
51     <th>Call no.</th>
52         <th>Barcode</th>
53     <th>Number of renewals</th>
54     <th class="title-string">Checked out on</th>
55         <th>Checked out from</th>
56     <th class="title-string">Date due</th>
57     <th class="title-string">Return date</th>
58     </tr>
59 </thead>
60 <tbody>
61 [% FOREACH issue IN loop_reading %]
62     [% IF  issue.returndate  %]<tr>[% ELSE %]<tr class="onissue">[% END %]
63         <td>
64             <span title="[% issue.issuestimestamp %]">[% issue.issuestimestamp | $KohaDates %]</span>
65         </td>
66         <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% issue.biblionumber %]">[% issue.title |html %]</a></td>
67
68         <td>[% issue.author %]</td>
69
70         <td>
71             [% IF issue.classification %]
72                 [% issue.classification %]
73             [% ELSE %]
74                 [% issue.itemcallnumber %]
75             [% END %]
76        </td>
77
78         <td>[% issue.barcode %]</td>
79
80             <td>
81         [% issue.renewals %]</td>
82             <td>
83                 <span title="[% issue.issuedate %]">[% issue.issuedate | $KohaDates %]</span></td>
84             <td>
85         [% issue.issuingbranch %]</td>
86                         <td>[% IF issue.date_due %]
87                     <span title="[% issue.date_due %]">[% issue.date_due | $KohaDates %]</span>
88                 [% ELSE %]
89                     <span title="0000-00-00"></span>
90                 [% END %]
91             </td>
92             <td>
93                 [% IF  issue.returndate %]
94                     <span title="[% issue.returndate %]">[% issue.returndate | $KohaDates %]</span>
95                 [% ELSE %]
96                     <span title="Checked Out"><small>Checked out</small></span>
97                 [% END %]
98             </td>
99 </tr>
100 [% END %]
101 </tbody>
102 </table>
103 [% END %]
104 </div>
105 </div>
106
107 <div class="yui-b">
108 [% INCLUDE 'circ-menu.inc' %]
109 </div>
110 </div>
111 [% INCLUDE 'intranet-bottom.inc' %]