2 [% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %]
3 [% USE AuthorisedValues %]
4 <table class="holds_table">
6 <th><input type="checkbox" class="select_hold_all"/></th>
8 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
15 <th>Pickup library</th>
17 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
19 <i class="fa fa-lg fa-rotate-90 fa-fast-forward" title="Toggle set to lowest priority"></i>
24 <th>Print hold/transfer slip</th>
26 [%- SET first_priority = 0 -%]
27 [%- SET found_holds = 0 -%]
28 [%- SET last_priority = holds.last.priority -%]
30 [% BLOCK priority_dropdown %]
31 [%- SET loop_priority = 1 -%]
32 [%- WHILE loop_priority <= last_priority -%]
33 [%- IF this_priority == loop_priority -%]
34 <option value="[% loop_priority | html %]" selected="selected">[% loop_priority | html %]</option>
36 <option value="[% loop_priority | html %]">[% loop_priority | html %]</option>
38 [%- loop_priority = loop_priority + 1- %]
42 [% FOREACH hold IN holds %]
43 [%- IF !hold.found && first_priority == 0 -%]
44 [%- first_priority = hold.priority -%]
45 [%- found_holds = loop.index() -%]
47 [%- IF Koha.Preference('HoldsSplitQueueNumbering') == 'actual' -%]
48 [%- this_priority = hold.priority -%]
50 [%- this_priority = loop.count() - found_holds -%]
53 <th><input type="checkbox" class="select_hold" data-id="[% hold.reserve_id | html %]"/></th>
55 <input type="hidden" name="reserve_id" value="[% hold.reserve_id | html %]" />
56 <input type="hidden" name="borrowernumber" value="[% hold.borrowernumber | html %]" />
57 <input type="hidden" name="biblionumber" value="[% hold.biblionumber | html %]" />
58 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
59 [% IF Koha.Preference('HoldsSplitQueue') == "nothing" && !hold.found %]
60 <select name="rank-request" class="rank-request" data-hold-id="[% hold.reserve_id | html %]">
61 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
62 [% PROCESS priority_dropdown %]
64 <option value="[% hold.priority | html %]" selected="selected">[% this_priority | html %]</option>
66 <option value="del">del</option>
69 <input type="hidden" name="rank-request" class="rank-request" value="[% hold.priority | html %]" data-hold-id="[% hold.reserve_id | html %]">
70 <select name="rank-request" class="rank-request" disabled="disabled" data-hold-id="[% hold.reserve_id | html %]">
71 [% IF ( hold.found ) %]
72 [% IF ( hold.intransit ) %]
73 <option value="T" selected="selected">In transit</option>
74 [% ELSIF (hold.inprocessing) %]
75 <option value="P" selected="selected">In processing</option>
77 <option value="W" selected="selected">Waiting</option>
80 <option value="[% hold.priority | html %]" selected="selected">[% this_priority | html %]</option>
85 <input type="hidden" name="rank-request" class="rank-request" value="[% hold.priority | html %]" data-hold-id="[% hold.reserve_id | html %]">
86 [% hold.priority | html %]
89 [%- IF ( CAN_user_reserveforothers_modify_holds_priority ) -%]
90 [%- UNLESS hold.found -%]
91 [%- SET prev_priority = loop.prev.priority -%]
92 [%- SET next_priority = loop.next.priority -%]
93 <td style="white-space:nowrap;">
94 <a class="hold-arrow" 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 %]">
95 <i class="fa fa-lg icon-move-hold-up" aria-hidden="true"></i>
98 <a class="hold-arrow" 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 %]">
99 <i class="fa fa-lg icon-move-hold-top" aria-hidden="true"></i>
102 <a class="hold-arrow" 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 %]">
103 <i class="fa fa-lg icon-move-hold-bottom" aria-hidden="true"></i>
106 <a class="hold-arrow" 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 %]">
107 <i class="fa fa-lg icon-move-hold-down" aria-hidden="true"></i>
115 [% INCLUDE 'patron-title.inc' patron=hold.patron hide_patron_infos_if_needed=1 %]
117 <td>[% hold.notes | html | html_line_break %]</td>
119 [% IF Koha.Preference('AllowHoldDateInFuture') %]
120 <input type="text" class="flatpickr" value="[% hold.date | $KohaDates %]" required="required" size="10" name="reservedate" />
122 [% hold.date | $KohaDates %]
126 <input type="text" class="flatpickr" data-flatpickr-futuredate="true" value="[% hold.expirationdate | $KohaDates %]" size="10" name="expirationdate" />
129 [%- IF ( hold.found ) -%]
130 <input type="hidden" name="pickup" value="[% hold.wbrcode | html %]" />
131 [%- IF ( hold.atdestination ) -%]
132 Item waiting at <strong> [% hold.wbrname | html %]</strong>[% IF hold.desk_name %], [% hold.desk_name | html %],[% END %] since [% hold.waiting_date | $KohaDates %]
133 [%- ELSIF (hold.intransit) -%]
134 Item being transferred to <strong> [% hold.wbrname | html %]</strong>
135 [%- ELSIF (hold.inprocessing) -%]
136 Item being processed at <strong> [% hold.wbrname | html %]</strong>
138 Hold expected at <strong>[% hold.wbrname | html %]</strong>, please checkin to verify status
141 [%- IF Koha.Preference('IndependentBranches') && Branches.all().size == 1 -%]
142 [% Branches.GetName(hold.branchcode) | html %] <input type="hidden" name="pickup" value="[% hold.branchcode | html %]" />
144 <select class="pickup_location_dropdown"
145 data-selected="[% hold.branchcode | html %]"
146 data-hold-id="[% hold.reserve_id | html %]"
147 data-pickup-location-source="hold"
149 <option selected="selected" value="[% hold.branchcode | html %]">[% Branches.GetName(hold.branchcode) | html %]</option>
150 <option value="" disabled="disabled" class="loading">Loading...</option>
152 <img class="loading_[% hold.reserve_id | html %]" src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" style="display:none;"/>
157 [%- IF ( hold.found ) -%]
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 %]" />
163 <span>No barcode</span>
167 [%- IF ( hold.item_level_hold ) -%]
169 <span>Only item</span>
170 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% hold.biblionumber | uri %]&itemnumber=[% hold.itemnumber | uri %]#item[% hold.itemnumber | uri %]">
171 [%- IF ( hold.barcodenumber ) -%]
172 [%- hold.barcodenumber | html -%]
173 <input type="hidden" name="itemnumber" value="[% hold.itemnumber | html %]" />
175 <span>No barcode</span>
180 [%- IF hold.itemtype -%]
181 <em>Next available [% ItemTypes.GetDescription( hold.itemtype ) | html %] item</em>
183 <em>Next available</em>
186 <input type="hidden" name="itemnumber" value="" />
189 [%- IF hold.non_priority -%]
190 <br><i>Non priority hold</i>
193 [%- IF ( CAN_user_reserveforothers_modify_holds_priority ) -%]
194 [%- UNLESS hold.found -%]
196 [% IF ( hold.lowestPriority ) %]
197 <a class="hold-arrow" title="Remove 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 %]">
198 <i class="fa fa-lg fa-rotate-90 icon-unset-lowest" aria-hidden="true"></i>
200 <a class="hold-arrow" title="Set 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 %]">
201 <i class="fa fa-lg fa-rotate-90 icon-set-lowest" aria-hidden="true"></i>
210 <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 %]">
211 <i class="fa fa-trash" aria-label="Cancel hold"></i>
215 [% IF Koha.Preference('SuspendHoldsIntranet') %]
216 [% UNLESS ( hold.found ) %]
217 <button class="btn btn-default btn-xs toggle-suspend" data-reserve-id="[% hold.reserve_id | html %]" data-biblionumber="[% hold.biblionumber | html %]">
218 [% IF ( hold.suspend ) %]
219 <i class="fa fa-play" aria-hidden="true"></i> Unsuspend
221 <i class="fa fa-pause" aria-hidden="true"></i> Suspend
225 [% IF Koha.Preference('AutoResumeSuspendedHolds') %]
226 <label for="suspend_until_[% hold.reserve_id | html %]">[% IF ( hold.suspend ) %] on [% ELSE %] until [% END %]</label>
227 <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="flatpickr" data-flatpickr-futuredate="true" />
229 <input type="hidden" name="suspend_until_[% hold.reserve_id | html %]" id="suspend_until_[% hold.reserve_id | html %]" value=""/>
232 [%- END # IF SuspendHoldsIntranet -%]
233 [%- IF ( hold.found ) -%]
234 <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 %]'">
237 [% IF ( hold.intransit || hold.atdestination ) %]
238 <td><input class="printholdslip" type="button" name="printholdslip" value="Print slip" data-reserve_id="[% hold.reserve_id | html %]"></td>