Bug 19623: (follow-up) Correct footer include in pop-up windows
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / circ / transferstoreceive.tt
1 [% USE Koha %]
2 [% USE KohaDates %]
3 [% USE Branches %]
4 [% SET footerjs = 1 %]
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Koha &rsaquo; Circulation &rsaquo; Transfers to receive</title>
7 [% INCLUDE 'doc-head-close.inc' %]
8 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
9 </head>
10
11 <body id="circ_transferstoreceive" class="circ">
12 [% INCLUDE 'header.inc' %]
13 [% INCLUDE 'circ-search.inc' %]
14
15 <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; Transfers to receive</div>
16
17 [% IF Koha.Preference('CircSidebar') %]<div id="doc3" class="yui-t2">[% ELSE %]<div id="doc" class="yui-t7">[% END %]
18
19    <div id="bd">
20         <div id="yui-main">
21         [% IF Koha.Preference('CircSidebar') %]<div class="yui-b">[% END %]
22         <div class="yui-g">
23
24         <h1>Transfers made to your library as of [% show_date | $KohaDates %]</h1>
25         [% IF ( branchesloop ) %]
26         <p>Your library is the destination for the following transfer(s)</p>
27                 [% IF ( latetransfers ) %]<p>Transfers are <span class="error">considered late</span> after [% TransfersMaxDaysWarning %] days.</p>[% END %]
28         <div id="resultlist">
29         [% FOREACH branchesloo IN branchesloop %]
30             [% IF ( branchesloo.branchcode ) %]
31             <table style="width: 100%" id="transferst[% branchesloo.branchcode %]">
32             <caption>Coming from [% branchesloo.branchname %]</caption>
33             <thead><tr>
34                 <th class="title-string">Date of transfer</th>
35                 <th class="anti-the">Title</th>
36                 <th>On hold for</th>
37                 <th>Home library</th>
38                 <th>Call no.</th>
39                 <th>&nbsp;</th>
40             </tr></thead>
41             <tbody>[% FOREACH reser IN branchesloo.reserv %]
42                 [% IF ( reser.messcompa ) %]
43                 <tr class="problem">
44                 [% ELSE %]
45                 <tr>
46                 [% END %]
47                     <td><p><span title="[% reser.datetransfer %]">[% reser.datetransfer | $KohaDates %]</span></p> [% IF ( reser.messcompa ) %]<span class="error">Transfer is [% reser.diff %] days late</span>[% END %]</td>
48                     <td>
49                         [% INCLUDE 'biblio-default-view.inc' biblionumber = reser.biblionumber %][% reser.title |html %] [% IF ( reser.subtitle ) %] [% FOREACH subtitl IN reser.subtitle %][% subtitl.subfield %][% END %][% END %]</a> [% IF ( reser.author ) %]by [% reser.author %][% END %]
50                             [% IF ( reser.itemtype ) %] (<b>[% reser.itemtype %]</b>)[% END %]
51                             <br />Barcode: [% reser.barcode %]
52                     </td>
53                     <td>[% IF ( reser.borrowername ) %]
54                         <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% reser.borrowernum %]">
55                             [% reser.borrowername %][%IF ( reser.borrowerfirstname ) %], [% reser.borrowerfirstname %][% END %]
56                         </a>
57                         [% IF ( reser.borrowerphone ) %]<br />[% reser.borrowerphone %][% END %]
58                             [% IF ( reser.borrowermail ) %]
59                                 <br />
60                                 [% BLOCK subject %]Hold:[% END %]
61                                 <a href="mailto:[% reser.borrowermail %]?subject=[% INCLUDE subject %] [% reser.title |html %]">
62                                     [% reser.borrowermail %]
63                                 </a>
64                             [% END %]
65                         [% ELSE %]
66                         <p>None</p>
67                     [% END %]
68                     </td>
69                     <td>[% IF reser.homebranch %][% Branches.GetName( reser.homebranch ) %][% END %]</td>
70                     <td>[% reser.itemcallnumber %]</td>
71                     <td class="actions"><a href="/cgi-bin/koha/circ/returns.pl?itemnumber=[% reser.itemnumber %]&amp;canceltransfer=1&amp;dest=ttr" class="btn btn-default btn-xs"><i class="fa fa-times"></i> Cancel transfer</a></td>
72                 </tr>
73             [% END %]</tbody>
74             </table>
75             [% END %]
76         [% END %]
77         </div>
78     [% ELSE %]
79         <p>No transfers to receive</p>
80     [% END %]
81
82 </div>
83 </div>
84 [% IF Koha.Preference('CircSidebar') %]
85 </div>
86 <div class="yui-b noprint">
87     [% INCLUDE 'circ-nav.inc' %]
88 </div>
89 [% END %]
90 </div>
91
92 [% MACRO jsinclude BLOCK %]
93     [% INCLUDE 'datatables.inc' %]
94     <script type="text/javascript">
95         $(document).ready(function() {
96             [% FOREACH branchesloo IN branchesloop %]
97             $("#transferst[% branchesloo.branchcode %]").dataTable($.extend(true, {}, dataTablesDefaults, {
98                 "aoColumnDefs": [
99                     { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
100                     { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
101                     { "sType": "title-string", "aTargets" : [ "title-string" ] }
102                 ],
103                 "sDom": 't',
104                 "bPaginate": false
105             }));
106             [% END %]
107         });
108     </script>
109 [% END %]
110
111 [% INCLUDE 'intranet-bottom.inc' %]