3 [% USE AuthorisedValues %]
4 <table class="holds_table" id="[% table_name | html %]">
7 <th class="NoSort"><input type="checkbox" class="select_hold_all"/></th>
9 <th>Date hold placed</th>
10 [% IF table_name == 'holdscr' %]
11 <th>Date cancellation requested</th>
13 <th>Expiration date</th>
14 <th class="anti-the">Title</th>
17 <th>Current library</th>
18 <th>Shelving location</th>
22 <th class="NoSort noExport">Actions</th>
26 [% FOREACH reserveloo IN reserveloop %]
28 <th><input type="checkbox" class="select_hold" data-id="[% reserveloo.reserve_id | html %]"/></th>
29 <td data-order="[% reserveloo.waitingdate | html %]"><span>[% reserveloo.waitingdate | $KohaDates %]</span></td>
30 <td data-order="[% reserveloo.reservedate | html %]"><span>[% reserveloo.reservedate | $KohaDates %]</span></td>
31 [% IF table_name == 'holdscr' %]
32 [% IF reserveloo.cancellation_requests.count %]
33 [% FOREACH cancellation_request IN reserveloo.cancellation_requests %]
35 <td data-order="[% cancellation_request.creation_date | html %]">
37 <span>[% cancellation_request.creation_date | $KohaDates %]</span>
46 <td data-order="[% reserveloo.expirationdate | html %]"><span>[% reserveloo.expirationdate | $KohaDates %]</span></td>
48 [% INCLUDE 'biblio-title.inc' biblio=reserveloo.biblio link = 1 %]
49 [% UNLESS ( item_level_itypes ) %]
50 [% IF ( ItemTypes.GetDescription(reserveloo.item.effective_itemtype) ) %] (<strong>[% ItemTypes.GetDescription(reserveloo.item.effective_itemtype) | html %]</strong>)
53 <br />Barcode: [% reserveloo.item.barcode | html %]
55 <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>
56 [% IF ( reserveloo.borrower.phone ) %]<br /><span class="patron_phone">[% reserveloo.borrower.phone | html %]</span>[% END %]
57 [% IF ( reserveloo.borrower.notice_email_address ) %]
58 <span class="patron_email"><br /><a href="mailto:[% reserveloo.borrower.notice_email_address | uri %]?subject=[% "Hold waiting: " | uri %][% reserveloo.biblio.title | uri %]">
59 [% reserveloo.borrower.notice_email_address | html %]</a></span>
62 <td>[% Branches.GetName( reserveloo.item.homebranch ) | html %]</td>
63 <td>[% Branches.GetName( reserveloo.item.holdingbranch ) | html %][% IF (reserveloo.desk_id ) %], [% reserveloo.desk.desk_name | html %][% END %]</td>
64 <td>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => reserveloo.item.location) | html %]</td>
65 <td>[% reserveloo.item.itemcallnumber | html %]</td>
66 <td>[% reserveloo.item.copynumber | html %]</td>
67 <td>[% reserveloo.item.enumchron | html %]</td>
69 <form name="cancelReserve" action="waitingreserves.pl" method="post">
70 <input type="hidden" name="borrowernumber" value="[% reserveloo.borrower.borrowernumber | html %]" />
71 <input type="hidden" name="itemnumber" value="[% reserveloo.item.itemnumber | html %]" />
72 <input type="hidden" name="fbr" value="[% reserveloo.item.holdingbranch | html %]" />
73 <input type="hidden" name="tbr" value="[% reserveloo.item.homebranch | html %]" />
74 <input type="hidden" name="tab" value="[% tab | html %]">
75 [% IF ( reserveloo.item.homebranch != reserveloo.item.holdingbranch ) %]
76 <button type="submit" class="btn btn-default btn-xs"><i class="fa fa-times"></i> Cancel hold and return to: [% Branches.GetName( reserveloo.item.homebranch ) | html %]</button>
78 <button type="submit" class="btn btn-default btn-xs"><i class="fa fa-times"></i> Cancel hold</button>