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