Bug 10860: In-House Use
[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     var table = $("#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     var tabs = $("#tabs").tabs({
20         select: function(e, ui) {
21             var id = $(ui.tab).attr("id");
22             if ( id == "tab_checkout" ) {
23                 table.fnFilter("checkout", 0);
24             } else if ( id == "tab_inhouse_use" ) {
25                 table.fnFilter("inhouse_use", 0);
26             } else { // all
27                 table.fnFilter('', 0);
28             }
29         }
30     });
31  });
32 //]]>
33 </script>
34 </head>
35 <body id="pat_readingrec" class="pat">
36 [% INCLUDE 'header.inc' %]
37 [% INCLUDE 'patron-search.inc' %]
38
39 <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>
40
41 <div id="doc3" class="yui-t2">
42    
43    <div id="bd">
44         <div id="yui-main">
45         <div class="yui-b">
46 [% INCLUDE 'members-toolbar.inc' %]
47 <h1>Circulation history</h1>
48
49 [% IF is_anonymous %]
50     <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>
51 [% ELSIF ( !loop_reading ) %]
52     <div class="dialog message">This patron has no circulation history.</div>
53 [% ELSE %]
54 <form action="/cgi-bin/koha/members/readingrec.pl" method="get"><input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrowernumber %]" /></form>
55
56
57 <div id="tabs" class="toptabs">
58   <ul>
59     <li><a href="#readingrec" id="tab_all">All</a></li>
60     <li><a href="#readingrec" id="tab_checkout">Checkouts</a></li>
61     <li><a href="#readingrec" id="tab_inhouse_use">In-house use</a></li>
62   </ul>
63   <div id="readingrec" style="overflow:hidden">
64     <table id="table_readingrec">
65       <thead>
66         <th style="display:none;">Type</th>
67         <th class="title-string">Date</th>
68         <th class="anti-the">Title</th>
69         <th>Author</th>
70         <th>Call no.</th>
71         <th>Barcode</th>
72         <th>Number of renewals</th>
73         <th class="title-string">Checked out on</th>
74         <th>Checked out from</th>
75         <th class="title-string">Date due</th>
76         <th class="title-string">Return date</th>
77       </thead>
78       <tbody>
79       [% FOREACH issue IN loop_reading %]
80         [% IF  issue.returndate  %]<tr>[% ELSE %]<tr class="onissue">[% END %]
81           <td style="display:none;">
82             [% IF issue.inhouse_use %]
83               inhouse_use
84             [% ELSE %]
85               checkout
86             [% END %]
87           </td>
88           <td>
89             <span title="[% issue.issuestimestamp %]">[% issue.issuestimestamp | $KohaDates %]</span>
90           </td>
91           <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% issue.biblionumber %]">[% issue.title |html %]</a></td>
92
93           <td>[% issue.author %]</td>
94
95           <td>
96             [% IF issue.classification %]
97                 [% issue.classification %]
98             [% ELSE %]
99                 [% issue.itemcallnumber %]
100             [% END %]
101           </td>
102
103           <td>[% issue.barcode %]</td>
104           <td>[% issue.renewals %]</td>
105           <td>
106             <span title="[% issue.issuedate %]">[% issue.issuedate | $KohaDates %]</span></td>
107           </td>
108           <td>[% issue.issuedate | $KohaDates %]</td>
109           <td>[% issue.issuingbranch %]</td>
110           <td>
111             [% IF issue.date_due %]
112                 <span title="[% issue.date_due %]">[% issue.date_due | $KohaDates %]</span>
113             [% ELSE %]
114                 <span title="0000-00-00"></span>
115             [% END %]
116           </td>
117           <td>
118             [% IF  issue.returndate %]
119               <span title="[% issue.returndate %]">[% issue.returndate | $KohaDates %]</span>
120             [% ELSE %]
121               <span title="Checked Out"><small>Checked Out</small></span>
122             [% END %]
123           </td>
124         </tr>
125       [% END %]
126       </tbody>
127     </table>
128   </div>
129 </div>
130 [% END %]
131 </div>
132 </div>
133
134 <div class="yui-b">
135 [% INCLUDE 'circ-menu.inc' %]
136 </div>
137 </div>
138 [% INCLUDE 'intranet-bottom.inc' %]