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