Lines 209-231
Link Here
|
209 |
[% IF ( bad_data ) %] |
209 |
[% IF ( bad_data ) %] |
210 |
<div id="bad_data" class="dialog alert">ERROR: Internal error: incomplete hold request.</div> |
210 |
<div id="bad_data" class="dialog alert">ERROR: Internal error: incomplete hold request.</div> |
211 |
[% END %] |
211 |
[% END %] |
212 |
[% ELSE %] |
212 |
[% ELSIF ( none_available ) %] |
213 |
[% IF ( none_available ) %] |
|
|
214 |
<div id="none_available" class="dialog alert"><strong>Sorry</strong>, none of these items can be placed on hold. |
213 |
<div id="none_available" class="dialog alert"><strong>Sorry</strong>, none of these items can be placed on hold. |
215 |
</div> |
214 |
</div> |
216 |
[% END %] |
|
|
217 |
[% END %]<!-- NAME="message" --> |
215 |
[% END %]<!-- NAME="message" --> |
218 |
|
216 |
|
219 |
[% UNLESS ( message ) %][% UNLESS ( none_available ) %]<h3>Confirm holds for: |
217 |
[% UNLESS ( message ) %][% UNLESS ( none_available ) %]<h3>Confirm holds for: |
220 |
[% FOREACH USER_INF IN USER_INFO %] |
218 |
[% FOREACH USER_INF IN USER_INFO %] |
221 |
[% USER_INF.firstname %] [% USER_INF.surname %] ([% USER_INF.cardnumber %]) |
219 |
[% USER_INF.firstname %] [% USER_INF.surname %] ([% USER_INF.cardnumber %]) |
222 |
[% END %] |
220 |
[% END %] |
223 |
</h3>[% END %] |
221 |
</h3> |
224 |
[% IF (RESERVE_CHARGE) %] |
222 |
[% IF (RESERVE_CHARGE) %] |
225 |
<div class="dialog alert" id="reserve_fee"> |
223 |
<div class="dialog alert" id="reserve_fee"> |
226 |
There is a charge of [% RESERVE_CHARGE %] for placing this hold |
224 |
There is a charge of [% RESERVE_CHARGE %] for placing this hold |
227 |
</div> |
225 |
</div> |
228 |
[% END %] |
226 |
[% END %] |
|
|
227 |
[% END %][% END %] |
229 |
|
228 |
|
230 |
<form action="/cgi-bin/koha/opac-reserve.pl" method="post" id="hold-request-form"> |
229 |
<form action="/cgi-bin/koha/opac-reserve.pl" method="post" id="hold-request-form"> |
231 |
<input type="hidden" name="place_reserve" value="1"/> |
230 |
<input type="hidden" name="place_reserve" value="1"/> |
Lines 234-271
Link Here
|
234 |
<input type="hidden" name="biblionumbers" id="biblionumbers"/> |
233 |
<input type="hidden" name="biblionumbers" id="biblionumbers"/> |
235 |
<input type="hidden" name="selecteditems" id="selections"/> |
234 |
<input type="hidden" name="selecteditems" id="selections"/> |
236 |
<div id="bigloop"> |
235 |
<div id="bigloop"> |
|
|
236 |
[% extra_cols = 2 %] |
237 |
<table id="bibitemloop"> |
237 |
<table id="bibitemloop"> |
238 |
[% UNLESS ( none_available ) %]<tr> |
238 |
<tr> |
|
|
239 |
[% UNLESS ( none_available ) %] |
239 |
<th>Hold</th> |
240 |
<th>Hold</th> |
|
|
241 |
[% END %] |
240 |
<th>Title</th> |
242 |
<th>Title</th> |
241 |
[% UNLESS ( item_level_itypes ) %] |
243 |
[% UNLESS ( item_level_itypes ) %] |
242 |
<th>Item type</th> |
244 |
<th>Item type</th> |
243 |
[% END %] |
245 |
[% END %] |
|
|
246 |
[% UNLESS ( none_available ) %] |
244 |
[% IF showholds && showpriority %] |
247 |
[% IF showholds && showpriority %] |
|
|
248 |
[% extra_cols = extra_cols + 1 %] |
245 |
<th>Holds and priority</th> |
249 |
<th>Holds and priority</th> |
246 |
[% ELSIF showholds %] |
250 |
[% ELSIF showholds %] |
|
|
251 |
[% extra_cols = extra_cols + 1 %] |
247 |
<th>Holds</th> |
252 |
<th>Holds</th> |
248 |
[% ELSIF showpriority %] |
253 |
[% ELSIF showpriority %] |
|
|
254 |
[% extra_cols = extra_cols + 1 %] |
249 |
<th>Priority</th> |
255 |
<th>Priority</th> |
250 |
[% END %] |
256 |
[% END %] |
251 |
[% IF ( reserve_in_future ) %] |
257 |
[% IF ( reserve_in_future ) %] |
|
|
258 |
[% extra_cols = extra_cols + 1 %] |
252 |
<th>Hold starts on date</th> |
259 |
<th>Hold starts on date</th> |
253 |
[% END %] |
260 |
[% END %] |
254 |
<th>Hold not needed after</th> |
261 |
<th>Hold not needed after</th> |
255 |
[% IF ( OPACItemHolds ) %] |
|
|
256 |
<th id="place_on_hdr" style="display:none">Place on</th> |
262 |
<th id="place_on_hdr" style="display:none">Place on</th> |
257 |
[% END %] |
|
|
258 |
[% UNLESS ( singleBranchMode ) %] |
263 |
[% UNLESS ( singleBranchMode ) %] |
259 |
[% IF ( choose_branch ) %] |
264 |
[% IF ( choose_branch ) %] |
|
|
265 |
[% extra_cols = extra_cols + 1 %] |
260 |
<th>Pickup location</th> |
266 |
<th>Pickup location</th> |
261 |
[% END %] |
267 |
[% END %] |
262 |
[% END %] |
268 |
[% END %] |
263 |
</tr>[% ELSE %]<tr><th colspan="5">Title</th></tr>[% END %] |
269 |
[% END %] |
|
|
270 |
</tr> |
264 |
|
271 |
|
265 |
[% FOREACH bibitemloo IN bibitemloop %] |
272 |
[% FOREACH bibitemloo IN bibitemloop %] |
266 |
<tr> |
273 |
<tr> |
267 |
[% IF ( bibitemloo.holdable ) %] |
274 |
[% UNLESS none_available %] |
268 |
<td> |
275 |
<td> |
|
|
276 |
[% IF ( bibitemloo.holdable ) %] |
269 |
<input class="reserve_mode" name="reserve_mode" type="hidden" value="single"/> |
277 |
<input class="reserve_mode" name="reserve_mode" type="hidden" value="single"/> |
270 |
<input class="single_bib" name="single_bib" type="hidden" value="[% bibitemloo.biblionumber %]"/> |
278 |
<input class="single_bib" name="single_bib" type="hidden" value="[% bibitemloo.biblionumber %]"/> |
271 |
<span class="confirmjs_hold" title="[% bibitemloo.biblionumber %]"></span> |
279 |
<span class="confirmjs_hold" title="[% bibitemloo.biblionumber %]"></span> |
Lines 276-313
Link Here
|
276 |
value="any" /> |
284 |
value="any" /> |
277 |
<label class="confirm_label" for="[% bibitemloo.checkitem_bib %]">Next available copy</label> |
285 |
<label class="confirm_label" for="[% bibitemloo.checkitem_bib %]">Next available copy</label> |
278 |
</span> |
286 |
</span> |
279 |
</td> |
287 |
[% ELSE %] |
280 |
[% ELSE %] |
288 |
|
281 |
[% UNLESS ( none_available ) %]<td> </td>[% END %] |
289 |
[% END %] |
282 |
[% END %] |
290 |
</td> |
283 |
[% IF ( bibitemloo.holdable ) %]<td>[% ELSE %]<td colspan="5">[% END %] |
291 |
[% END %] |
|
|
292 |
<td> |
284 |
<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% bibitemloo.biblionumber %]">[% bibitemloo.title |html %][% IF ( bibitemloo.subtitle ) %] [% FOREACH subtitl IN bibitemloo.subtitle %][% subtitl.subfield %][% END %][% END %]</a> |
293 |
<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% bibitemloo.biblionumber %]">[% bibitemloo.title |html %][% IF ( bibitemloo.subtitle ) %] [% FOREACH subtitl IN bibitemloo.subtitle %][% subtitl.subfield %][% END %][% END %]</a> |
285 |
[% IF ( bibitemloo.author ) %], by [% bibitemloo.author %][% END %] |
294 |
[% IF ( bibitemloo.author ) %], by [% bibitemloo.author %][% END %] |
286 |
|
295 |
|
287 |
[% UNLESS ( bibitemloo.holdable ) %] |
296 |
[% UNLESS ( bibitemloo.holdable ) %] |
288 |
|
297 |
<div class="bibmessage"> |
289 |
[% IF ( bibitemloo.already_reserved ) %] |
298 |
[% IF ( bibitemloo.already_reserved ) %] |
290 |
<div class="bibmessage">You have already requested this title.</div> |
299 |
You have already requested this title. |
|
|
300 |
[% ELSIF ( bibitemloo.bib_available ) %] |
301 |
No available items. |
291 |
[% ELSE %] |
302 |
[% ELSE %] |
292 |
[% UNLESS ( bibitemloo.bib_available ) %] |
303 |
This title cannot be requested. |
293 |
<div class="bibmessage">No available items.</div> |
|
|
294 |
[% ELSE %] |
295 |
<div class="bibmessage">This title cannot be requested.</div> |
296 |
[% END %] |
297 |
[% END %] |
298 |
|
299 |
|
300 |
[% END %] |
304 |
[% END %] |
301 |
|
305 |
</div> |
|
|
306 |
[% END %] |
302 |
</td> |
307 |
</td> |
303 |
[% IF ( bibitemloo.holdable ) %] |
|
|
304 |
<!-- HOLDABLE --> |
305 |
[% UNLESS ( item_level_itypes ) %] |
308 |
[% UNLESS ( item_level_itypes ) %] |
306 |
<td> |
309 |
<td> |
307 |
[% IF ( bibitemloo.imageurl ) %]<img src="[% bibitemloo.imageurl %]" alt="" />[% END %] |
310 |
[% IF ( bibitemloo.imageurl ) %]<img src="[% bibitemloo.imageurl %]" alt="" />[% END %] |
308 |
[% bibitemloo.description %] |
311 |
[% bibitemloo.description %] |
309 |
</td> |
312 |
</td> |
310 |
[% END %] |
313 |
[% END %] |
|
|
314 |
[% IF ( bibitemloo.holdable ) %] |
315 |
<!-- HOLDABLE --> |
311 |
[% IF showholds || showpriority %] |
316 |
[% IF showholds || showpriority %] |
312 |
<td> |
317 |
<td> |
313 |
[% IF showpriority %] [% bibitemloo.rank %] [% END %] |
318 |
[% IF showpriority %] [% bibitemloo.rank %] [% END %] |
Lines 332-399
Link Here
|
332 |
<input name="expiration_date_[% bibitemloo.biblionumber %]" id="to" size="10" readonly="readonly" class="datepickerto" /> |
337 |
<input name="expiration_date_[% bibitemloo.biblionumber %]" id="to" size="10" readonly="readonly" class="datepickerto" /> |
333 |
<p style="margin:.3em 2em;"> |
338 |
<p style="margin:.3em 2em;"> |
334 |
<a href="#" style="font-size:85%;text-decoration:none;" onclick="document.getElementById('expiration_date_[% bibitemloo.biblionumber %]').value='';return false;">Clear date</a></p> |
339 |
<a href="#" style="font-size:85%;text-decoration:none;" onclick="document.getElementById('expiration_date_[% bibitemloo.biblionumber %]').value='';return false;">Clear date</a></p> |
335 |
</td>[% END %] |
340 |
</td> |
336 |
|
341 |
|
337 |
[% IF ( bibitemloo.holdable ) %] |
342 |
<td class="place_on_type" style="display:none"> |
338 |
<!-- HOLD ABLE --> |
|
|
339 |
[% IF ( OPACItemHolds ) %] |
340 |
<!-- ITEM HOLDS --> |
343 |
<!-- ITEM HOLDS --> |
341 |
<td class="place_on_type" style="display:none"> |
344 |
<ul> |
342 |
<ul> |
345 |
<li> |
343 |
<li> |
346 |
<input type="radio" name="reqtype_[% bibitemloo.biblionumber %]" |
344 |
[% UNLESS ( bibitemloo.holdable ) %] |
347 |
id="reqany_[% bibitemloo.biblionumber %]" |
345 |
<input type="radio" name="reqtype_[% bibitemloo.biblionumber %]" |
348 |
class="selectany" |
346 |
id="reqany_[% bibitemloo.biblionumber %]" |
349 |
value="Any" |
347 |
class="selectany" |
350 |
checked="checked" |
348 |
value="Any" |
351 |
/> |
349 |
disabled="disabled" |
352 |
<label for="reqany_[% bibitemloo.biblionumber %]">Next available copy</label> |
350 |
/> |
353 |
</li> |
351 |
[% ELSE %] |
354 |
[% IF ( bibitemloo.itemholdable ) %] |
352 |
<input type="radio" name="reqtype_[% bibitemloo.biblionumber %]" |
355 |
<li> |
353 |
id="reqany_[% bibitemloo.biblionumber %]" |
356 |
<input type="radio" name="reqtype_[% bibitemloo.biblionumber %]" |
354 |
class="selectany" |
357 |
id="reqspecific_[% bibitemloo.biblionumber %]" |
355 |
value="Any" |
358 |
class="selectspecific" |
356 |
checked="checked" |
359 |
value="Specific" |
357 |
/> |
360 |
/> |
358 |
[% END %] |
361 |
<label for="reqspecific_[% bibitemloo.biblionumber %]">A specific copy</label> |
359 |
<label for="reqany_[% bibitemloo.biblionumber %]">Next available copy</label> |
362 |
</li> |
360 |
</li> |
363 |
[% END %] |
361 |
<li> |
364 |
</ul> |
362 |
[% UNLESS ( bibitemloo.holdable ) %] |
365 |
</td> |
363 |
<input type="radio" name="reqtype_[% bibitemloo.biblionumber %]" |
366 |
|
364 |
id="reqspecific_[% bibitemloo.biblionumber %]" |
367 |
[% UNLESS ( singleBranchMode ) %] |
365 |
class="selectspecific" |
|
|
366 |
disabled="disabled" |
367 |
value="Specific" |
368 |
/> |
369 |
[% ELSE %] |
370 |
<input type="radio" name="reqtype_[% bibitemloo.biblionumber %]" |
371 |
id="reqspecific_[% bibitemloo.biblionumber %]" |
372 |
class="selectspecific" |
373 |
value="Specific" |
374 |
/> |
375 |
[% END %] |
376 |
<label for="reqspecific_[% bibitemloo.biblionumber %]">A specific copy</label> |
377 |
</li> |
378 |
</ul> |
379 |
</td> |
380 |
[% END %][% END %] |
381 |
|
382 |
[% UNLESS ( singleBranchMode ) %] |
383 |
[% IF ( bibitemloo.holdable ) %] |
384 |
[% IF ( choose_branch ) %] |
368 |
[% IF ( choose_branch ) %] |
385 |
<td> |
369 |
<td> |
386 |
[% UNLESS ( bibitemloo.holdable ) %] |
|
|
387 |
<select name="branch" id="branch_[% bibitemloo.biblionumber %]" disabled="disabled"> |
388 |
[% FOREACH branchChoicesLoo IN bibitemloo.branchChoicesLoop %] |
389 |
[% IF ( branchChoicesLoo.selected ) %] |
390 |
<option value="[% branchChoicesLoo.value %]" selected="selected">[% branchChoicesLoo.branchname %]</option> |
391 |
[% ELSE %] |
392 |
<option value="[% branchChoicesLoo.value %]">[% branchChoicesLoo.branchname %]</option> |
393 |
[% END %] |
394 |
[% END %] |
395 |
</select> |
396 |
[% ELSE %] |
397 |
<select name="branch" id="branch_[% bibitemloo.biblionumber %]"> |
370 |
<select name="branch" id="branch_[% bibitemloo.biblionumber %]"> |
398 |
[% FOREACH branchChoicesLoo IN bibitemloo.branchChoicesLoop %] |
371 |
[% FOREACH branchChoicesLoo IN bibitemloo.branchChoicesLoop %] |
399 |
[% IF ( branchChoicesLoo.selected ) %] |
372 |
[% IF ( branchChoicesLoo.selected ) %] |
Lines 403-417
Link Here
|
403 |
[% END %] |
376 |
[% END %] |
404 |
[% END %] |
377 |
[% END %] |
405 |
</select> |
378 |
</select> |
406 |
[% END %] |
|
|
407 |
</td> |
379 |
</td> |
408 |
[% END %] |
380 |
[% END %] |
409 |
[% END %] |
381 |
[% END %] |
410 |
[% END %] |
382 |
[% ELSIF NOT none_available %] |
|
|
383 |
<td colspan="[% extra_cols %]"> </td> |
384 |
[% END # holdable%] |
411 |
</tr> |
385 |
</tr> |
412 |
|
386 |
|
413 |
[% IF ( OPACItemHolds ) %] |
387 |
[% IF ( bibitemloo.itemholdable ) %] |
414 |
[% IF ( bibitemloo.holdable ) %] |
|
|
415 |
<tr class="copiesrow" id="copiesrow_[% bibitemloo.biblionumber %]"> |
388 |
<tr class="copiesrow" id="copiesrow_[% bibitemloo.biblionumber %]"> |
416 |
<td> </td> |
389 |
<td> </td> |
417 |
<td colspan="[% itemtable_colspan %]"> |
390 |
<td colspan="[% itemtable_colspan %]"> |
Lines 490-500
Link Here
|
490 |
</table> |
463 |
</table> |
491 |
</td> |
464 |
</td> |
492 |
</tr> |
465 |
</tr> |
493 |
[% END %]<!-- bib_available --> |
466 |
[% END # itemholdable%] |
494 |
[% END %]<!-- OPACItemHolds --> |
467 |
[% END %]<!-- bibitemloop --> |
495 |
[% END %] |
468 |
</table> |
496 |
</table><!-- bibitemloop --> |
|
|
497 |
[% END %] <!-- if message --> |
498 |
</div><!-- bigloop --> |
469 |
</div><!-- bigloop --> |
499 |
|
470 |
|
500 |
[% UNLESS ( message ) %] |
471 |
[% UNLESS ( message ) %] |