4 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
14 <th>Pickup library</th>
16 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
17 <th><img src="[% interface | html %]/[% theme | html %]/img/go-bottom.png" alt="Toggle set to lowest priority" /></th>
23 [% SET first_priority = 0 %]
24 [% SET last_priority = holds.last.priority %]
26 [% FOREACH hold IN holds %]
27 [% IF !hold.found && first_priority == 0 %][% first_priority = hold.priority %][% END %]
30 <input type="hidden" name="reserve_id" value="[% hold.reserve_id | html %]" />
31 <input type="hidden" name="borrowernumber" value="[% hold.borrowernumber | html %]" />
32 <input type="hidden" name="biblionumber" value="[% hold.biblionumber | html %]" />
33 [% IF Koha.Preference('HoldsSplitQueue') == "nothing" && !hold.found %]
34 <select name="rank-request">
36 <input type="hidden" name="rank-request" value="[% hold.priority | html %]">
37 <select name="rank-request" disabled="disabled">
39 [% IF ( hold.found ) %]
40 [% IF ( hold.intransit ) %]
41 <option value="T" selected="selected">In transit</option>
43 <option value="W" selected="selected">Waiting</option>
47 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
48 [% IF Koha.Preference('HoldsSplitQueueNumbering') == 'actual' %]
49 [% FOREACH optionloo IN hold.optionloop %]
50 [% IF ( optionloo.selected ) %]
51 <option value="[% optionloo.num | html %]" selected="selected">[% optionloo.num | html %]</option>
53 <option value="[% optionloo.num | html %]">[% optionloo.num | html %]</option>
58 [% FOREACH h IN holds %]
60 [% IF ( h.priority == hold.priority ) %]
61 <option value="[% h.priority | html %]" selected="selected">[% ranker | html %]</option>
63 <option value="[% h.priority | html %]">[% ranker | html %]</option>
65 [% ranker = ranker + 1 %]
68 [% ELSIF !hold.found %]
69 <option value="[% hold.priority | html %]" selected="selected">[% hold.priority | html %]</option>
72 <option value="del">del</option>
76 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
77 [% UNLESS hold.found %]
78 [% SET prev_priority = loop.prev.priority %]
79 [% SET next_priority = loop.next.priority %]
80 [% holds.index | html %]
82 <td style="white-space:nowrap;">
83 <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 %]">
84 <img src="[% interface | html %]/[% theme | html %]/img/go-up.png" alt="Go up" />
87 <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 %]">
88 <img src="[% interface | html %]/[% theme | html %]/img/go-top.png" alt="Go top" />
91 <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 %]">
92 <img src="[% interface | html %]/[% theme | html %]/img/go-bottom.png" alt="Go bottom" />
95 <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 %]">
96 <img src="[% interface | html %]/[% theme | html %]/img/go-down.png" alt="Go down" />
105 [% INCLUDE 'patron-title.inc' patron=hold.patron hide_patron_infos_if_needed=1 %]
108 <td>[% hold.notes | html %]</td>
109 <td>[% hold.date | html %]</td>
110 <td>[% hold.expirationdate | html %]</td>
113 [% IF ( hold.found ) %]
114 [% IF ( hold.atdestination ) %]
115 [% IF ( hold.found ) %]
116 Item waiting at <b> [% hold.wbrname | html %]</b> <input type="hidden" name="pickup" value="[% hold.wbrcode | html %]" /> since [% hold.waiting_date | $KohaDates %]
118 Waiting to be pulled <input type="hidden" name="pickup" value="[% hold.wbrcode | html %]" />
121 Item being transferred to <b> [% hold.wbrname | html %]</b> <input type="hidden" name="pickup" value="[% hold.wbrcode | html %]" />
124 [% IF Koha.Preference('IndependentBranches') && Branches.all().size == 1 %]
125 [% Branches.GetName(hold.branchcode) | html %] <input type="hidden" name="pickup" value="[% hold.branchcode | html %]" />
127 <select name="pickup">
128 [% PROCESS options_for_libraries libraries => Branches.all( selected => hold.branchcode, search_params => { "-or" => { pickup_location => 1, branchcode => hold.branchcode } } ) %]
135 [% IF ( hold.found ) %]
136 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% hold.biblionumber | uri %]&itemnumber=[% hold.itemnumber | uri %]#item[% hold.itemnumber | uri %]">
137 [% IF ( hold.barcodenumber ) %]
138 [% hold.barcodenumber | html %]
139 <input type="hidden" name="itemnumber" value="[% hold.itemnumber | html %]" />
145 [% IF ( hold.item_level_hold ) %]
148 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% hold.biblionumber | uri %]&itemnumber=[% hold.itemnumber | uri %]#item[% hold.itemnumber | uri %]">
149 [% IF ( hold.barcodenumber ) %]
150 [% hold.barcodenumber | html %]
151 <input type="hidden" name="itemnumber" value="[% hold.itemnumber | html %]" />
158 [% IF hold.itemtype %]
159 <i>Next available [% ItemTypes.GetDescription( hold.itemtype ) | html %] item</i>
161 <i>Next available</i>
164 <input type="hidden" name="itemnumber" value="" />
169 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
170 [% UNLESS hold.found %]
172 <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 %]">
173 [% IF ( hold.lowestPriority ) %]
174 <img src="[% interface | html %]/[% theme | html %]/img/go-bottom.png" alt="Unset lowest priority" />
176 <img src="[% interface | html %]/[% theme | html %]/img/go-down.png" alt="Set to lowest priority" />
186 <a class="cancel-hold" title="Cancel hold" href="request.pl?action=cancel&borrowernumber=[% hold.borrowernumber | html %]&biblionumber=[% hold.biblionumber | html %]&reserve_id=[% hold.reserve_id | html %]&date=[% hold.date | html %]">
187 <img src="[% interface | html %]/[% theme | html %]/img/x.png" alt="Cancel" />
192 [% IF Koha.Preference('SuspendHoldsIntranet') %]
193 [% UNLESS ( hold.found ) %]
194 <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()" />
196 [% IF Koha.Preference('AutoResumeSuspendedHolds') %]
197 <label for="suspend_until_[% hold.reserve_id | html %]">[% IF ( hold.suspend ) %] on [% ELSE %] until [% END %]</label>
198 <input type="text" name="suspend_until" id="suspend_until_[% hold.reserve_id | html %]" size="10" value="[% hold.suspend_until | $KohaDates %]" class="datepicker suspend_until_datepicker" />
199 <a href='#' onclick="document.getElementById('suspend_until_[% hold.reserve_id | html %]').value='';">Clear date</a>
201 <input type="hidden" name="suspend_until" id="suspend_until_[% hold.reserve_id | html %]" value=""/>
204 [% END # IF SuspendHoldsIntranet %]
206 [% IF ( hold.found ) %]
207 <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 %]'">