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>
44 [% ELSIF (hold.inprocessing) %]
45 <option value="P" selected="selected">In processing</option>
47 <option value="W" selected="selected">Waiting</option>
51 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
52 [% IF Koha.Preference('HoldsSplitQueueNumbering') == 'actual' %]
53 [% FOREACH optionloo IN hold.optionloop %]
54 [% IF ( optionloo.selected ) %]
55 <option value="[% optionloo.num | html %]" selected="selected">[% optionloo.num | html %]</option>
57 <option value="[% optionloo.num | html %]">[% optionloo.num | html %]</option>
62 [% FOREACH h IN holds %]
64 [% IF ( h.priority == hold.priority ) %]
65 <option value="[% h.priority | html %]" selected="selected">[% ranker | html %]</option>
67 <option value="[% h.priority | html %]">[% ranker | html %]</option>
69 [% ranker = ranker + 1 %]
72 [% ELSIF !hold.found %]
73 <option value="[% hold.priority | html %]" selected="selected">[% hold.priority | html %]</option>
76 <option value="del">del</option>
80 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
81 [% UNLESS hold.found %]
82 [% SET prev_priority = loop.prev.priority %]
83 [% SET next_priority = loop.next.priority %]
84 [% holds.index | html %]
86 <td style="white-space:nowrap;">
87 <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 %]">
88 <img src="[% interface | html %]/[% theme | html %]/img/go-up.png" alt="Go up" />
91 <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 %]">
92 <img src="[% interface | html %]/[% theme | html %]/img/go-top.png" alt="Go top" />
95 <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 %]">
96 <img src="[% interface | html %]/[% theme | html %]/img/go-bottom.png" alt="Go bottom" />
99 <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 %]">
100 <img src="[% interface | html %]/[% theme | html %]/img/go-down.png" alt="Go down" />
109 [% INCLUDE 'patron-title.inc' patron=hold.patron hide_patron_infos_if_needed=1 %]
112 <td>[% hold.notes | html | html_line_break %]</td>
114 [% IF Koha.Preference('AllowHoldDateInFuture') %]
115 <input type="text" class="datepicker" value="[% hold.date | $KohaDates %]" required="required" size="10" name="reservedate" />
117 [% hold.date | $KohaDates %]
120 <td><input type="text" class="datepicker futuredate" value="[% hold.expirationdate | $KohaDates %]" size="10" name="expirationdate" /></td>
123 [% IF ( hold.found ) %]
124 [% IF ( hold.atdestination ) %]
125 Item waiting at <strong> [% hold.wbrname | html %]</strong>[% IF hold.desk_name %], [% hold.desk_name | html %],[% END %] <input type="hidden" name="pickup" value="[% hold.wbrcode | html %]" /> since [% hold.waiting_date | $KohaDates %]
126 [% ELSIF (hold.intransit) %]
127 Item being transferred to <strong> [% hold.wbrname | html %]</strong> <input type="hidden" name="pickup" value="[% hold.wbrcode | html %]" />
128 [% ELSIF (hold.inprocessing) %]
129 Item being processed at <strong> [% hold.wbrname | html %]</strong> <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 class="pickup_location_dropdown" data-selected="[% hold.branchcode | html %]" data-hold_id="[% hold.reserve_id | html %]" name="pickup">
136 <option selected="selected" value="[% hold.branchcode | html %]">[% Branches.GetName(hold.branchcode) | html %]</option>
137 <option value="" disabled="disabled" class="loading">Loading...</option>
139 <img class="loading_[% hold.reserve_id %]" src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" style="display:none;"/>
145 [% IF ( hold.found ) %]
146 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% hold.biblionumber | uri %]&itemnumber=[% hold.itemnumber | uri %]#item[% hold.itemnumber | uri %]">
147 [% IF ( hold.barcodenumber ) %]
148 [% hold.barcodenumber | html %]
149 <input type="hidden" name="itemnumber" value="[% hold.itemnumber | html %]" />
155 [% IF ( hold.item_level_hold ) %]
158 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% hold.biblionumber | uri %]&itemnumber=[% hold.itemnumber | uri %]#item[% hold.itemnumber | uri %]">
159 [% IF ( hold.barcodenumber ) %]
160 [% hold.barcodenumber | html %]
161 <input type="hidden" name="itemnumber" value="[% hold.itemnumber | html %]" />
168 [% IF hold.itemtype %]
169 <em>Next available [% ItemTypes.GetDescription( hold.itemtype ) | html %] item</em>
171 <em>Next available</em>
174 <input type="hidden" name="itemnumber" value="" />
177 [% IF hold.non_priority %]
178 <br><i>Non priority hold</i>
182 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
183 [% UNLESS hold.found %]
185 <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 %]">
186 [% IF ( hold.lowestPriority ) %]
187 <img src="[% interface | html %]/[% theme | html %]/img/go-bottom.png" alt="Unset lowest priority" />
189 <img src="[% interface | html %]/[% theme | html %]/img/go-down.png" alt="Set to lowest priority" />
199 <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 %]">
200 <img src="[% interface | html %]/[% theme | html %]/img/x.png" alt="Cancel" />
205 [% IF Koha.Preference('SuspendHoldsIntranet') %]
206 [% UNLESS ( hold.found ) %]
207 <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()" />
209 [% IF Koha.Preference('AutoResumeSuspendedHolds') %]
210 <label for="suspend_until_[% hold.reserve_id | html %]">[% IF ( hold.suspend ) %] on [% ELSE %] until [% END %]</label>
211 <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" />
212 <a href='#' onclick="document.getElementById('suspend_until_[% hold.reserve_id | html %]').value='';">Clear date</a>
214 <input type="hidden" name="suspend_until_[% hold.reserve_id | html %]" id="suspend_until_[% hold.reserve_id | html %]" value=""/>
217 [% END # IF SuspendHoldsIntranet %]
219 [% IF ( hold.found ) %]
220 <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 %]'">