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