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