Bug 30952: (follow-up) Undo change to Home breadcrumb
[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 [% 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             <table style="width: 100%" id="transferst[% branchesloo.branchcode | html %]">
55             <caption>Coming from [% branchesloo.branchname | html %]</caption>
56             <thead><tr>
57                 <th>Date of transfer</th>
58                 <th class="anti-the">Title</th>
59                 <th>On hold for</th>
60                 <th>Home library</th>
61                 <th>Call number</th>
62                 <th>&nbsp;</th>
63             </tr></thead>
64             <tbody>[% FOREACH reser IN branchesloo.reserv %]
65                 [% IF ( reser.messcompa ) %]
66                 <tr class="problem">
67                 [% ELSE %]
68                 <tr>
69                 [% END %]
70                     <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>
71                     <td>
72                         [% INCLUDE 'biblio-title.inc' biblio=reser link = 1 %] [% IF ( reser.author ) %]by [% reser.author | html %][% END %]
73                             [% IF ( reser.itemtype ) %] (<strong>[% reser.itemtype | html %]</strong>)[% END %]
74                             <br />Barcode: [% reser.barcode | html %]
75                     </td>
76                     <td>[% IF ( reser.patron ) %]
77                         <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% reser.patron.borrowernumber | uri %]">
78                             [% reser.patron.surname | html %][%IF ( reser.patron.firstname ) %], [% reser.patron.firstname | html %][% END %]
79                         </a>
80                         [% IF ( reser.patron.phone ) %]<br />[% reser.patron.phone | html %][% END %]
81                             [% IF ( reser.patron.first_valid_email_address ) %]
82                                 <br />
83                                 [% BLOCK subject %]Hold:[% END %]
84                                 <a href="mailto:[% reser.patron.first_valid_email_address | uri %]?subject=[% INCLUDE subject %] [% reser.title | uri %]">
85                                     [% reser.patron.first_valid_email_address | html %]
86                                 </a>
87                             [% END %]
88                         [% ELSIF ( reser.recall ) %]
89                             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>
90                         [% ELSE %]
91                         <p>None</p>
92                     [% END %]
93                     </td>
94                     <td>[% IF reser.homebranch %][% Branches.GetName( reser.homebranch ) | html %][% END %]</td>
95                     <td>[% reser.itemcallnumber | html %]</td>
96                     <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>
97                 </tr>
98             [% END %]</tbody>
99             </table>
100             [% END %]
101         [% END %]
102         </div>
103     [% ELSE %]
104         <p>No transfers to receive</p>
105     [% END %]
106
107                     [% IF Koha.Preference('CircSidebar') %]
108                             </div> <!-- /.col-sm-10.col-sm-push-2 -->
109                             <div class="col-sm-2 col-sm-pull-10">
110                                 <aside>
111                                     [% INCLUDE 'circ-nav.inc' %]
112                                 </aside>
113                             </div> <!-- /.col-sm-2.col-sm-pull-10 -->
114                         </div> <!-- /.row -->
115                     [% END %]
116
117             </main>
118         </div> <!-- /.col-sm-12 -->
119     </div> <!-- /.row -->
120
121 [% MACRO jsinclude BLOCK %]
122     [% INCLUDE 'datatables.inc' %]
123     <script>
124         $(document).ready(function() {
125             [% FOREACH branchesloo IN branchesloop %]
126             $("#transferst[% branchesloo.branchcode | html %]").dataTable($.extend(true, {}, dataTablesDefaults, {
127                 "aoColumnDefs": [
128                     { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
129                     { "sType": "anti-the", "aTargets" : [ "anti-the" ] }
130                 ],
131                 "sDom": 't',
132                 "bPaginate": false
133             }));
134             [% END %]
135         });
136     </script>
137 [% END %]
138
139 [% INCLUDE 'intranet-bottom.inc' %]