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