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