Lines 289-294
Link Here
|
289 |
</li> |
289 |
</li> |
290 |
[% END %] |
290 |
[% END %] |
291 |
|
291 |
|
|
|
292 |
[% UNLESS forced_hold_level && ( forced_hold_level == 'item' || forced_hold_level == 'record' ) %] |
293 |
[% IF bibitemloo.object.volumes %] |
294 |
<li> |
295 |
<label for="itemtype">Request specific volume:</label> |
296 |
<select name="volume_id_[% bibitemloo.biblionumber | html %]" id="volume_id_[% bibitemloo.biblionumber | html %]" size="1"> |
297 |
<option value="">Any volume</option> |
298 |
[% FOREACH v IN bibitemloo.object.volumes %] |
299 |
<option value="[% v.id | html %]">[% v.description | html %]</option> |
300 |
[% END %] |
301 |
</select> |
302 |
</li> |
303 |
[% END %] |
304 |
[% END %] |
305 |
|
292 |
[% IF ( OpacHoldNotes ) %] |
306 |
[% IF ( OpacHoldNotes ) %] |
293 |
<li> |
307 |
<li> |
294 |
<div class="notesrow" id="notesrow_[% bibitemloo.biblionumber | html %]"> |
308 |
<div class="notesrow" id="notesrow_[% bibitemloo.biblionumber | html %]"> |
Lines 304-310
Link Here
|
304 |
[% IF bibitemloo.itemholdable %] |
318 |
[% IF bibitemloo.itemholdable %] |
305 |
<!-- ITEM HOLDS --> |
319 |
<!-- ITEM HOLDS --> |
306 |
<li class="lradio place_on_type" style="display:none;"> |
320 |
<li class="lradio place_on_type" style="display:none;"> |
307 |
[% IF NOT bibitemloo.force_hold %] |
321 |
[% UNLESS bibitemloo.forced_hold_level == 'item' || bibitemloo.forced_hold_level == 'volume' %] |
308 |
<label class="radio inline" for="reqany_[% bibitemloo.biblionumber | html %]">Next available item</label> |
322 |
<label class="radio inline" for="reqany_[% bibitemloo.biblionumber | html %]">Next available item</label> |
309 |
<input type="radio" name="reqtype_[% bibitemloo.biblionumber | html %]" |
323 |
<input type="radio" name="reqtype_[% bibitemloo.biblionumber | html %]" |
310 |
id="reqany_[% bibitemloo.biblionumber | html %]" |
324 |
id="reqany_[% bibitemloo.biblionumber | html %]" |
Lines 313-318
Link Here
|
313 |
checked="checked" |
327 |
checked="checked" |
314 |
/> |
328 |
/> |
315 |
[% END %] |
329 |
[% END %] |
|
|
330 |
|
316 |
<label class="radio inline" for="reqspecific_[% bibitemloo.biblionumber | html %]">A specific item</label> |
331 |
<label class="radio inline" for="reqspecific_[% bibitemloo.biblionumber | html %]">A specific item</label> |
317 |
<input type="radio" name="reqtype_[% bibitemloo.biblionumber | html %]" |
332 |
<input type="radio" name="reqtype_[% bibitemloo.biblionumber | html %]" |
318 |
id="reqspecific_[% bibitemloo.biblionumber | html %]" |
333 |
id="reqspecific_[% bibitemloo.biblionumber | html %]" |
Lines 553-560
Link Here
|
553 |
var select_specific = $("#reqspecific_"+biblioNum).is(":checked"); |
568 |
var select_specific = $("#reqspecific_"+biblioNum).is(":checked"); |
554 |
// If the checkbox is checked AND we want a specific item, we display the items block |
569 |
// If the checkbox is checked AND we want a specific item, we display the items block |
555 |
if ( $(checkbox).is(":checked") && select_specific ) { |
570 |
if ( $(checkbox).is(":checked") && select_specific ) { |
|
|
571 |
if ( $(`#volume_id_${biblioNum}`).length ) { |
572 |
$(`#volume_id_${biblioNum}`).val("").attr('disabled', 'disabled'); |
573 |
} |
556 |
$(newCopiesRowId).show(); |
574 |
$(newCopiesRowId).show(); |
557 |
} else { |
575 |
} else { |
|
|
576 |
if ( $(`#volume_id_${biblioNum}`).length ) { |
577 |
$(`#volume_id_${biblioNum}`).removeAttr('disabled'); |
578 |
} |
558 |
$(newCopiesRowId).hide(); |
579 |
$(newCopiesRowId).hide(); |
559 |
} |
580 |
} |
560 |
}; |
581 |
}; |