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 <input type="hidden" name="rank-request" value="[% hold.priority | html %]">
33 <select name="rank-request" disabled="disabled">
35 [% IF ( hold.found ) %]
36 [% IF ( hold.intransit ) %]
37 <option value="T" selected="selected">In transit</option>
39 <option value="W" selected="selected">Waiting</option>
43 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
44 [% IF Koha.Preference('HoldsSplitQueueNumbering') == 'actual' %]
45 [% FOREACH optionloo IN hold.optionloop %]
46 [% IF ( optionloo.selected ) %]
47 <option value="[% optionloo.num | html %]" selected="selected">[% optionloo.num | html %]</option>
49 <option value="[% optionloo.num | html %]">[% optionloo.num | html %]</option>
54 [% FOREACH h IN holds %]
56 [% IF ( h.priority == hold.priority ) %]
57 <option value="[% h.priority | html %]" selected="selected">[% ranker | html %]</option>
59 <option value="[% h.priority | html %]">[% ranker | html %]</option>
61 [% ranker = ranker + 1 %]
64 [% ELSIF !hold.found %]
65 <option value="[% hold.priority | html %]" selected="selected">[% hold.priority | html %]</option>
68 <option value="del">del</option>
72 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
73 [% SET first_priority = holds.first.priority %]
74 [% SET last_priority = holds.last.priority %]
75 [% SET prev_priority = loop.prev.priority %]
76 [% SET next_priority = loop.next.priority %]
77 [% holds.index | html %]
79 <td style="white-space:nowrap;">
80 <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 %]">
81 <img src="[% interface | html %]/[% theme | html %]/img/go-up.png" alt="Go up" />
84 <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 %]">
85 <img src="[% interface | html %]/[% theme | html %]/img/go-top.png" alt="Go top" />
88 <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 %]">
89 <img src="[% interface | html %]/[% theme | html %]/img/go-bottom.png" alt="Go bottom" />
92 <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 %]">
93 <img src="[% interface | html %]/[% theme | html %]/img/go-down.png" alt="Go down" />
99 [% INCLUDE 'patron-title.inc' patron=hold.patron hide_patron_infos_if_needed=1 %]
102 <td>[% hold.notes | html %]</td>
103 <td>[% hold.date | html %]</td>
104 <td>[% hold.expirationdate | html %]</td>
107 [% IF ( hold.found ) %]
108 [% IF ( hold.atdestination ) %]
109 [% IF ( hold.found ) %]
110 Item waiting at <b> [% hold.wbrname | html %]</b> <input type="hidden" name="pickup" value="[% hold.wbrcode | html %]" /> since [% hold.waiting_date | $KohaDates %]
112 Waiting to be pulled <input type="hidden" name="pickup" value="[% hold.wbrcode | html %]" />
115 Item being transferred to <b> [% hold.wbrname | html %]</b> <input type="hidden" name="pickup" value="[% hold.wbrcode | html %]" />
118 [% IF Koha.Preference('IndependentBranches') && Branches.all().size == 1 %]
119 [% Branches.GetName(hold.branchcode) | html %] <input type="hidden" name="pickup" value="[% hold.branchcode | html %]" />
121 <select name="pickup">
122 [% PROCESS options_for_libraries libraries => Branches.all( selected => hold.branchcode ) %]
129 [% IF ( hold.found ) %]
130 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% hold.biblionumber | uri %]">
131 [% IF ( hold.barcodenumber ) %]
132 [% hold.barcodenumber | html %]
133 <input type="hidden" name="itemnumber" value="[% hold.itemnumber | html %]" />
139 [% IF ( hold.item_level_hold ) %]
142 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% hold.biblionumber | uri %]">
143 [% IF ( hold.barcodenumber ) %]
144 [% hold.barcodenumber | html %]
145 <input type="hidden" name="itemnumber" value="[% hold.itemnumber | html %]" />
152 [% IF hold.itemtype %]
153 <i>Next available [% ItemTypes.GetDescription( hold.itemtype ) | html %] item</i>
155 <i>Next available</i>
158 <input type="hidden" name="itemnumber" value="" />
163 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
165 <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 %]">
166 [% IF ( hold.lowestPriority ) %]
167 <img src="[% interface | html %]/[% theme | html %]/img/go-bottom.png" alt="Unset lowest priority" />
169 <img src="[% interface | html %]/[% theme | html %]/img/go-down.png" alt="Set to lowest priority" />
176 <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 %]">
177 <img src="[% interface | html %]/[% theme | html %]/img/x.png" alt="Cancel" />
181 [% IF SuspendHoldsIntranet %]
183 [% UNLESS ( hold.found ) %]
184 <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()" />
186 [% IF AutoResumeSuspendedHolds %]
187 <label for="suspend_until_[% hold.reserve_id | html %]">[% IF ( hold.suspend ) %] on [% ELSE %] until [% END %]</label>
188 <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" />
189 <a href='#' onclick="document.getElementById('suspend_until_[% hold.reserve_id | html %]').value='';">Clear date</a>
191 <input type="hidden" name="suspend_until" id="suspend_until_[% hold.reserve_id | html %]" value=""/>
195 <input type="button" id="revert_hold_[% hold.reserve_id | html %]" value="[% IF hold.intransit %]Revert transit status[% ELSE %]Revert waiting status[% END %]" 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 %]'">
198 [% END # IF SuspendHoldsIntranet %]