Merge branch 'bug_9850' into 3.14-master
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / circ / transferstoreceive.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Circulation &rsaquo; Transfers to your library</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 <link rel="stylesheet" type="text/css" href="/intranet-tmpl/prog/en/css/datatables.css" />
5 <script type="text/javascript" src="/intranet-tmpl/prog/en/lib/jquery/plugins/jquery.dataTables.min.js"></script>
6 [% INCLUDE 'datatables-strings.inc' %]
7 <script type="text/javascript" src="/intranet-tmpl/prog/en/js/datatables.js"></script>
8 <script type="text/javascript">
9 //<![CDATA[
10 [% IF (dateformat == 'metric') %]
11 dt_add_type_uk_date();
12 [% END %]
13 $(document).ready(function() {
14     [% FOREACH branchesloo IN branchesloop %]
15     $("#transferst[% branchesloo.branchcode %]").dataTable($.extend(true, {}, dataTablesDefaults, {
16         "aoColumnDefs": [
17             { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
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 your library</div>
32
33 <div id="doc" class="yui-t7">
34
35    <div id="bd">
36         <div id="yui-main">
37         <div class="yui-g">
38
39         <h1>Transfers made to your library as of [% show_date %]</h1>
40         [% IF ( branchesloop ) %]
41         <p>Your library is the destination for the following transfer(s)</p>
42                 [% IF ( latetransfers ) %]<p>Transfers are <span class="error">considered late</span> after [% TransfersMaxDaysWarning %] days.</p>[% END %]
43         <div id="resultlist">
44         [% FOREACH branchesloo IN branchesloop %]
45             [% IF ( branchesloo.branchcode ) %]
46             <table style="width: 100%" id="transferst[% branchesloo.branchcode %]">
47             <caption>Coming from [% branchesloo.branchname %]</caption>
48             <thead><tr>
49                 <th>Date of transfer</th>
50                 <th>Title</th>
51                 <th>On hold for</th>
52                 <th>Home library</th>
53                 <th>Call no.</th>
54                 <th>&nbsp;</th>
55             </tr></thead>
56             <tbody>[% FOREACH reser IN branchesloo.reserv %]
57                 [% IF ( reser.messcompa ) %]
58                 <tr class="problem">
59                 [% ELSE %]
60                 <tr>
61                 [% END %]
62                     <td><p>[% reser.datetransfer %]</p> [% IF ( reser.messcompa ) %]<span class="error">Transfer is [% reser.diff %] days late</span>[% END %]</td>
63                     <td><span style="display:none;">[% reser.title |html %]</span><!-- invisible title for tablesorter -->
64                    [% 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 %]
65                             [% IF ( reser.itemtype ) %]&nbsp; (<b>[% reser.itemtype %]</b>)[% END %]
66                             <br />Barcode: [% reser.barcode %]
67                     </td>
68                     <td>[% IF ( reser.borrowername ) %]
69                         <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% reser.borrowernum %]">
70                             [% reser.borrowername %] &nbsp; [% reser.borrowerfirstname %]
71                         </a>
72                         <br />[% reser.borrowerphone %]<br />
73                             [% IF ( reser.borrowermail ) %]
74                                 <a href="mailto:[% reser.email %]?subject=Reservation: [% reser.title |html %]">
75                                     [% reser.borrowermail %]
76                                 </a>
77                             [% END %]
78                         [% ELSE %]
79                         <p>None</p>
80                     [% END %]
81                     </td>
82                     <td>[% reser.homebranch %]</td>
83                     <td>[% reser.itemcallnumber %]</td>
84                     <td><a href="/cgi-bin/koha/circ/returns.pl?itemnumber=[% reser.itemnumber %]&amp;canceltransfer=1&amp;dest=ttr">Cancel transfer</a></td>
85                 </tr>
86             [% END %]</tbody>
87             </table>
88             [% END %]
89         [% END %]
90         </div>
91     [% ELSE %]
92         <p>No transfers to receive</p>
93     [% END %]
94
95 </div>
96 </div>
97 </div>
98 [% INCLUDE 'intranet-bottom.inc' %]