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