Merge remote branch 'kc/new/enh/bug_5431' into kcmaster
[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>
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             </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>[% reser.datetransfer %]</p> [% IF ( reser.messcompa ) %]<span class="error">Transfer is [% reser.diff %] days late</span>[% END %]</td>
61                     <td><span style="display:none;">[% reser.title |html %]</span><!-- invisible title for tablesorter -->
62                    [% INCLUDE 'biblio-default-view.inc' %][% 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                 </tr>
83             [% END %]</tbody>
84             </table>
85             [% END %]
86         [% END %]
87         </div>
88     [% ELSE %]
89         <p>No transfers to receive</p>
90     [% END %]
91
92 </div>
93 </div>
94 </div>
95 [% INCLUDE 'intranet-bottom.inc' %]