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" && !hold.found %]
30 <select name="rank-request">
32 <select name="rank-request" disabled="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>
53 [% FOREACH h IN holds %]
55 [% IF ( h.priority == hold.priority ) %]
56 <option value="[% h.priority | html %]" selected="selected">[% ranker | html %]</option>
58 <option value="[% h.priority | html %]">[% ranker | html %]</option>
60 [% ranker = ranker + 1 %]
63 [% ELSIF !hold.found %]
64 <option value="[% hold.priority | html %]" selected="selected">[% hold.priority | html %]</option>
67 <option value="del">del</option>
71 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
72 [% SET first_priority = holds.first.priority %]
73 [% SET last_priority = holds.last.priority %]
74 [% SET prev_priority = loop.prev.priority %]
75 [% SET next_priority = loop.next.priority %]
76 [% holds.index | html %]
78 <td style="white-space:nowrap;">
79 <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 %]">
80 <img src="[% interface | html %]/[% theme | html %]/img/go-up.png" alt="Go up" />
83 <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 %]">
84 <img src="[% interface | html %]/[% theme | html %]/img/go-top.png" alt="Go top" />
87 <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 %]">
88 <img src="[% interface | html %]/[% theme | html %]/img/go-bottom.png" alt="Go bottom" />
91 <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 %]">
92 <img src="[% interface | html %]/[% theme | html %]/img/go-down.png" alt="Go down" />
98 [% INCLUDE 'patron-title.inc' patron=hold.patron hide_patron_infos_if_needed=1 %]
101 <td>[% hold.notes | html %]</td>
102 <td>[% hold.date | html %]</td>
103 <td>[% hold.expirationdate | html %]</td>
106 [% IF ( hold.found ) %]
107 [% IF ( hold.atdestination ) %]
108 [% IF ( hold.found ) %]
109 Item waiting at <b> [% hold.wbrname | html %]</b> <input type="hidden" name="pickup" value="[% hold.wbrcode | html %]" /> since [% hold.waiting_date | $KohaDates %]
111 Waiting to be pulled <input type="hidden" name="pickup" value="[% hold.wbrcode | html %]" />
114 Item being transferred to <b> [% hold.wbrname | html %]</b> <input type="hidden" name="pickup" value="[% hold.wbrcode | html %]" />
117 [% IF Koha.Preference('IndependentBranches') && Branches.all().size == 1 %]
118 [% Branches.GetName(hold.branchcode) | html %] <input type="hidden" name="pickup" value="[% hold.branchcode | html %]" />
120 <select name="pickup">
121 [% PROCESS options_for_libraries libraries => Branches.all( selected => hold.branchcode ) %]
128 [% IF ( hold.found ) %]
129 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% hold.biblionumber | uri %]">
130 [% IF ( hold.barcodenumber ) %]
131 [% hold.barcodenumber | html %]
132 <input type="hidden" name="itemnumber" value="[% hold.itemnumber | html %]" />
138 [% IF ( hold.item_level_hold ) %]
141 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% hold.biblionumber | uri %]">
142 [% IF ( hold.barcodenumber ) %]
143 [% hold.barcodenumber | html %]
144 <input type="hidden" name="itemnumber" value="[% hold.itemnumber | html %]" />
151 [% IF hold.itemtype %]
152 <i>Next available [% ItemTypes.GetDescription( hold.itemtype ) | html %] item</i>
154 <i>Next available</i>
157 <input type="hidden" name="itemnumber" value="" />
162 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
164 <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 %]">
165 [% IF ( hold.lowestPriority ) %]
166 <img src="[% interface | html %]/[% theme | html %]/img/go-bottom.png" alt="Unset lowest priority" />
168 <img src="[% interface | html %]/[% theme | html %]/img/go-down.png" alt="Set to lowest priority" />
175 <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 %]">
176 <img src="[% interface | html %]/[% theme | html %]/img/x.png" alt="Cancel" />
180 [% IF SuspendHoldsIntranet %]
182 [% UNLESS ( hold.found ) %]
183 <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()" />
185 [% IF AutoResumeSuspendedHolds %]
186 <label for="suspend_until_[% hold.reserve_id | html %]">[% IF ( hold.suspend ) %] on [% ELSE %] until [% END %]</label>
187 <input type="text" name="suspend_until" id="suspend_until_[% hold.reserve_id | html %]" size="10" value="[% hold.suspend_until | $KohaDates %]" class="datepicker suspend_until_datepicker" />
188 <a href='#' onclick="document.getElementById('suspend_until_[% hold.reserve_id | html %]').value='';">Clear date</a>
190 <input type="hidden" name="suspend_until" id="suspend_until_[% hold.reserve_id | html %]" value=""/>
194 <input type="button" id="revert_hold_[% hold.reserve_id | html %]" value="Revert found status" onclick="window.location.href='request.pl?action=move&where=down&first_priority=[% first_priority | uri %]&last_priority=[% last_priority | uri %]&prev_priority=0&next_priority=1&borrowernumber=[% hold.borrowernumber | uri %]&biblionumber=[% hold.biblionumber | uri %]&itemnumber=[% hold.itemnumber | uri %]&reserve_id=[% hold.reserve_id | uri %]&date=[% hold.date | uri %]'">
197 [% END # IF SuspendHoldsIntranet %]