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 -%]
55 <th><input type="checkbox" class="select_hold" data-id="[% hold.reserve_id | html %]"/></th>
57 <input type="hidden" name="reserve_id" value="[% hold.reserve_id | html %]" />
58 <input type="hidden" name="borrowernumber" value="[% hold.borrowernumber | html %]" />
59 <input type="hidden" name="biblionumber" value="[% hold.biblionumber | html %]" />
60 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
61 [% IF Koha.Preference('HoldsSplitQueue') == "nothing" && !hold.found %]
62 <select name="rank-request" class="rank-request" data-hold-id="[% hold.reserve_id | html %]">
63 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
64 [% PROCESS priority_dropdown %]
66 <option value="[% hold.priority | html %]" selected="selected">[% this_priority | html %]</option>
68 <option value="del">del</option>
71 <input type="hidden" name="rank-request" class="rank-request" value="[% hold.priority | html %]" data-hold-id="[% hold.reserve_id | html %]">
72 <select name="rank-request" class="rank-request" disabled="disabled" data-hold-id="[% hold.reserve_id | html %]">
73 [% IF ( hold.found ) %]
74 [% IF ( hold.intransit ) %]
75 <option value="T" selected="selected">In transit</option>
76 [% ELSIF (hold.inprocessing) %]
77 <option value="P" selected="selected">In processing</option>
79 <option value="W" selected="selected">Waiting</option>
82 <option value="[% hold.priority | html %]" selected="selected">[% this_priority | html %]</option>
87 <input type="hidden" name="rank-request" class="rank-request" value="[% hold.priority | html %]" data-hold-id="[% hold.reserve_id | html %]">
88 [% hold.priority | html %]
91 [%- IF ( CAN_user_reserveforothers_modify_holds_priority ) -%]
92 [%- UNLESS hold.found -%]
93 [%- SET prev_priority = loop.prev.priority -%]
94 [%- SET next_priority = loop.next.priority -%]
95 <td style="white-space:nowrap;">
96 <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 %]">
97 <i class="fa fa-lg icon-move-hold-up" aria-hidden="true"></i>
100 <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 %]">
101 <i class="fa fa-lg icon-move-hold-top" aria-hidden="true"></i>
104 <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 %]">
105 <i class="fa fa-lg icon-move-hold-bottom" aria-hidden="true"></i>
108 <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 %]">
109 <i class="fa fa-lg icon-move-hold-down" aria-hidden="true"></i>
117 [% INCLUDE 'patron-title.inc' patron=hold.patron hide_patron_infos_if_needed=1 %]
119 <td>[% hold.notes | html | html_line_break %]</td>
121 [% IF Koha.Preference('AllowHoldDateInFuture') %]
122 <input type="text" class="flatpickr" value="[% hold.date | html %]" required="required" size="10" name="reservedate" />
124 [% hold.date | $KohaDates %]
128 <input type="text" class="flatpickr" data-flatpickr-futuredate="true" value="[% hold.expirationdate | html %]" size="10" name="expirationdate" />
131 [%- IF ( hold.found ) -%]
132 <input type="hidden" name="pickup" value="[% hold.wbrcode | html %]" />
133 [%- IF ( hold.atdestination ) -%]
134 Item waiting at <strong> [% hold.wbrname | html %]</strong>[% IF hold.desk_name %], [% hold.desk_name | html %],[% END %] since [% hold.waiting_date | $KohaDates %]
135 [%- ELSIF (hold.intransit) -%]
136 Item being transferred to <strong> [% hold.wbrname | html %]</strong>
137 [%- ELSIF (hold.inprocessing) -%]
138 Item being processed at <strong> [% hold.wbrname | html %]</strong>
140 Hold expected at <strong>[% hold.wbrname | html %]</strong>, please checkin to verify status
143 [%- IF Koha.Preference('IndependentBranches') && Branches.all().size == 1 -%]
144 [% Branches.GetName(hold.branchcode) | html %] <input type="hidden" name="pickup" value="[% hold.branchcode | html %]" />
146 <select class="pickup_location_dropdown"
147 data-selected="[% hold.branchcode | html %]"
148 data-hold-id="[% hold.reserve_id | html %]"
149 data-pickup-location-source="hold"
151 <option selected="selected" value="[% hold.branchcode | html %]">[% Branches.GetName(hold.branchcode) | html %]</option>
152 <option value="" disabled="disabled" class="loading">Loading...</option>
154 <img class="loading_[% hold.reserve_id | html %]" src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" style="display:none;"/>
159 [%- IF ( hold.found ) -%]
160 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% hold.biblionumber | uri %]&itemnumber=[% hold.itemnumber | uri %]#item[% hold.itemnumber | uri %]">
161 [%- IF ( hold.barcodenumber ) -%]
162 [%- hold.barcodenumber | html -%]
163 <input type="hidden" name="itemnumber" value="[% hold.itemnumber | html %]" />
165 <span>No barcode</span>
169 [%- IF ( hold.item_level_hold ) -%]
171 <span>Only item</span>
172 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% hold.biblionumber | uri %]&itemnumber=[% hold.itemnumber | uri %]#item[% hold.itemnumber | uri %]">
173 [%- IF ( hold.barcodenumber ) -%]
174 [%- hold.barcodenumber | html -%]
175 <input type="hidden" name="itemnumber" value="[% hold.itemnumber | html %]" />
177 <span>No barcode</span>
182 [%- IF hold.itemtype -%]
183 <em>Next available [% ItemTypes.GetDescription( hold.itemtype ) | html %] item</em>
184 [%- ELSIF hold.object.item_group -%]
185 <em>Next available item from group <strong>[% hold.object.item_group.description | html %]</strong></em>
187 <em>Next available</em>
190 <input type="hidden" name="itemnumber" value="" />
193 [%- IF hold.non_priority -%]
194 <br><i>Non priority hold</i>
197 [%- IF ( CAN_user_reserveforothers_modify_holds_priority ) -%]
198 [%- UNLESS hold.found -%]
200 [% IF ( hold.lowestPriority ) %]
201 <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 %]">
202 <i class="fa fa-lg fa-rotate-90 icon-unset-lowest" aria-hidden="true"></i>
204 <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 %]">
205 <i class="fa fa-lg fa-rotate-90 icon-set-lowest" aria-hidden="true"></i>
214 <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 %]">
215 <i class="fa fa-trash" aria-label="Cancel hold"></i>
219 [% IF Koha.Preference('SuspendHoldsIntranet') %]
220 [% UNLESS ( hold.found ) %]
221 <button class="btn btn-default btn-xs toggle-suspend" data-reserve-id="[% hold.reserve_id | html %]" data-biblionumber="[% hold.biblionumber | html %]">
222 [% IF ( hold.suspend ) %]
223 <i class="fa fa-play" aria-hidden="true"></i> Unsuspend
225 <i class="fa fa-pause" aria-hidden="true"></i> Suspend
229 [% IF Koha.Preference('AutoResumeSuspendedHolds') %]
230 <label for="suspend_until_[% hold.reserve_id | html %]">[% IF ( hold.suspend ) %] on [% ELSE %] until [% END %]</label>
231 <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" />
233 <input type="hidden" name="suspend_until_[% hold.reserve_id | html %]" id="suspend_until_[% hold.reserve_id | html %]" value=""/>
236 [%- END # IF SuspendHoldsIntranet -%]
237 [%- IF ( hold.found ) -%]
238 <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 %]'">
241 [% IF ( hold.intransit || hold.atdestination ) %]
242 <td><input class="printholdslip" type="button" name="printholdslip" value="Print slip" data-reserve_id="[% hold.reserve_id | html %]"></td>