2 [% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %]
3 [% USE AuthorisedValues %]
4 <table class="holds_table">
7 <th><input type="checkbox" class="select_hold_all"/></th>
9 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
16 <th>Pickup library</th>
18 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
20 <i class="fa fa-lg fa-rotate-90 fa-fast-forward" title="Toggle set to lowest priority"></i>
25 <th>Print hold/transfer slip</th>
28 [%- SET first_priority = 0 -%]
29 [%- SET found_holds = 0 -%]
30 [%- SET last_priority = holds.last.priority -%]
32 [% BLOCK priority_dropdown %]
33 [%- SET loop_priority = 1 -%]
34 [%- WHILE loop_priority <= last_priority -%]
35 [%- IF this_priority == loop_priority -%]
36 <option value="[% loop_priority | html %]" selected="selected">[% loop_priority | html %]</option>
38 <option value="[% loop_priority | html %]">[% loop_priority | html %]</option>
40 [%- loop_priority = loop_priority + 1- %]
44 [% FOREACH hold IN holds %]
45 [%- IF !hold.found && first_priority == 0 -%]
46 [%- first_priority = hold.priority -%]
47 [%- found_holds = loop.index() -%]
49 [%- IF Koha.Preference('HoldsSplitQueueNumbering') == 'actual' -%]
50 [%- this_priority = hold.priority -%]
52 [%- this_priority = loop.count() - found_holds -%]
59 <td><input type="checkbox" class="select_hold" data-id="[% hold.reserve_id | html %]"/></td>
61 <input type="hidden" name="reserve_id" value="[% hold.reserve_id | html %]" />
62 <input type="hidden" name="borrowernumber" value="[% hold.borrowernumber | html %]" />
63 <input type="hidden" name="biblionumber" value="[% hold.biblionumber | html %]" />
64 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
65 [% IF Koha.Preference('HoldsSplitQueue') == "nothing" && !hold.found %]
66 <select name="rank-request" class="rank-request" data-hold-id="[% hold.reserve_id | html %]">
67 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
68 [% PROCESS priority_dropdown %]
70 <option value="[% hold.priority | html %]" selected="selected">[% this_priority | html %]</option>
72 <option value="del">del</option>
75 <input type="hidden" name="rank-request" class="rank-request" value="[% hold.priority | html %]" data-hold-id="[% hold.reserve_id | html %]">
76 <select name="rank-request" class="rank-request" disabled="disabled" data-hold-id="[% hold.reserve_id | html %]">
77 [% IF ( hold.found ) %]
78 [% IF ( hold.intransit ) %]
79 <option value="T" selected="selected">In transit</option>
80 [% ELSIF (hold.inprocessing) %]
81 <option value="P" selected="selected">In processing</option>
83 <option value="W" selected="selected">Waiting</option>
86 <option value="[% hold.priority | html %]" selected="selected">[% this_priority | html %]</option>
91 <input type="hidden" name="rank-request" class="rank-request" value="[% hold.priority | html %]" data-hold-id="[% hold.reserve_id | html %]">
92 [% hold.priority | html %]
95 [%- IF ( CAN_user_reserveforothers_modify_holds_priority ) -%]
96 [%- UNLESS hold.found -%]
97 [%- SET prev_priority = loop.prev.priority -%]
98 [%- SET next_priority = loop.next.priority -%]
99 <td style="white-space:nowrap;">
100 <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 %]">
101 <i class="fa fa-lg icon-move-hold-up" aria-hidden="true"></i>
104 <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 %]">
105 <i class="fa fa-lg icon-move-hold-top" aria-hidden="true"></i>
108 <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 %]">
109 <i class="fa fa-lg icon-move-hold-bottom" aria-hidden="true"></i>
112 <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 %]">
113 <i class="fa fa-lg icon-move-hold-down" aria-hidden="true"></i>
121 [% INCLUDE 'patron-title.inc' patron=hold.patron hide_patron_infos_if_needed=1 %]
123 <td>[% hold.notes | html | html_line_break %]</td>
125 [% IF Koha.Preference('AllowHoldDateInFuture') %]
126 <input type="text" class="flatpickr" value="[% hold.date | html %]" required="required" size="10" name="reservedate" />
128 [% hold.date | $KohaDates %]
132 [% UNLESS hold.expired %]
133 <input type="text" class="flatpickr" data-flatpickr-futuredate="true" value="[% hold.expirationdate | html %]" size="10" name="expirationdate" />
135 <span class="expiredon"><label>Expired:</label> [% hold.expirationdate | $KohaDates %]</span>
136 <input type="hidden" value="[% hold.expirationdate | html %]" name="expirationdate" />
140 [%- IF ( hold.found ) -%]
141 <input type="hidden" name="pickup" value="[% hold.wbrcode | html %]" />
142 [%- IF ( hold.atdestination ) -%]
143 Item waiting at <strong> [% hold.wbrname | html %]</strong>[% IF hold.desk_name %], [% hold.desk_name | html %],[% END %] since [% hold.waiting_date | $KohaDates %]
144 [%- ELSIF (hold.intransit) -%]
145 Item being transferred to <strong> [% hold.wbrname | html %]</strong>
146 [%- ELSIF (hold.inprocessing) -%]
147 Item being processed at <strong> [% hold.wbrname | html %]</strong>
149 Hold expected at <strong>[% hold.wbrname | html %]</strong>, please checkin to verify status
152 [%- IF Koha.Preference('IndependentBranches') && Branches.all().size == 1 -%]
153 [% Branches.GetName(hold.branchcode) | html %] <input type="hidden" name="pickup" value="[% hold.branchcode | html %]" />
155 <select class="pickup_location_dropdown"
156 data-selected="[% hold.branchcode | html %]"
157 data-hold-id="[% hold.reserve_id | html %]"
158 data-pickup-location-source="hold"
160 <option selected="selected" value="[% hold.branchcode | html %]">[% Branches.GetName(hold.branchcode) | html %]</option>
161 <option value="" disabled="disabled" class="loading">Loading...</option>
163 <img class="loading_[% hold.reserve_id | html %]" src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" style="display:none;"/>
168 [%- IF ( hold.found ) -%]
169 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% hold.biblionumber | uri %]&itemnumber=[% hold.itemnumber | uri %]#item[% hold.itemnumber | uri %]">
170 [%- IF ( hold.barcodenumber ) -%]
171 [%- hold.barcodenumber | html -%]
172 <input type="hidden" name="itemnumber" value="[% hold.itemnumber | html %]" />
174 <span>No barcode</span>
178 [%- IF ( hold.item_level_hold ) -%]
180 <span>Only item</span>
181 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% hold.biblionumber | uri %]&itemnumber=[% hold.itemnumber | uri %]#item[% hold.itemnumber | uri %]">
182 [%- IF ( hold.barcodenumber ) -%]
183 [%- hold.barcodenumber | html -%]
184 <input type="hidden" name="itemnumber" value="[% hold.itemnumber | html %]" />
186 <span>No barcode</span>
191 [%- IF hold.itemtype -%]
192 <em>Next available [% ItemTypes.GetDescription( hold.itemtype ) | html %] item</em>
193 [%- ELSIF hold.object.item_group -%]
194 <em>Next available item from group <strong>[% hold.object.item_group.description | html %]</strong></em>
196 <em>Next available</em>
199 <input type="hidden" name="itemnumber" value="" />
202 [%- IF hold.non_priority -%]
203 <br><i>Non priority hold</i>
206 [%- IF ( CAN_user_reserveforothers_modify_holds_priority ) -%]
207 [%- UNLESS hold.found -%]
209 [% IF ( hold.lowestPriority ) %]
210 <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 %]">
211 <i class="fa fa-lg fa-rotate-90 icon-unset-lowest" aria-hidden="true"></i>
213 <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 %]">
214 <i class="fa fa-lg fa-rotate-90 icon-set-lowest" aria-hidden="true"></i>
223 <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 %]">
224 <i class="fa fa-trash" aria-label="Cancel hold"></i>
228 [% IF Koha.Preference('SuspendHoldsIntranet') %]
229 [% UNLESS ( hold.found ) %]
230 <button class="btn btn-default btn-xs toggle-suspend" data-reserve-id="[% hold.reserve_id | html %]" data-biblionumber="[% hold.biblionumber | html %]">
231 [% IF ( hold.suspend ) %]
232 <i class="fa fa-play" aria-hidden="true"></i> Unsuspend
234 <i class="fa fa-pause" aria-hidden="true"></i> Suspend
238 [% IF Koha.Preference('AutoResumeSuspendedHolds') %]
239 <label for="suspend_until_[% hold.reserve_id | html %]">[% IF ( hold.suspend ) %] on [% ELSE %] until [% END %]</label>
240 <input type="text" name="suspend_until_[% hold.reserve_id | html %]" id="suspend_until_[% hold.reserve_id | html %]" size="10" value="[% hold.suspend_until | html %]" class="flatpickr" data-flatpickr-futuredate="true" />
242 <input type="hidden" name="suspend_until_[% hold.reserve_id | html %]" id="suspend_until_[% hold.reserve_id | html %]" value=""/>
245 [%- END # IF SuspendHoldsIntranet -%]
246 [%- IF ( hold.found ) -%]
247 <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 %]'">
250 [% IF ( hold.intransit || hold.atdestination ) %]
251 <td><input class="printholdslip" type="button" name="printholdslip" value="Print slip" data-reserve_id="[% hold.reserve_id | html %]"></td>