4 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
14 <th>Pickup library</th>
16 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
17 <th><img src="[% interface | html %]/[% theme | html %]/img/go-bottom.png" alt="Toggle set to lowest priority" /></th>
20 [% IF SuspendHoldsIntranet %]<th> </th><!-- Suspend Holds Column Header -->[% END %]
23 [% FOREACH hold IN holds %]
26 <input type="hidden" name="reserve_id" value="[% hold.reserve_id | html %]" />
27 <input type="hidden" name="borrowernumber" value="[% hold.borrowernumber | html %]" />
28 <input type="hidden" name="biblionumber" value="[% hold.biblionumber | html %]" />
29 [% IF Koha.Preference('HoldsSplitQueue') == "nothing" %]
30 <select name="rank-request">
32 <select name="rank-request" disabled>
34 [% IF ( hold.found ) %]
35 [% IF ( hold.intransit ) %]
36 <option value="T" selected="selected">In transit</option>
38 <option value="W" selected="selected">Waiting</option>
42 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
43 [% IF Koha.Preference('HoldsSplitQueueNumbering') == 'actual' %]
44 [% FOREACH optionloo IN hold.optionloop %]
45 [% IF ( optionloo.selected ) %]
46 <option value="[% optionloo.num | html %]" selected="selected">[% optionloo.num | html %]</option>
48 <option value="[% optionloo.num | html %]">[% optionloo.num | html %]</option>
52 [% FOREACH h IN holds %]
53 [% IF ( h.priority == hold.priority ) %]
54 <option value="[% h.priority | html %]" selected="selected">[% loop.index + 1 | html %]</option>
56 <option value="[% h.priority | html %]">[% loop.index + 1 | html %]</option>
60 [% ELSIF !hold.found %]
61 <option value="[% hold.priority | html %]" selected="selected">[% hold.priority | html %]</option>
64 <option value="del">del</option>
68 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
69 [% SET first_priority = holds.first.priority %]
70 [% SET last_priority = holds.last.priority %]
71 [% SET prev_priority = loop.prev.priority %]
72 [% SET next_priority = loop.next.priority %]
73 [% holds.index | html %]
75 <td style="white-space:nowrap;">
76 <a title="Move hold up" href="request.pl?action=move&where=up&first_priority=[% first_priority | html %]&last_priority=[% last_priority | html %]&prev_priority=[% prev_priority | html %]&next_priority=[% next_priority | html %]&borrowernumber=[% hold.borrowernumber | html %]&biblionumber=[% hold.biblionumber | html %]&reserve_id=[% hold.reserve_id | html %]&date=[% hold.date | html %]">
77 <img src="[% interface | html %]/[% theme | html %]/img/go-up.png" alt="Go up" />
80 <a title="Move hold to top" href="request.pl?action=move&where=top&first_priority=[% first_priority | html %]&last_priority=[% last_priority | html %]&prev_priority=[% prev_priority | html %]&next_priority=[% next_priority | html %]&borrowernumber=[% hold.borrowernumber | html %]&biblionumber=[% hold.biblionumber | html %]&reserve_id=[% hold.reserve_id | html %]&date=[% hold.date | html %]">
81 <img src="[% interface | html %]/[% theme | html %]/img/go-top.png" alt="Go top" />
84 <a title="Move hold to bottom" href="request.pl?action=move&where=bottom&first_priority=[% first_priority | html %]&last_priority=[% last_priority | html %]&prev_priority=[% prev_priority | html %]&next_priority=[% next_priority | html %]&borrowernumber=[% hold.borrowernumber | html %]&biblionumber=[% hold.biblionumber | html %]&reserve_id=[% hold.reserve_id | html %]&date=[% hold.date | html %]">
85 <img src="[% interface | html %]/[% theme | html %]/img/go-bottom.png" alt="Go bottom" />
88 <a title="Move hold down" href="request.pl?action=move&where=down&first_priority=[% first_priority | html %]&last_priority=[% last_priority | html %]&prev_priority=[% prev_priority | html %]&next_priority=[% next_priority | html %]&borrowernumber=[% hold.borrowernumber | html %]&biblionumber=[% hold.biblionumber | html %]&reserve_id=[% hold.reserve_id | html %]&date=[% hold.date | html %]">
89 <img src="[% interface | html %]/[% theme | html %]/img/go-down.png" alt="Go down" />
95 [% INCLUDE 'patron-title.inc' patron=hold.patron hide_patron_infos_if_needed=1 %]
98 <td>[% hold.notes | html %]</td>
99 <td>[% hold.date | html %]</td>
100 <td>[% hold.expirationdate | html %]</td>
103 [% IF ( hold.found ) %]
104 [% IF ( hold.atdestination ) %]
105 [% IF ( hold.found ) %]
106 Item waiting at <b> [% hold.wbrname | html %]</b> <input type="hidden" name="pickup" value="[% hold.wbrcode | html %]" /> since [% hold.waiting_date | $KohaDates %]
108 Waiting to be pulled <input type="hidden" name="pickup" value="[% hold.wbrcode | html %]" />
111 Item being transferred to <b> [% hold.wbrname | html %]</b> <input type="hidden" name="pickup" value="[% hold.wbrcode | html %]" />
114 [% IF Koha.Preference('IndependentBranches') && Branches.all().size == 1 %]
115 [% Branches.GetName(hold.branchcode) | html %] <input type="hidden" name="pickup" value="[% hold.branchcode | html %]" />
117 <select name="pickup">
118 [% PROCESS options_for_libraries libraries => Branches.all( selected => hold.branchcode ) %]
125 [% IF ( hold.found ) %]
126 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% hold.biblionumber | html %]">
127 [% IF ( hold.barcodenumber ) %]
128 [% hold.barcodenumber | html %]
129 <input type="hidden" name="itemnumber" value="[% hold.itemnumber | html %]" />
135 [% IF ( hold.item_level_hold ) %]
138 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% hold.biblionumber | html %]">
139 [% IF ( hold.barcodenumber ) %]
140 [% hold.barcodenumber | html %]
141 <input type="hidden" name="itemnumber" value="[% hold.itemnumber | html %]" />
148 [% IF hold.itemtype %]
149 <i>Next available [% ItemTypes.GetDescription( hold.itemtype ) | html %] item</i>
151 <i>Next available</i>
154 <input type="hidden" name="itemnumber" value="" />
159 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
161 <a title="Toggle lowest priority" href="request.pl?action=setLowestPriority&borrowernumber=[% hold.borrowernumber | html %]&biblionumber=[% hold.biblionumber | html %]&reserve_id=[% hold.reserve_id | html %]&date=[% hold.date | html %]">
162 [% IF ( hold.lowestPriority ) %]
163 <img src="[% interface | html %]/[% theme | html %]/img/go-bottom.png" alt="Unset lowest priority" />
165 <img src="[% interface | html %]/[% theme | html %]/img/go-down.png" alt="Set to lowest priority" />
172 <a class="cancel-hold" title="Cancel hold" href="request.pl?action=cancel&borrowernumber=[% hold.borrowernumber | html %]&biblionumber=[% hold.biblionumber | html %]&reserve_id=[% hold.reserve_id | html %]&date=[% hold.date | html %]">
173 <img src="[% interface | html %]/[% theme | html %]/img/x.png" alt="Cancel" />
177 [% IF SuspendHoldsIntranet %]
179 [% UNLESS ( hold.found ) %]
180 <input type="button" value="[% IF ( hold.suspend ) %]Unsuspend[% ELSE %]Suspend[% END %]" onclick="window.location.href='request.pl?action=toggleSuspend&reserve_id=[% hold.reserve_id | html %]&borrowernumber=[% hold.borrowernumber | html %]&biblionumber=[% hold.biblionumber | html %]&date=[% hold.date | html %]&suspend_until=' + $('#suspend_until_[% hold.reserve_id | html %]').val()" />
182 [% IF AutoResumeSuspendedHolds %]
183 <label for="suspend_until_[% hold.reserve_id | html %]">[% IF ( hold.suspend ) %] on [% ELSE %] until [% END %]</label>
184 <input name="suspend_until" id="suspend_until_[% hold.reserve_id | html %]" size="10" value="[% hold.suspend_until | $KohaDates %]" class="datepicker suspend_until_datepicker" />
185 <a href='#' onclick="document.getElementById('suspend_until_[% hold.reserve_id | html %]').value='';">Clear date</a>
187 <input type="hidden" name="suspend_until" id="suspend_until_[% hold.reserve_id | html %]" value=""/>
191 <input type="hidden" name="suspend_until" value="" />
194 [% END # IF SuspendHoldsIntranet %]