Lines 49-296
Link Here
|
49 |
[%- END -%] |
49 |
[%- END -%] |
50 |
[% SET tr_class = hold.suspend ? 'suspend' : '' %] |
50 |
[% SET tr_class = hold.suspend ? 'suspend' : '' %] |
51 |
<tr class="[% tr_class | html %]"> |
51 |
<tr class="[% tr_class | html %]"> |
52 |
<td><input type="checkbox" class="select_hold" data-id="[% hold.reserve_id | html %]" /></td> |
52 |
<td>[% IF ( hold.can_be_managed ) %]<input type="checkbox" class="select_hold" data-id="[% hold.reserve_id | html %]" />[% END %]</td> |
53 |
<td> |
53 |
<td> |
54 |
<input type="hidden" name="reserve_id" value="[% hold.reserve_id | html %]" /> |
54 |
[% IF ( hold.can_be_managed ) %] |
55 |
<input type="hidden" name="borrowernumber" value="[% hold.borrowernumber | html %]" /> |
55 |
<input type="hidden" name="reserve_id" value="[% hold.reserve_id | html %]" /> |
56 |
<input type="hidden" name="biblionumber" value="[% hold.biblionumber | html %]" /> |
56 |
<input type="hidden" name="borrowernumber" value="[% hold.borrowernumber | html %]" /> |
57 |
[% IF ( CAN_user_reserveforothers_modify_holds_priority ) %] |
57 |
<input type="hidden" name="biblionumber" value="[% hold.biblionumber | html %]" /> |
58 |
[% IF Koha.Preference('HoldsSplitQueue') == "nothing" && !hold.found %] |
58 |
[% IF ( CAN_user_reserveforothers_modify_holds_priority ) %] |
59 |
<select name="rank-request" class="rank-request" data-hold-id="[% hold.reserve_id | html %]"> |
59 |
[% IF Koha.Preference('HoldsSplitQueue') == "nothing" && !hold.found %] |
60 |
[% IF ( CAN_user_reserveforothers_modify_holds_priority ) %] |
60 |
<select name="rank-request" class="rank-request" data-hold-id="[% hold.reserve_id | html %]"> |
61 |
[% FOREACH priority IN all_priorities %] |
61 |
[% IF ( CAN_user_reserveforothers_modify_holds_priority ) %] |
62 |
[% IF priority == this_priority %] |
62 |
[% FOREACH priority IN all_priorities %] |
63 |
<option value="[% priority | html %]" selected="selected">[% priority | html %]</option> |
63 |
[% IF priority == this_priority %] |
64 |
[% ELSIF priority > 0 %] |
64 |
<option value="[% priority | html %]" selected="selected">[% priority | html %]</option> |
65 |
<option value="[% priority | html %]">[% priority | html %]</option> |
65 |
[% ELSIF priority > 0 %] |
|
|
66 |
<option value="[% priority | html %]">[% priority | html %]</option> |
67 |
[% END %] |
66 |
[% END %] |
68 |
[% END %] |
|
|
69 |
[% ELSE %] |
70 |
<option value="[% hold.priority | html %]" selected="selected">[% this_priority | html %]</option> |
67 |
[% END %] |
71 |
[% END %] |
68 |
[% ELSE %] |
72 |
<option value="del">del</option> |
69 |
<option value="[% hold.priority | html %]" selected="selected">[% this_priority | html %]</option> |
73 |
</select> |
70 |
[% END %] |
74 |
[% ELSE %] |
71 |
<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 %]" /> |
72 |
</select> |
76 |
<select name="rank-request" class="rank-request" disabled="disabled" data-hold-id="[% hold.reserve_id | html %]"> |
73 |
[% ELSE %] |
77 |
[% IF ( hold.found ) %] |
74 |
<input type="hidden" name="rank-request" class="rank-request" value="[% hold.priority | html %]" data-hold-id="[% hold.reserve_id | html %]" /> |
78 |
[% IF ( hold.intransit ) %] |
75 |
<select name="rank-request" class="rank-request" disabled="disabled" data-hold-id="[% hold.reserve_id | html %]"> |
79 |
<option value="T" selected="selected">In transit</option> |
76 |
[% IF ( hold.found ) %] |
80 |
[% ELSIF (hold.inprocessing) %] |
77 |
[% IF ( hold.intransit ) %] |
81 |
<option value="P" selected="selected">In processing</option> |
78 |
<option value="T" selected="selected">In transit</option> |
82 |
[% ELSE %] |
79 |
[% ELSIF (hold.inprocessing) %] |
83 |
<option value="W" selected="selected">Waiting</option> |
80 |
<option value="P" selected="selected">In processing</option> |
84 |
[% END %] |
81 |
[% ELSE %] |
85 |
[% ELSE %] |
82 |
<option value="W" selected="selected">Waiting</option> |
86 |
<option value="[% hold.priority | html %]" selected="selected">[% this_priority | html %]</option> |
83 |
[% END %] |
87 |
[% END %] |
84 |
[% ELSE %] |
88 |
</select> |
85 |
<option value="[% hold.priority | html %]" selected="selected">[% this_priority | html %]</option> |
89 |
[% END %] |
86 |
[% END %] |
90 |
[% ELSE %] |
87 |
</select> |
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 %] |
88 |
[% END %] |
93 |
[% END %] |
89 |
[% ELSE %] |
|
|
90 |
<input type="hidden" name="rank-request" class="rank-request" value="[% hold.priority | html %]" data-hold-id="[% hold.reserve_id | html %]" /> |
91 |
[% hold.priority | html %] |
92 |
[% END %] |
94 |
[% END %] |
93 |
</td> |
95 |
</td> |
94 |
[%- IF ( CAN_user_reserveforothers_modify_holds_priority ) -%] |
96 |
[%- IF ( CAN_user_reserveforothers_modify_holds_priority ) -%] |
95 |
[%- UNLESS hold.found -%] |
97 |
[% IF ( hold.can_be_managed ) %] |
96 |
[%- SET prev_priority = loop.prev.priority -%] |
98 |
[%- UNLESS hold.found -%] |
97 |
[%- SET next_priority = loop.next.priority -%] |
99 |
[%- SET prev_priority = loop.prev.priority -%] |
98 |
<td style="white-space:nowrap;"> |
100 |
[%- SET next_priority = loop.next.priority -%] |
99 |
<a |
101 |
<td style="white-space:nowrap;"> |
100 |
class="hold-arrow" |
102 |
<a |
101 |
title="Move hold up" |
103 |
class="hold-arrow" |
102 |
data-op="cud-move" |
104 |
title="Move hold up" |
103 |
data-where="up" |
105 |
data-op="cud-move" |
104 |
data-first_priority="[% first_priority | html %]" |
106 |
data-where="up" |
105 |
data-last_priority="[% last_priority | html %]" |
107 |
data-first_priority="[% first_priority | html %]" |
106 |
data-prev_priority="[% prev_priority | html %]" |
108 |
data-last_priority="[% last_priority | html %]" |
107 |
data-next_priority="[% next_priority | html %]" |
109 |
data-prev_priority="[% prev_priority | html %]" |
108 |
data-borrowernumber="[% hold.borrowernumber | html %]" |
110 |
data-next_priority="[% next_priority | html %]" |
109 |
data-biblionumber="[% hold.biblionumber | html %]" |
111 |
data-borrowernumber="[% hold.borrowernumber | html %]" |
110 |
data-reserve_id="[% hold.reserve_id | html %]" |
112 |
data-biblionumber="[% hold.biblionumber | html %]" |
111 |
data-date="[% hold.date | html %]" |
113 |
data-reserve_id="[% hold.reserve_id | html %]" |
112 |
> |
114 |
data-date="[% hold.date | html %]" |
113 |
<i class="fa fa-lg icon-move-hold-up" aria-hidden="true"></i> |
115 |
> |
114 |
</a> |
116 |
<i class="fa fa-lg icon-move-hold-up" aria-hidden="true"></i> |
|
|
117 |
</a> |
115 |
|
118 |
|
116 |
<a |
119 |
<a |
117 |
class="hold-arrow" |
120 |
class="hold-arrow" |
118 |
title="Move hold to top" |
121 |
title="Move hold to top" |
119 |
data-op="cud-move" |
122 |
data-op="cud-move" |
120 |
data-where="top" |
123 |
data-where="top" |
121 |
data-first_priority="[% first_priority | html %]" |
124 |
data-first_priority="[% first_priority | html %]" |
122 |
data-last_priority="[% last_priority | html %]" |
125 |
data-last_priority="[% last_priority | html %]" |
123 |
data-prev_priority="[% prev_priority | html %]" |
126 |
data-prev_priority="[% prev_priority | html %]" |
124 |
data-next_priority="[% next_priority | html %]" |
127 |
data-next_priority="[% next_priority | html %]" |
125 |
data-borrowernumber="[% hold.borrowernumber | html %]" |
128 |
data-borrowernumber="[% hold.borrowernumber | html %]" |
126 |
data-biblionumber="[% hold.biblionumber | html %]" |
129 |
data-biblionumber="[% hold.biblionumber | html %]" |
127 |
data-reserve_id="[% hold.reserve_id | html %]" |
130 |
data-reserve_id="[% hold.reserve_id | html %]" |
128 |
data-date="[% hold.date | html %]" |
131 |
data-date="[% hold.date | html %]" |
129 |
> |
132 |
> |
130 |
<i class="fa fa-lg icon-move-hold-top" aria-hidden="true"></i> |
133 |
<i class="fa fa-lg icon-move-hold-top" aria-hidden="true"></i> |
131 |
</a> |
134 |
</a> |
132 |
|
135 |
|
133 |
<a |
136 |
<a |
134 |
class="hold-arrow" |
137 |
class="hold-arrow" |
135 |
title="Move hold to bottom" |
138 |
title="Move hold to bottom" |
136 |
data-op="cud-move" |
139 |
data-op="cud-move" |
137 |
data-where="bottom" |
140 |
data-where="bottom" |
138 |
data-first_priority="[% first_priority | html %]" |
141 |
data-first_priority="[% first_priority | html %]" |
139 |
data-last_priority="[% last_priority | html %]" |
142 |
data-last_priority="[% last_priority | html %]" |
140 |
data-prev_priority="[% prev_priority | html %]" |
143 |
data-prev_priority="[% prev_priority | html %]" |
141 |
data-next_priority="[% next_priority | html %]" |
144 |
data-next_priority="[% next_priority | html %]" |
142 |
data-borrowernumber="[% hold.borrowernumber | html %]" |
145 |
data-borrowernumber="[% hold.borrowernumber | html %]" |
143 |
data-biblionumber="[% hold.biblionumber | html %]" |
146 |
data-biblionumber="[% hold.biblionumber | html %]" |
144 |
data-reserve_id="[% hold.reserve_id | html %]" |
147 |
data-reserve_id="[% hold.reserve_id | html %]" |
145 |
data-date="[% hold.date | html %]" |
148 |
data-date="[% hold.date | html %]" |
146 |
> |
149 |
> |
147 |
<i class="fa fa-lg icon-move-hold-bottom" aria-hidden="true"></i> |
150 |
<i class="fa fa-lg icon-move-hold-bottom" aria-hidden="true"></i> |
148 |
</a> |
151 |
</a> |
149 |
|
152 |
|
150 |
<a |
153 |
<a |
151 |
class="hold-arrow" |
154 |
class="hold-arrow" |
152 |
title="Move hold down" |
155 |
title="Move hold down" |
153 |
data-op="cud-move" |
156 |
data-op="cud-move" |
154 |
data-where="down" |
157 |
data-where="down" |
155 |
data-first_priority="[% first_priority | html %]" |
158 |
data-first_priority="[% first_priority | html %]" |
156 |
data-last_priority="[% last_priority | html %]" |
159 |
data-last_priority="[% last_priority | html %]" |
157 |
data-prev_priority="[% prev_priority | html %]" |
160 |
data-prev_priority="[% prev_priority | html %]" |
158 |
data-next_priority="[% next_priority | html %]" |
161 |
data-next_priority="[% next_priority | html %]" |
159 |
data-borrowernumber="[% hold.borrowernumber | html %]" |
162 |
data-borrowernumber="[% hold.borrowernumber | html %]" |
160 |
data-biblionumber="[% hold.biblionumber | html %]" |
163 |
data-biblionumber="[% hold.biblionumber | html %]" |
161 |
data-reserve_id="[% hold.reserve_id | html %]" |
164 |
data-reserve_id="[% hold.reserve_id | html %]" |
162 |
data-date="[% hold.date | html %]" |
165 |
data-date="[% hold.date | html %]" |
163 |
> |
166 |
> |
164 |
<i class="fa fa-lg icon-move-hold-down" aria-hidden="true"></i> |
167 |
<i class="fa fa-lg icon-move-hold-down" aria-hidden="true"></i> |
165 |
</a> |
168 |
</a> |
166 |
</td> |
169 |
</td> |
|
|
170 |
[% END %] |
167 |
[%- ELSE -%] |
171 |
[%- ELSE -%] |
168 |
<td></td> |
172 |
<td></td> |
169 |
[%- END -%] |
173 |
[%- END -%] |
170 |
[%- END -%] |
174 |
[%- END -%] |
171 |
<td> [% INCLUDE 'patron-title.inc' patron=hold.patron hide_patron_infos_if_needed=1 %] </td> |
175 |
<td> [% INCLUDE 'patron-title.inc' patron=hold.patron hide_patron_infos_if_needed=1 %] </td> |
172 |
<td>[% hold.notes | html | html_line_break %]</td> |
176 |
<td>[% IF ( hold.can_be_managed ) %][% hold.notes | html | html_line_break %][% END %]</td> |
173 |
<td data-order="[% hold.date| html %]"> |
177 |
<td data-order="[% hold.date| html %]"> |
174 |
[% IF Koha.Preference('AllowHoldDateInFuture') %] |
178 |
[% IF ( hold.can_be_managed ) %] |
175 |
<input type="text" class="flatpickr" value="[% hold.date | html %]" required="required" size="10" name="reservedate" /> |
179 |
[% IF Koha.Preference('AllowHoldDateInFuture') %] |
176 |
[% ELSE %] |
180 |
<input type="text" class="flatpickr" value="[% hold.date | html %]" required="required" size="10" name="reservedate" /> |
177 |
[% hold.date | $KohaDates %] |
181 |
[% ELSE %] |
|
|
182 |
[% hold.date | $KohaDates %] |
183 |
[% END %] |
178 |
[% END %] |
184 |
[% END %] |
179 |
</td> |
185 |
</td> |
180 |
<td> |
186 |
<td> |
181 |
<input type="text" class="flatpickr" data-flatpickr-futuredate="true" value="[% hold.expirationdate | html %]" size="10" name="expirationdate" /> |
187 |
[% IF ( hold.can_be_managed ) %] |
|
|
188 |
<input type="text" class="flatpickr" data-flatpickr-futuredate="true" value="[% hold.expirationdate | html %]" size="10" name="expirationdate" /> |
189 |
[% END %] |
182 |
</td> |
190 |
</td> |
183 |
<td> |
191 |
<td> |
184 |
[%- IF ( hold.found ) -%] |
192 |
[% IF ( hold.can_be_managed ) %] |
185 |
<input type="hidden" name="pickup" value="[% hold.wbrcode | html %]" /> |
193 |
[%- IF ( hold.found ) -%] |
186 |
[%- IF ( hold.atdestination ) -%] |
194 |
<input type="hidden" name="pickup" value="[% hold.wbrcode | html %]" /> |
187 |
Item waiting at <strong> [% hold.wbrname | html %]</strong>[% IF hold.desk_name %], [% hold.desk_name | html %],[% END %] since [% hold.waiting_date | $KohaDates %] |
195 |
[%- IF ( hold.atdestination ) -%] |
188 |
[%- ELSIF (hold.intransit) -%] |
196 |
Item waiting at <strong> [% hold.wbrname | html %]</strong>[% IF hold.desk_name %], [% hold.desk_name | html %],[% END %] since [% hold.waiting_date | $KohaDates %] |
189 |
Item being transferred to <strong> [% hold.wbrname | html %]</strong> |
197 |
[%- ELSIF (hold.intransit) -%] |
190 |
[%- ELSIF (hold.inprocessing) -%] |
198 |
Item being transferred to <strong> [% hold.wbrname | html %]</strong> |
191 |
Item being processed at <strong> [% hold.wbrname | html %]</strong> |
199 |
[%- ELSIF (hold.inprocessing) -%] |
192 |
[%- ELSE -%] |
200 |
Item being processed at <strong> [% hold.wbrname | html %]</strong> |
193 |
Hold expected at <strong>[% hold.wbrname | html %]</strong>, please checkin to verify status |
201 |
[%- ELSE -%] |
194 |
[%- END -%] |
202 |
Hold expected at <strong>[% hold.wbrname | html %]</strong>, please checkin to verify status |
195 |
[%- ELSE -%] |
203 |
[%- END -%] |
196 |
[%- IF Koha.Preference('IndependentBranches') && Branches.all().size == 1 -%] |
|
|
197 |
[% Branches.GetName(hold.branchcode) | html %] <input type="hidden" name="pickup" value="[% hold.branchcode | html %]" /> |
198 |
[%- ELSE -%] |
204 |
[%- ELSE -%] |
199 |
<select class="pickup_location_dropdown" data-selected="[% hold.branchcode | html %]" data-hold-id="[% hold.reserve_id | html %]" data-pickup-location-source="hold" name="pickup"> |
205 |
[%- IF Koha.Preference('IndependentBranches') && Branches.all().size == 1 -%] |
200 |
<option selected="selected" value="[% hold.branchcode | html %]">[% Branches.GetName(hold.branchcode) | html %]</option> |
206 |
[% Branches.GetName(hold.branchcode) | html %] <input type="hidden" name="pickup" value="[% hold.branchcode | html %]" /> |
201 |
<option value="" disabled="disabled" class="loading">Loading...</option> |
207 |
[%- ELSE -%] |
202 |
</select> |
208 |
<select class="pickup_location_dropdown" data-selected="[% hold.branchcode | html %]" data-hold-id="[% hold.reserve_id | html %]" data-pickup-location-source="hold" name="pickup"> |
203 |
<img class="loading_[% hold.reserve_id | html %]" src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" style="display:none;" /> |
209 |
<option selected="selected" value="[% hold.branchcode | html %]">[% Branches.GetName(hold.branchcode) | html %]</option> |
|
|
210 |
<option value="" disabled="disabled" class="loading">Loading...</option> |
211 |
</select> |
212 |
<img class="loading_[% hold.reserve_id | html %]" src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" style="display:none;" /> |
213 |
[%- END -%] |
204 |
[%- END -%] |
214 |
[%- END -%] |
205 |
[%- END -%] |
215 |
[% END %] |
206 |
</td> |
216 |
</td> |
207 |
<td> |
217 |
<td> |
208 |
[%- IF ( hold.found ) -%] |
218 |
[% IF ( hold.can_be_managed ) %] |
209 |
<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% hold.biblionumber | uri %]&itemnumber=[% hold.itemnumber | uri %]#item[% hold.itemnumber | uri %]"> |
219 |
[%- IF ( hold.found ) -%] |
210 |
[%- IF ( hold.barcodenumber ) -%] |
220 |
<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% hold.biblionumber | uri %]&itemnumber=[% hold.itemnumber | uri %]#item[% hold.itemnumber | uri %]"> |
211 |
[%- hold.barcodenumber | html -%] |
221 |
[%- IF ( hold.barcodenumber ) -%] |
212 |
[%- ELSE -%] |
222 |
[%- hold.barcodenumber | html -%] |
213 |
<span>No barcode</span> |
|
|
214 |
[%- END -%] |
215 |
<input type="hidden" name="itemnumber" value="[% hold.itemnumber | html %]" /> |
216 |
</a> |
217 |
[%- ELSE -%] |
218 |
[%- IF ( hold.item_level_hold ) -%] |
219 |
<em> |
220 |
[%- IF ! hold.change_hold_type_allowed -%] |
221 |
<span>Only item</span> |
222 |
<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% hold.biblionumber | uri %]&itemnumber=[% hold.itemnumber | uri %]#item[% hold.itemnumber | uri %]"> |
223 |
[%- IF ( hold.barcodenumber ) -%] |
224 |
[%- hold.barcodenumber | html -%] |
225 |
[%- ELSE -%] |
226 |
<span>No barcode</span> |
227 |
[%- END -%] |
228 |
<input type="hidden" name="itemnumber" value="[% hold.itemnumber | html %]" /> |
229 |
</a> |
230 |
[%- ELSE -%] |
223 |
[%- ELSE -%] |
231 |
<select name="change_hold_type_[% hold.reserve_id | html %]"> |
224 |
<span>No barcode</span> |
232 |
<option selected="selected" value=""> |
225 |
[%- END -%] |
|
|
226 |
<input type="hidden" name="itemnumber" value="[% hold.itemnumber | html %]" /> |
227 |
</a> |
228 |
[%- ELSE -%] |
229 |
[%- IF ( hold.item_level_hold ) -%] |
230 |
<em> |
231 |
[%- IF ! hold.change_hold_type_allowed -%] |
232 |
<span>Only item</span> |
233 |
<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% hold.biblionumber | uri %]&itemnumber=[% hold.itemnumber | uri %]#item[% hold.itemnumber | uri %]"> |
233 |
[%- IF ( hold.barcodenumber ) -%] |
234 |
[%- IF ( hold.barcodenumber ) -%] |
234 |
[% tx("Only item {barcode}", {barcode = hold.barcodenumber}) | html %] |
235 |
[% tx("Only item {barcode}", {barcode = hold.barcodenumber}) | html %] |
235 |
[%- ELSE -%] |
236 |
[%- ELSE -%] |
236 |
[% t("Only item [No barcode]") | html %] |
237 |
<span>No barcode</span> |
237 |
[%- END -%] |
238 |
[%- END -%] |
238 |
</option> |
239 |
<input type="hidden" name="itemnumber" value="[% hold.itemnumber | html %]" /> |
239 |
<option value="1">Next available</option> |
240 |
</a> |
240 |
</select> |
|
|
241 |
[%- IF ( hold.itemnumber ) -%] |
242 |
<input type="hidden" name="itemnumber" value="[% hold.itemnumber | html %]" /> |
243 |
[%- END -%] |
244 |
[%- IF hold.itemtype -%] |
245 |
<span style="display:none">Next available [% ItemTypes.GetDescription( hold.itemtype ) | html %] item</span> |
246 |
[%- ELSE -%] |
241 |
[%- ELSE -%] |
247 |
<span style="display:none">Next available</span> |
242 |
<select name="change_hold_type_[% hold.reserve_id | html %]"> |
|
|
243 |
<option selected="selected" value="" |
244 |
>Only item |
245 |
[%- IF ( hold.barcodenumber ) -%] |
246 |
[%- hold.barcodenumber | html -%] |
247 |
[%- ELSE -%] |
248 |
No barcode |
249 |
[%- END -%] |
250 |
</option> |
251 |
<option value="1">Next available</option> |
252 |
</select> |
253 |
[%- IF ( hold.itemnumber ) -%] |
254 |
<input type="hidden" name="itemnumber" value="[% hold.itemnumber | html %]" /> |
255 |
[%- END -%] |
256 |
[%- IF hold.itemtype -%] |
257 |
<span style="display:none">Next available [% ItemTypes.GetDescription( hold.itemtype ) | html %] item</span> |
258 |
[%- ELSE -%] |
259 |
<span style="display:none">Next available</span> |
260 |
[%- END -%] |
248 |
[%- END -%] |
261 |
[%- END -%] |
249 |
[%- END -%] |
262 |
</em> |
250 |
</em> |
|
|
251 |
[%- ELSE -%] |
252 |
[%- IF hold.itemtype -%] |
253 |
<em>Next available [% ItemTypes.GetDescription( hold.itemtype ) | html %] item</em> |
254 |
[%- ELSIF hold.object.item_group -%] |
255 |
<em>Next available item from group <strong>[% hold.object.item_group.description | html %]</strong></em> |
256 |
[%- ELSE -%] |
263 |
[%- ELSE -%] |
257 |
<em>Next available</em> |
264 |
[%- IF hold.itemtype -%] |
258 |
[%- END -%] |
265 |
<em>Next available [% ItemTypes.GetDescription( hold.itemtype ) | html %] item</em> |
|
|
266 |
[%- ELSIF hold.object.item_group -%] |
267 |
<em>Next available item from group <strong>[% hold.object.item_group.description | html %]</strong></em> |
268 |
[%- ELSE -%] |
269 |
<em>Next available</em> |
270 |
[%- END -%] |
259 |
|
271 |
|
260 |
<input type="hidden" name="itemnumber" value="" /> |
272 |
<input type="hidden" name="itemnumber" value="" /> |
|
|
273 |
[%- END -%] |
261 |
[%- END -%] |
274 |
[%- END -%] |
262 |
[%- END -%] |
275 |
[%- IF hold.non_priority -%] |
263 |
[%- IF hold.non_priority -%] |
276 |
<br /><i>Non priority hold</i> |
264 |
<br /><i>Non priority hold</i> |
277 |
[%- END -%] |
265 |
[%- END -%] |
278 |
[% END %] |
266 |
</td> |
279 |
</td> |
267 |
[%- IF ( CAN_user_reserveforothers_modify_holds_priority ) -%] |
280 |
[%- IF ( CAN_user_reserveforothers_modify_holds_priority ) -%] |
268 |
[%- UNLESS hold.found -%] |
281 |
[%- UNLESS hold.found -%] |
269 |
<td> |
282 |
<td> |
270 |
[% IF ( hold.lowestPriority ) %] |
283 |
[% IF ( hold.can_be_managed ) %] |
271 |
<a |
284 |
[% IF ( hold.lowestPriority ) %] |
272 |
class="hold-arrow" |
285 |
<a |
273 |
title="Remove lowest priority" |
286 |
class="hold-arrow" |
274 |
data-op="cud-setLowestPriority" |
287 |
title="Remove lowest priority" |
275 |
data-borrowernumber="[% hold.borrowernumber | html %]" |
288 |
data-op="cud-setLowestPriority" |
276 |
data-biblionumber="[% hold.biblionumber | html %]" |
289 |
data-borrowernumber="[% hold.borrowernumber | html %]" |
277 |
data-reserve_id="[% hold.reserve_id | html %]" |
290 |
data-biblionumber="[% hold.biblionumber | html %]" |
278 |
data-date="[% hold.date | html %]" |
291 |
data-reserve_id="[% hold.reserve_id | html %]" |
279 |
> |
292 |
data-date="[% hold.date | html %]" |
280 |
<i class="fa fa-lg fa-rotate-90 icon-unset-lowest" aria-hidden="true"></i> |
293 |
> |
281 |
</a> |
294 |
<i class="fa fa-lg fa-rotate-90 icon-unset-lowest" aria-hidden="true"></i> |
282 |
[% ELSE %] |
295 |
</a> |
283 |
<a |
296 |
[% ELSE %] |
284 |
class="hold-arrow" |
297 |
<a |
285 |
title="Set lowest priority" |
298 |
class="hold-arrow" |
286 |
data-op="cud-setLowestPriority" |
299 |
title="Set lowest priority" |
287 |
data-borrowernumber="[% hold.borrowernumber | html %]" |
300 |
data-op="cud-setLowestPriority" |
288 |
data-biblionumber="[% hold.biblionumber | html %]" |
301 |
data-borrowernumber="[% hold.borrowernumber | html %]" |
289 |
data-reserve_id="[% hold.reserve_id | html %]" |
302 |
data-biblionumber="[% hold.biblionumber | html %]" |
290 |
data-date="[% hold.date | html %]" |
303 |
data-reserve_id="[% hold.reserve_id | html %]" |
291 |
> |
304 |
data-date="[% hold.date | html %]" |
292 |
<i class="fa fa-lg fa-rotate-90 icon-set-lowest" aria-hidden="true"></i> |
305 |
> |
293 |
</a> |
306 |
<i class="fa fa-lg fa-rotate-90 icon-set-lowest" aria-hidden="true"></i> |
|
|
307 |
</a> |
308 |
[% END %] |
294 |
[% END %] |
309 |
[% END %] |
295 |
</td> |
310 |
</td> |
296 |
[%- ELSE -%] |
311 |
[%- ELSE -%] |
Lines 298-360
Link Here
|
298 |
[%- END -%] |
313 |
[%- END -%] |
299 |
[%- END -%] |
314 |
[%- END -%] |
300 |
<td> |
315 |
<td> |
301 |
<a class="cancel-hold" title="Cancel hold" data-borrowernumber="[% hold.borrowernumber | html %]" data-biblionumber="[% hold.biblionumber | html %]" data-id="[% hold.reserve_id | html %]" href="#"> |
316 |
[% IF ( hold.can_be_managed ) %] |
302 |
<i class="fa fa-trash" aria-label="Cancel hold"></i> |
317 |
<a class="cancel-hold" title="Cancel hold" data-borrowernumber="[% hold.borrowernumber | html %]" data-biblionumber="[% hold.biblionumber | html %]" data-id="[% hold.reserve_id | html %]" href="#"> |
303 |
</a> |
318 |
<i class="fa fa-trash" aria-label="Cancel hold"></i> |
|
|
319 |
</a> |
320 |
[% END %] |
304 |
</td> |
321 |
</td> |
305 |
<td> |
322 |
<td> |
306 |
[% IF Koha.Preference('SuspendHoldsIntranet') %] |
323 |
[% IF ( hold.can_be_managed ) %] |
307 |
[% UNLESS ( hold.found ) %] |
324 |
[% IF Koha.Preference('SuspendHoldsIntranet') %] |
308 |
[% IF ( hold.suspend ) %] |
325 |
[% UNLESS ( hold.found ) %] |
309 |
<button class="btn btn-default btn-xs unsuspend-hold" data-reserve-id="[% hold.reserve_id | html %]" data-biblionumber="[% hold.biblionumber | html %]"> |
326 |
[% IF ( hold.suspend ) %] |
310 |
<i class="fa fa-play" aria-hidden="true"></i> Unsuspend |
327 |
<button class="btn btn-default btn-xs unsuspend-hold" data-reserve-id="[% hold.reserve_id | html %]" data-biblionumber="[% hold.biblionumber | html %]"> |
311 |
</button> |
328 |
<i class="fa fa-play" aria-hidden="true"></i> Unsuspend |
312 |
[% ELSE %] |
329 |
</button> |
313 |
<button class="btn btn-default btn-xs suspend-hold" data-reserve-id="[% hold.reserve_id | html %]" data-biblionumber="[% hold.biblionumber | html %]"> |
330 |
[% ELSE %] |
314 |
<i class="fa fa-pause" aria-hidden="true"></i> Suspend |
331 |
<button class="btn btn-default btn-xs suspend-hold" data-reserve-id="[% hold.reserve_id | html %]" data-biblionumber="[% hold.biblionumber | html %]"> |
315 |
</button> |
332 |
<i class="fa fa-pause" aria-hidden="true"></i> Suspend |
316 |
[% END %] |
333 |
</button> |
|
|
334 |
[% END %] |
317 |
|
335 |
|
318 |
[% IF Koha.Preference('AutoResumeSuspendedHolds') %] |
336 |
[% IF Koha.Preference('AutoResumeSuspendedHolds') %] |
319 |
<label for="suspend_until_[% hold.reserve_id | html %]">[% IF ( hold.suspend ) %]on[% ELSE %]until[% END %]</label> |
337 |
<label for="suspend_until_[% hold.reserve_id | html %]">[% IF ( hold.suspend ) %]on[% ELSE %]until[% END %]</label> |
320 |
<input |
338 |
<input |
321 |
type="text" |
339 |
type="text" |
322 |
name="suspend_until_[% hold.reserve_id | html %]" |
340 |
name="suspend_until_[% hold.reserve_id | html %]" |
323 |
id="suspend_until_[% hold.reserve_id | html %]" |
341 |
id="suspend_until_[% hold.reserve_id | html %]" |
324 |
size="10" |
342 |
size="10" |
325 |
value="[% hold.suspend_until | html %]" |
343 |
value="[% hold.suspend_until | html %]" |
326 |
class="flatpickr" |
344 |
class="flatpickr" |
327 |
data-flatpickr-futuredate="true" |
345 |
data-flatpickr-futuredate="true" |
328 |
/> |
346 |
/> |
329 |
[%- ELSE -%] |
347 |
[%- ELSE -%] |
330 |
<input type="hidden" name="suspend_until_[% hold.reserve_id | html %]" id="suspend_until_[% hold.reserve_id | html %]" value="" /> |
348 |
<input type="hidden" name="suspend_until_[% hold.reserve_id | html %]" id="suspend_until_[% hold.reserve_id | html %]" value="" /> |
|
|
349 |
[%- END -%] |
331 |
[%- END -%] |
350 |
[%- END -%] |
|
|
351 |
[%- END # IF SuspendHoldsIntranet -%] |
352 |
[%- IF ( hold.found ) -%] |
353 |
<a |
354 |
class="btn btn-default submit-form-link" |
355 |
href="#" |
356 |
id="revert_hold_[% hold.reserve_id | html %]" |
357 |
data-op="cud-move" |
358 |
data-where="down" |
359 |
data-first_priority="[% first_priority | html %]" |
360 |
data-last_priority="[% last_priority | html %]" |
361 |
data-prev_priority="0" |
362 |
data-next_priority="1" |
363 |
data-borrowernumber="[% hold.borrowernumber | html %]" |
364 |
data-biblionumber="[% hold.biblionumber | html %]" |
365 |
data-itemnumber="[% hold.itemnumber | html %]" |
366 |
data-reserve_id="[% hold.reserve_id | html %]" |
367 |
data-date="[% hold.date | html %]" |
368 |
data-action="request.pl" |
369 |
data-method="post" |
370 |
>[% IF hold.intransit %]Revert transit status[% ELSE %]Revert waiting status[% END %]</a |
371 |
> |
332 |
[%- END -%] |
372 |
[%- END -%] |
333 |
[%- END # IF SuspendHoldsIntranet -%] |
373 |
[% END %] |
334 |
[%- IF ( hold.found ) -%] |
|
|
335 |
<a |
336 |
class="btn btn-default submit-form-link" |
337 |
href="#" |
338 |
id="revert_hold_[% hold.reserve_id | html %]" |
339 |
data-op="cud-move" |
340 |
data-where="down" |
341 |
data-first_priority="[% first_priority | html %]" |
342 |
data-last_priority="[% last_priority | html %]" |
343 |
data-prev_priority="0" |
344 |
data-next_priority="1" |
345 |
data-borrowernumber="[% hold.borrowernumber | html %]" |
346 |
data-biblionumber="[% hold.biblionumber | html %]" |
347 |
data-itemnumber="[% hold.itemnumber | html %]" |
348 |
data-reserve_id="[% hold.reserve_id | html %]" |
349 |
data-date="[% hold.date | html %]" |
350 |
data-action="request.pl" |
351 |
data-method="post" |
352 |
>[% IF hold.intransit %]Revert transit status[% ELSE %]Revert waiting status[% END %]</a |
353 |
> |
354 |
[%- END -%] |
355 |
</td> |
374 |
</td> |
356 |
[% IF ( hold.intransit || hold.atdestination ) %] |
375 |
[% IF ( hold.intransit || hold.atdestination ) %] |
357 |
<td><input class="printholdslip" type="button" name="printholdslip" value="Print slip" data-reserve_id="[% hold.reserve_id | html %]" /></td> |
376 |
<td>[% IF ( hold.can_be_managed ) %]<input class="printholdslip" type="button" name="printholdslip" value="Print slip" data-reserve_id="[% hold.reserve_id | html %]" />[% END %]</td> |
358 |
[% ELSE %] |
377 |
[% ELSE %] |
359 |
<td></td> |
378 |
<td></td> |
360 |
[% END %] |
379 |
[% END %] |