Bug 16522: (follow-up) MARC display templates and get_marc_host fixes
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / waiting_holds.inc
1 [% USE KohaDates %]
2 [% USE ItemTypes %]
3 [% USE AuthorisedValues %]
4 <table class="holds_table" id="[% table_name | html %]">
5     <thead>
6         <tr>
7             <th class="NoSort"><input type="checkbox" class="select_hold_all"/></th>
8             <th>Waiting since</th>
9             <th>Date hold placed</th>
10           [% IF table_name == 'holdscr' %]
11             <th>Date cancellation requested</th>
12           [% END %]
13             <th>Expiration date</th>
14             <th class="anti-the">Title</th>
15             <th>Patron</th>
16             <th>Home library</th>
17             <th>Current library</th>
18             <th>Shelving location</th>
19             <th>Call number</th>
20             <th>Copy number</th>
21             <th>Enumeration</th>
22             <th class="NoSort noExport">Actions</th>
23         </tr>
24     </thead>
25     <tbody>
26         [% FOREACH reserveloo IN reserveloop %]
27             <tr>
28                 <th><input type="checkbox" class="select_hold" data-id="[% reserveloo.reserve_id | html %]"/></th>
29                 <td><span data-order="[% reserveloo.waitingdate | html %]">[% reserveloo.waitingdate | $KohaDates %]</span></td>
30                 <td><span data-order="[% reserveloo.reservedate | html %]">[% reserveloo.reservedate | $KohaDates %]</span></td>
31               [% IF table_name == 'holdscr' %]
32                 <td>
33                 [% FOREACH cancellation_request IN reserveloo.cancellation_requests %]
34                     <span>[% cancellation_request.creation_date | $KohaDates %]</span>
35                 [% END %]
36                 </td>
37               [% END %]
38                 <td><span data-order="[% reserveloo.expirationdate | html %]">[% reserveloo.expirationdate | $KohaDates %]</span></td>
39                 <td>
40                     [% INCLUDE 'biblio-title.inc' biblio=reserveloo.biblio link = 1 %]
41                         [% UNLESS ( item_level_itypes ) %]
42                             [% IF ( ItemTypes.GetDescription(reserveloo.item.effective_itemtype) ) %]&nbsp; (<strong>[% ItemTypes.GetDescription(reserveloo.item.effective_itemtype) | html %]</strong>)
43                             [% END %]
44                         [% END %]
45                         <br />Barcode: [% reserveloo.item.barcode | html %]
46                 </td>
47                 <td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% reserveloo.borrower.borrowernumber | uri %]">[% INCLUDE 'patron-title.inc' patron=reserveloo.borrower invert_name=1 no_title=1 %]</a>
48                     [% IF ( reserveloo.borrower.phone ) %]<br /><span class="patron_phone">[% reserveloo.borrower.phone | html %]</span>[% END %]
49                     [% IF ( reserveloo.borrower.first_valid_email_address ) %]
50                         <span class="patron_email"><br /><a href="mailto:[% reserveloo.borrower.first_valid_email_address | uri %]?subject=[% "Hold waiting: " | uri %][% reserveloo.biblio.title | uri %]">
51                         [% reserveloo.borrower.first_valid_email_address | html %]</a></span>
52                     [% END %]
53                 </td>
54                 <td>[% Branches.GetName( reserveloo.item.homebranch ) | html %]</td>
55                 <td>[% Branches.GetName( reserveloo.item.holdingbranch ) | html %][% IF (reserveloo.desk_id  ) %], [% reserveloo.desk.desk_name | html %][% END %]</td>
56                 <td>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => reserveloo.item.location) | html %]</td>
57                 <td>[% reserveloo.item.itemcallnumber | html %]</td>
58                 <td>[% reserveloo.item.copynumber | html %]</td>
59                 <td>[% reserveloo.item.enumchron | html %]</td>
60                 <td>
61                     <form name="cancelReserve" action="waitingreserves.pl" method="post">
62                         <input type="hidden" name="borrowernumber" value="[% reserveloo.borrower.borrowernumber | html %]" />
63                         <input type="hidden" name="itemnumber" value="[% reserveloo.item.itemnumber | html %]" />
64                         <input type="hidden" name="fbr" value="[% reserveloo.item.holdingbranch | html %]" />
65                         <input type="hidden" name="tbr" value="[% reserveloo.item.homebranch | html %]" />
66                         <input type="hidden" name="tab" value="[% tab | html %]">
67                         [% IF ( reserveloo.item.homebranch != reserveloo.item.holdingbranch ) %]
68                             <button type="submit" class="btn btn-default btn-xs"><i class="fa fa-remove"></i> Cancel hold and return to: [% Branches.GetName( reserveloo.item.homebranch ) | html %]</button>
69                         [% ELSE %]
70                             <button type="submit" class="btn btn-default btn-xs"><i class="fa fa-remove"></i> Cancel hold</button>
71                         [% END %]
72                    </form>
73                 </td>
74             </tr>
75         [% END %]
76     </tbody>
77 </table>