Bug 18331: Fix CSV export (once and for all!)
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / circ / on-site_checkouts.tt
1 [% USE Koha %]
2 [% USE Branches %]
3 [% USE KohaDates %]
4 [% USE AuthorisedValues %]
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Koha &rsaquo; Circulation &rsaquo; Pending on-site checkouts</title>
7 [% INCLUDE 'doc-head-close.inc' %]
8 <link rel="stylesheet" href="[% interface %]/[% theme %]/css/datatables.css" />
9 [% INCLUDE 'datatables.inc' %]
10 <script type="text/javascript">
11 //<![CDATA[
12
13 $(document).ready(function(){
14   if ( $("#pending_onsite_checkout").length ) {
15     $("#pending_onsite_checkout").dataTable($.extend(true, {}, dataTablesDefaults, {
16         "aLengthMenu": [[10, 20, 50, 100, -1], [10, 20, 50, 100, "All"]],
17         "aoColumns": [
18             { "sType": "title-string" },
19             { "sType": "html" },
20             { "sType": "html" },
21             null,
22             { "sType": "html" },
23             null,
24             null,
25         ],
26         'bAutoWidth': false,
27         "sPaginationType": "four_button"
28     }));
29   }
30 });
31 //]]>
32 </script>
33
34 </head>
35 <body id="circ_stats" class="circ">
36 [% INCLUDE 'header.inc' %]
37 [% INCLUDE 'circ-search.inc' %]
38
39 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a>  &rsaquo; Pending on-site checkouts</div>
40
41 <div id="doc3" class="yui-t2">
42   <div id="bd">
43     <div id="yui-main">
44       <div class="yui-b">
45         <h1>Pending on-site checkouts</h1>
46         [% IF pending_onsite_checkouts %]
47           <table id="pending_onsite_checkout">
48             <thead>
49               <tr>
50                 <th>Date</th><th>Patron</th><th>Title</th><th>Callnumber</th><th>Barcode</th><th>Library</th><th>Location</th>
51               </tr>
52             </thead>
53             <tbody>
54               [% FOREACH item IN pending_onsite_checkouts %]
55                 <tr>
56                   <td>
57                     [% IF item.is_overdue %]<span class="overdue">[% END %]
58                     <span title="[% item.date_due %]">[% item.date_due | $KohaDates %]</span>
59                     [% IF item.is_overdue %]</span>[% END %]
60                   </td>
61                   <td>
62                     <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% item.borrowernumber %]">[%item.firstname %] [% item.surname %]</a>
63                   </td>
64                   <td>
65                     <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.biblionumber %]"><strong>[% item.title |html %]</strong></a>[% IF ( item.author ) %], by [% item.author %][% END %][% IF ( item.itemnotes ) %]- <span class="circ-hlt">[% item.itemnotes %]</span>[% END %]
66                   </td>
67                   <td>[% item.itemcallnumber %]</td>
68                   <td>
69                     <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% item.biblionumber %]&amp;itemnumber=[% item.itemnumber %]#item[% item.itemnumber %]">[% item.barcode %]</a>
70                   </td>
71                   <td>[% Branches.GetName(item.branchcode) %]</td>
72                   <td>[% AuthorisedValues.GetByCode( 'LOC', item.location )%]</td>
73                 </tr>
74               [% END %]
75             </tbody>
76           </table>
77         [% ELSE %]
78           <h3>No pending on-site checkout.</h3>
79         [% END %]
80       </div>
81     </div>
82     <div class="yui-b">
83       [% IF Koha.Preference('CircSidebar') %][% INCLUDE 'circ-nav.inc' %][% END %]
84     </div>
85   </div>
86 [% INCLUDE 'intranet-bottom.inc' %]