Bug 26703: circ folder
[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>Transfers to receive &rsaquo; Circulation &rsaquo; Koha</title>
9 [% INCLUDE 'doc-head-close.inc' %]
10 </head>
11
12 <body id="circ_transferstoreceive" class="circ">
13 [% INCLUDE 'header.inc' %]
14 [% INCLUDE 'circ-search.inc' %]
15
16 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
17     <ol>
18         <li>
19             <a href="/cgi-bin/koha/mainpage.pl">Home</a>
20         </li>
21         <li>
22             <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a>
23         </li>
24         <li>
25             <a href="#" aria-current="page">
26                 Transfers to receive
27             </a>
28         </li>
29     </ol>
30 </nav>
31
32 <div class="main container-fluid">
33     <div class="row">
34         <div class="col-sm-12">
35             <main>
36                 <div class="row">
37
38                 [% IF Koha.Preference('CircSidebar') %]
39                     <div class="col-sm-10 col-sm-push-2">
40                 [% ELSE %]
41                     <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
42                 [% END %]
43
44         <h1>Transfers made to your library as of [% show_date | $KohaDates %]</h1>
45         [% IF ( branchesloop ) %]
46         <p>Your library is the destination for the following transfer(s)</p>
47                 [% IF ( latetransfers ) %]<p>Transfers are <span class="error">considered late</span> after [% TransfersMaxDaysWarning | html %] days.</p>[% END %]
48         <div id="resultlist">
49         [% FOREACH branchesloo IN branchesloop %]
50             [% IF ( branchesloo.branchcode ) %]
51             <table style="width: 100%" id="transferst[% branchesloo.branchcode | html %]">
52             <caption>Coming from [% branchesloo.branchname | html %]</caption>
53             <thead><tr>
54                 <th>Date of transfer</th>
55                 <th class="anti-the">Title</th>
56                 <th>On hold for</th>
57                 <th>Home library</th>
58                 <th>Call number</th>
59                 <th>&nbsp;</th>
60             </tr></thead>
61             <tbody>[% FOREACH reser IN branchesloo.reserv %]
62                 [% IF ( reser.messcompa ) %]
63                 <tr class="problem">
64                 [% ELSE %]
65                 <tr>
66                 [% END %]
67                     <td data-order="[% reser.datetransfer | html %]"><p>[% reser.datetransfer | $KohaDates %]</p> [% IF ( reser.messcompa ) %]<span class="error">Transfer is [% reser.diff | html %] days late</span>[% END %]</td>
68                     <td>
69                         [% INCLUDE 'biblio-title.inc' biblio=reser link = 1 %] [% IF ( reser.author ) %]by [% reser.author | html %][% END %]
70                             [% IF ( reser.itemtype ) %] (<strong>[% reser.itemtype | html %]</strong>)[% END %]
71                             <br />Barcode: [% reser.barcode | html %]
72                     </td>
73                     <td>[% IF ( reser.patron ) %]
74                         <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% reser.patron.borrowernumber | uri %]">
75                             [% reser.patron.surname | html %][%IF ( reser.patron.firstname ) %], [% reser.patron.firstname | html %][% END %]
76                         </a>
77                         [% IF ( reser.patron.phone ) %]<br />[% reser.patron.phone | html %][% END %]
78                             [% IF ( reser.patron.first_valid_email_address ) %]
79                                 <br />
80                                 [% BLOCK subject %]Hold:[% END %]
81                                 <a href="mailto:[% reser.patron.first_valid_email_address | uri %]?subject=[% INCLUDE subject %] [% reser.title | uri %]">
82                                     [% reser.patron.first_valid_email_address | html %]
83                                 </a>
84                             [% END %]
85                         [% ELSE %]
86                         <p>None</p>
87                     [% END %]
88                     </td>
89                     <td>[% IF reser.homebranch %][% Branches.GetName( reser.homebranch ) | html %][% END %]</td>
90                     <td>[% reser.itemcallnumber | html %]</td>
91                     <td class="actions"><a href="/cgi-bin/koha/circ/returns.pl?itemnumber=[% reser.itemnumber | uri %]&amp;canceltransfer=1&amp;dest=ttr" class="btn btn-default btn-xs"><i class="fa fa-times"></i> Cancel transfer</a></td>
92                 </tr>
93             [% END %]</tbody>
94             </table>
95             [% END %]
96         [% END %]
97         </div>
98     [% ELSE %]
99         <p>No transfers to receive</p>
100     [% END %]
101
102                     [% IF Koha.Preference('CircSidebar') %]
103                             </div> <!-- /.col-sm-10.col-sm-push-2 -->
104                             <div class="col-sm-2 col-sm-pull-10">
105                                 <aside>
106                                     [% INCLUDE 'circ-nav.inc' %]
107                                 </aside>
108                             </div> <!-- /.col-sm-2.col-sm-pull-10 -->
109                         </div> <!-- /.row -->
110                     [% END %]
111
112             </main>
113         </div> <!-- /.col-sm-12 -->
114     </div> <!-- /.row -->
115
116 [% MACRO jsinclude BLOCK %]
117     [% INCLUDE 'datatables.inc' %]
118     <script>
119         $(document).ready(function() {
120             [% FOREACH branchesloo IN branchesloop %]
121             $("#transferst[% branchesloo.branchcode | html %]").dataTable($.extend(true, {}, dataTablesDefaults, {
122                 "aoColumnDefs": [
123                     { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
124                     { "sType": "anti-the", "aTargets" : [ "anti-the" ] }
125                 ],
126                 "sDom": 't',
127                 "bPaginate": false
128             }));
129             [% END %]
130         });
131     </script>
132 [% END %]
133
134 [% INCLUDE 'intranet-bottom.inc' %]