2 [% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %]
3 [% USE AuthorisedValues %]
6 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
16 <th>Pickup library</th>
18 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
19 <th><img src="[% interface | html %]/[% theme | html %]/img/go-bottom.png" alt="Toggle set to lowest priority" /></th>
25 [% SET first_priority = 0 %]
26 [% SET last_priority = holds.last.priority %]
28 [% FOREACH hold IN holds %]
29 [% IF !hold.found && first_priority == 0 %][% first_priority = hold.priority %][% END %]
32 <input type="hidden" name="reserve_id" value="[% hold.reserve_id | html %]" />
33 <input type="hidden" name="borrowernumber" value="[% hold.borrowernumber | html %]" />
34 <input type="hidden" name="biblionumber" value="[% hold.biblionumber | html %]" />
35 [% IF Koha.Preference('HoldsSplitQueue') == "nothing" && !hold.found %]
36 <select name="rank-request" class="rank-request" data-hold-id="[% hold.reserve_id | html %]">
38 <input type="hidden" name="rank-request" class="rank-request" value="[% hold.priority | html %]" data-hold-id="[% hold.reserve_id | html %]">
39 <select name="rank-request" class="rank-request" disabled="disabled" data-hold-id="[% hold.reserve_id | html %]">
41 [% IF ( hold.found ) %]
42 [% IF ( hold.intransit ) %]
43 <option value="T" selected="selected">In transit</option>
45 <option value="W" selected="selected">Waiting</option>
49 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
50 [% IF Koha.Preference('HoldsSplitQueueNumbering') == 'actual' %]
51 [% FOREACH optionloo IN hold.optionloop %]
52 [% IF ( optionloo.selected ) %]
53 <option value="[% optionloo.num | html %]" selected="selected">[% optionloo.num | html %]</option>
55 <option value="[% optionloo.num | html %]">[% optionloo.num | html %]</option>
60 [% FOREACH h IN holds %]
62 [% IF ( h.priority == hold.priority ) %]
63 <option value="[% h.priority | html %]" selected="selected">[% ranker | html %]</option>
65 <option value="[% h.priority | html %]">[% ranker | html %]</option>
67 [% ranker = ranker + 1 %]
70 [% ELSIF !hold.found %]
71 <option value="[% hold.priority | html %]" selected="selected">[% hold.priority | html %]</option>
74 <option value="del">del</option>
78 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
79 [% UNLESS hold.found %]
80 [% SET prev_priority = loop.prev.priority %]
81 [% SET next_priority = loop.next.priority %]
82 [% holds.index | html %]
84 <td style="white-space:nowrap;">
85 <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 %]">
86 <img src="[% interface | html %]/[% theme | html %]/img/go-up.png" alt="Go up" />
89 <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 %]">
90 <img src="[% interface | html %]/[% theme | html %]/img/go-top.png" alt="Go top" />
93 <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 %]">
94 <img src="[% interface | html %]/[% theme | html %]/img/go-bottom.png" alt="Go bottom" />
97 <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 %]">
98 <img src="[% interface | html %]/[% theme | html %]/img/go-down.png" alt="Go down" />
107 [% INCLUDE 'patron-title.inc' patron=hold.patron hide_patron_infos_if_needed=1 %]
110 <td>[% hold.notes | html | html_line_break %]</td>
112 [% IF Koha.Preference('AllowHoldDateInFuture') %]
113 <input type="text" class="datepicker" value="[% hold.date | $KohaDates %]" required="required" size="10" name="reservedate" />
115 [% hold.date | $KohaDates %]
118 <td><input type="text" class="datepickerto" value="[% hold.expirationdate | $KohaDates %]" size="10" name="expirationdate" /></td>
121 [% IF ( hold.found ) %]
122 [% IF ( hold.atdestination ) %]
123 [% IF ( hold.found ) %]
124 Item waiting at <b> [% hold.wbrname | html %]</b> <input type="hidden" name="pickup" value="[% hold.wbrcode | html %]" /> since [% hold.waiting_date | $KohaDates %]
126 Waiting to be pulled <input type="hidden" name="pickup" value="[% hold.wbrcode | html %]" />
129 Item being transferred to <b> [% hold.wbrname | html %]</b> <input type="hidden" name="pickup" value="[% hold.wbrcode | html %]" />
132 [% IF Koha.Preference('IndependentBranches') && Branches.all().size == 1 %]
133 [% Branches.GetName(hold.branchcode) | html %] <input type="hidden" name="pickup" value="[% hold.branchcode | html %]" />
135 <select name="pickup">
136 [% PROCESS options_for_libraries libraries => Branches.pickup_locations( { search_params => { item => hold.itemnumber, biblio => hold.biblionumber, patron => hold.patron }, selected => hold.branchcode }) %]
143 [% IF ( hold.found ) %]
144 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% hold.biblionumber | uri %]&itemnumber=[% hold.itemnumber | uri %]#item[% hold.itemnumber | uri %]">
145 [% IF ( hold.barcodenumber ) %]
146 [% hold.barcodenumber | html %]
147 <input type="hidden" name="itemnumber" value="[% hold.itemnumber | html %]" />
153 [% IF ( hold.item_level_hold ) %]
156 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% hold.biblionumber | uri %]&itemnumber=[% hold.itemnumber | uri %]#item[% hold.itemnumber | uri %]">
157 [% IF ( hold.barcodenumber ) %]
158 [% hold.barcodenumber | html %]
159 <input type="hidden" name="itemnumber" value="[% hold.itemnumber | html %]" />
166 [% IF hold.itemtype %]
167 <em>Next available [% ItemTypes.GetDescription( hold.itemtype ) | html %] item</em>
169 <em>Next available</em>
172 <input type="hidden" name="itemnumber" value="" />
175 [% IF hold.non_priority %]
176 <br><i>Non priority hold</i>
180 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
181 [% UNLESS hold.found %]
183 <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 %]">
184 [% IF ( hold.lowestPriority ) %]
185 <img src="[% interface | html %]/[% theme | html %]/img/go-bottom.png" alt="Unset lowest priority" />
187 <img src="[% interface | html %]/[% theme | html %]/img/go-down.png" alt="Set to lowest priority" />
197 <a class="cancel-hold" title="Cancel hold" data-borrowernumber="[% hold.borrowernumber | html %]" data-biblionumber="[% hold.biblionumber | html %]" data-id="[% hold.reserve_id | html %]" href="request.pl?action=cancel&borrowernumber=[% hold.borrowernumber | html %]&biblionumber=[% hold.biblionumber | html %]&reserve_id=[% hold.reserve_id | html %]&date=[% hold.date | html %]">
198 <img src="[% interface | html %]/[% theme | html %]/img/x.png" alt="Cancel" />
203 [% IF Koha.Preference('SuspendHoldsIntranet') %]
204 [% UNLESS ( hold.found ) %]
205 <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()" />
207 [% IF Koha.Preference('AutoResumeSuspendedHolds') %]
208 <label for="suspend_until_[% hold.reserve_id | html %]">[% IF ( hold.suspend ) %] on [% ELSE %] until [% END %]</label>
209 <input type="text" name="suspend_until_[% hold.reserve_id | html %]" id="suspend_until_[% hold.reserve_id | html %]" size="10" value="[% hold.suspend_until | $KohaDates %]" class="datepicker suspend_until_datepicker" />
210 <a href='#' onclick="document.getElementById('suspend_until_[% hold.reserve_id | html %]').value='';">Clear date</a>
212 <input type="hidden" name="suspend_until_[% hold.reserve_id | html %]" id="suspend_until_[% hold.reserve_id | html %]" value=""/>
215 [% END # IF SuspendHoldsIntranet %]
217 [% IF ( hold.found ) %]
218 <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 %]'">