Lines 306-311
Link Here
|
306 |
</li> |
306 |
</li> |
307 |
[% END %] |
307 |
[% END %] |
308 |
|
308 |
|
|
|
309 |
[% UNLESS bibitemloo.forced_hold_level && ( bibitemloo.forced_hold_level == 'item' || bibitemloo.forced_hold_level == 'record' ) %] |
310 |
[% IF bibitemloo.object.item_groups %] |
311 |
<li> |
312 |
<label for="itemtype">Request specific item group:</label> |
313 |
<select name="item_group_id_[% bibitemloo.biblionumber | html %]" id="item_group_id_[% bibitemloo.biblionumber | html %]"> |
314 |
<option value="">Any item group</option> |
315 |
[% FOREACH g IN bibitemloo.object.item_groups.search({}, { order_by => ['display_order'] }) %] |
316 |
<option value="[% g.id | html %]">[% g.description | html %]</option> |
317 |
[% END %] |
318 |
</select> |
319 |
</li> |
320 |
[% END %] |
321 |
[% END %] |
322 |
|
309 |
[% IF ( OpacHoldNotes ) %] |
323 |
[% IF ( OpacHoldNotes ) %] |
310 |
<li> |
324 |
<li> |
311 |
<div class="notesrow" id="notesrow_[% bibitemloo.biblionumber | html %]"> |
325 |
<div class="notesrow" id="notesrow_[% bibitemloo.biblionumber | html %]"> |
Lines 321-327
Link Here
|
321 |
[% IF bibitemloo.itemholdable %] |
335 |
[% IF bibitemloo.itemholdable %] |
322 |
<!-- ITEM HOLDS --> |
336 |
<!-- ITEM HOLDS --> |
323 |
<li class="lradio place_on_type" style="display:none;"> |
337 |
<li class="lradio place_on_type" style="display:none;"> |
324 |
[% IF NOT bibitemloo.force_hold %] |
338 |
[% UNLESS bibitemloo.forced_hold_level == 'item' || bibitemloo.forced_hold_level == 'item_group' %] |
325 |
<label class="radio inline" for="reqany_[% bibitemloo.biblionumber | html %]">Next available item</label> |
339 |
<label class="radio inline" for="reqany_[% bibitemloo.biblionumber | html %]">Next available item</label> |
326 |
<input type="radio" name="reqtype_[% bibitemloo.biblionumber | html %]" |
340 |
<input type="radio" name="reqtype_[% bibitemloo.biblionumber | html %]" |
327 |
id="reqany_[% bibitemloo.biblionumber | html %]" |
341 |
id="reqany_[% bibitemloo.biblionumber | html %]" |
Lines 591-600
Link Here
|
591 |
var select_specific = $("#reqspecific_"+biblioNum).is(":checked"); |
605 |
var select_specific = $("#reqspecific_"+biblioNum).is(":checked"); |
592 |
// If the checkbox is checked AND we want a specific item, we display the items block |
606 |
// If the checkbox is checked AND we want a specific item, we display the items block |
593 |
if ( $(checkbox).is(":checked") && select_specific ) { |
607 |
if ( $(checkbox).is(":checked") && select_specific ) { |
|
|
608 |
if ( $(`#item_group_id_${biblioNum}`).length ) { |
609 |
$(`#item_group_id_${biblioNum}`).val("").attr('disabled', 'disabled'); |
610 |
} |
594 |
$(newCopiesRowId).show(); |
611 |
$(newCopiesRowId).show(); |
595 |
} else { |
612 |
} else { |
|
|
613 |
if ( $(`#item_group_id_${biblioNum}`).length ) { |
614 |
$(`#item_group_id_${biblioNum}`).removeAttr('disabled'); |
615 |
} |
596 |
$(newCopiesRowId).hide(); |
616 |
$(newCopiesRowId).hide(); |
597 |
} |
617 |
} |
598 |
}; |
618 |
}; |
599 |
|
619 |
|
600 |
$("#place_on_hdr").show(); |
620 |
$("#place_on_hdr").show(); |