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