6b1d94fd4e4bd8158af7dbf3a1ae2a2512213ffc
[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 </head>
12
13 <body id="circ_stats" class="circ">
14 [% INCLUDE 'header.inc' %]
15 [% INCLUDE 'circ-search.inc' %]
16
17 <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>
18
19 <div class="main container-fluid">
20     <div class="row">
21         <div class="col-sm-12">
22             <main>
23                 <div class="row">
24
25                 [% IF Koha.Preference('CircSidebar') %]
26                     <div class="col-sm-10 col-sm-push-2">
27                 [% ELSE %]
28                     <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
29                 [% END %]
30
31         <h1>Pending on-site checkouts</h1>
32         [% IF pending_onsite_checkouts %]
33           <table id="pending_onsite_checkout">
34             <thead>
35               <tr>
36                 <th>Date</th><th>Patron</th><th>Title</th><th>Callnumber</th><th>Barcode</th><th>Library</th><th>Location</th>
37               </tr>
38             </thead>
39             <tbody>
40               [% FOREACH item IN pending_onsite_checkouts %]
41                 <tr>
42                   <td>
43                     [% IF item.is_overdue %]<span class="overdue">[% END %]
44                     <span title="[% item.date_due | html %]">[% item.date_due | $KohaDates %]</span>
45                     [% IF item.is_overdue %]</span>[% END %]
46                   </td>
47                   <td>
48                     <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% item.borrowernumber | uri %]">[% item.firstname | html %] [% item.surname | html %]</a>
49                   </td>
50                   <td>
51                     <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 | html %]</span>[% END %]
52                   </td>
53                   <td>[% item.itemcallnumber | html %]</td>
54                   <td>
55                     <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>
56                   </td>
57                   <td>[% Branches.GetName(item.branchcode) | html %]</td>
58                   <td>[% AuthorisedValues.GetByCode( 'LOC', item.location ) | html %]</td>
59                 </tr>
60               [% END %]
61             </tbody>
62           </table>
63         [% ELSE %]
64           <h3>No pending on-site checkout.</h3>
65         [% END %]
66
67                     [% IF Koha.Preference('CircSidebar') %]
68                             </div> <!-- /.col-sm-10.col-sm-push-2 -->
69                             <div class="col-sm-2 col-sm-pull-10">
70                                 <aside>
71                                     [% INCLUDE 'circ-nav.inc' %]
72                                 </aside>
73                             </div> <!-- /.col-sm-2.col-sm-pull-10 -->
74                         </div> <!-- /.row -->
75                     [% END %]
76
77             </main>
78         </div> <!-- /.col-sm-12 -->
79     </div> <!-- /.row -->
80
81 [% MACRO jsinclude BLOCK %]
82     [% INCLUDE 'datatables.inc' %]
83     <script>
84         $(document).ready(function(){
85             if ( $("#pending_onsite_checkout").length ) {
86                 $("#pending_onsite_checkout").dataTable($.extend(true, {}, dataTablesDefaults, {
87                     "aLengthMenu": [[10, 20, 50, 100, -1], [10, 20, 50, 100, "All"]],
88                     "aoColumns": [
89                         { "sType": "title-string" },
90                         { "sType": "html" },
91                         { "sType": "html" },
92                         null,
93                         { "sType": "html" },
94                         null,
95                         null,
96                     ],
97                     'bAutoWidth': false,
98                     "sPaginationType": "four_button"
99                 }));
100             }
101         });
102     </script>
103 [% END %]
104
105 [% INCLUDE 'intranet-bottom.inc' %]