Merge remote-tracking branch 'origin/new/bug_6199'
[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 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
5 <script type="text/javascript" language="JavaScript">
6 //<![CDATA[
7 $.tablesorter.addParser({
8     id: 'articles',
9     is: function(s) {return false;  },
10     format: function(s) { return s.toLowerCase().replace(/^(the|an|a) /,''); },
11     type: 'text'
12 });
13 $(document).ready(function() {
14     [% FOREACH branchesloo IN branchesloop %]
15     $.tablesorter.defaults.widgets = ['zebra'];
16     $("#transferst[% branchesloo.branchcode %]").tablesorter({[% IF ( branchesloo.dateformat_metric ) %]
17         dateFormat: 'uk',[% END %]
18         sortList: [[0,0]],
19         headers: { 1: { sorter: 'articles' }}
20     });
21     [% END %]
22 });
23 //]]>
24 </script>
25 </head>
26 <body id="circ_transferstoreceive" class="circ">
27 [% INCLUDE 'header.inc' %]
28 [% INCLUDE 'circ-search.inc' %]
29
30 <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>
31
32 <div id="doc" class="yui-t7">
33
34    <div id="bd">
35         <div id="yui-main">
36         <div class="yui-g">
37
38         <h1>Transfers made to your library as of [% show_date %]</h1>
39         [% IF ( branchesloop ) %]
40         <p>Your library is the destination for the following transfer(s)</p>
41                 [% IF ( latetransfers ) %]<p>Transfers are <span class="error">considered late</span> after [% TransfersMaxDaysWarning %] days.</p>[% END %]
42         <div id="resultlist">
43         [% FOREACH branchesloo IN branchesloop %]
44             [% IF ( branchesloo.branchcode ) %]
45             <table style="width: 100%" id="transferst[% branchesloo.branchcode %]">
46             <caption>Coming from [% branchesloo.branchname %]</caption>
47             <thead><tr>
48                 <th>Date of transfer</th>
49                 <th>Title</th>
50                 <th>On hold for</th>
51                 <th>Home library</th>
52                 <th>Call no.</th>
53                 <th>&nbsp;</th>
54             </tr></thead>
55             <tbody>[% FOREACH reser IN branchesloo.reserv %]
56                 [% IF ( reser.messcompa ) %]
57                 <tr class="problem">
58                 [% ELSE %]
59                 <tr>
60                 [% END %]
61                     <td><p>[% reser.datetransfer %]</p> [% IF ( reser.messcompa ) %]<span class="error">Transfer is [% reser.diff %] days late</span>[% END %]</td>
62                     <td><span style="display:none;">[% reser.title |html %]</span><!-- invisible title for tablesorter -->
63                    [% 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 %]
64                             [% IF ( reser.itemtype ) %]&nbsp; (<b>[% reser.itemtype %]</b>)[% END %]
65                             <br />Barcode: [% reser.barcode %]
66                     </td>
67                     <td>[% IF ( reser.borrowername ) %]
68                         <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% reser.borrowernum %]">
69                             [% reser.borrowername %] &nbsp; [% reser.borrowerfirstname %]
70                         </a>
71                         <br />[% reser.borrowerphone %]<br />
72                             [% IF ( reser.borrowermail ) %]
73                                 <a href="mailto:[% reser.email %]?subject=Reservation: [% reser.title |html %]">
74                                     [% reser.borrowermail %]
75                                 </a>
76                             [% END %]
77                         [% ELSE %]
78                         <p>None</p>
79                     [% END %]
80                     </td>
81                     <td>[% reser.homebranch %]</td>
82                     <td>[% reser.itemcallnumber %]</td>
83                     <td><a href="/cgi-bin/koha/circ/returns.pl?itemnumber=[% reser.itemnumber %]&amp;canceltransfer=1&amp;dest=ttr">Cancel Transfer</a></td>
84                 </tr>
85             [% END %]</tbody>
86             </table>
87             [% END %]
88         [% END %]
89         </div>
90     [% ELSE %]
91         <p>No transfers to receive</p>
92     [% END %]
93
94 </div>
95 </div>
96 </div>
97 [% INCLUDE 'intranet-bottom.inc' %]