Lines 693-713
Link Here
|
693 |
[% biblio_info = biblioloop.0 %] |
693 |
[% biblio_info = biblioloop.0 %] |
694 |
<!-- ItemGroup level holds --> |
694 |
<!-- ItemGroup level holds --> |
695 |
[% IF Koha.Preference('EnableItemGroupHolds') && biblio_info.object.item_groups.count %] |
695 |
[% IF Koha.Preference('EnableItemGroupHolds') && biblio_info.object.item_groups.count %] |
696 |
<fieldset class="rows"> |
696 |
<fieldset class="rows any_specific"> |
697 |
<legend> |
697 |
<legend> |
698 |
<button type="button"> |
698 |
[% IF force_hold_level == 'item_group' %] |
699 |
[% IF force_hold_level == 'item_group' %] |
699 |
<input type="radio" class="requestgrp" id="requestgrp" name="request" checked="checked" disabled="true" /> |
700 |
<input type="radio" class="requestgrp" id="requestgrp" name="request" checked="checked" disabled="true" /> |
700 |
<span class="error"><i>(Required)</i></span> |
701 |
<span class="error"><i>(Required)</i></span> |
701 |
[% ELSIF force_hold_level == 'item' || force_hold_level == 'record' %] |
702 |
[% ELSIF force_hold_level == 'item' || force_hold_level == 'record' %] |
702 |
<input type="radio" class="requestgrp" id="requestgrp" name="request" disabled="true" /> |
703 |
<input type="radio" class="requestgrp" id="requestgrp" name="request" disabled="true" /> |
703 |
[% ELSE %] |
704 |
[% ELSE %] |
704 |
<input type="radio" class="requestgrp" id="requestgrp" name="request" /> |
705 |
<input type="radio" class="requestgrp" id="requestgrp" name="request" /> |
705 |
[% END %] |
706 |
[% END %] |
706 |
<label for="requestgrp" class="inline"> |
707 |
<label for="requestgrp" class="inline"> |
707 |
Hold next available item from an item group |
708 |
Hold next available item from an item group |
708 |
</label> |
709 |
</label> |
|
|
710 |
</button> |
711 |
</legend> |
709 |
</legend> |
712 |
|
710 |
|
713 |
<fieldset class="enable_request_group disable_request_any disable_request_specific"> |
711 |
<fieldset class="enable_request_group disable_request_any disable_request_specific"> |
Lines 1695-1708
Link Here
|
1695 |
const fieldset = $(this).find('fieldset:first'); |
1693 |
const fieldset = $(this).find('fieldset:first'); |
1696 |
|
1694 |
|
1697 |
if ( fieldset.hasClass('disabled') ) { |
1695 |
if ( fieldset.hasClass('disabled') ) { |
1698 |
$('.enable_request_specific, .enable_request_any').removeClass('enabled'); |
1696 |
$('.enable_request_specific, .enable_request_any, .enable_request_group').removeClass('enabled'); |
1699 |
const specific_cb = $(this).find('#requestspecificitem'); |
1697 |
const specific_cb = $(this).find('#requestspecificitem'); |
1700 |
const any_cb = $(this).find('#requestany'); |
1698 |
const any_cb = $(this).find('#requestany'); |
|
|
1699 |
const itemgroup_cb = $(this).find('#requestgrp'); |
1701 |
|
1700 |
|
1702 |
if ( specific_cb.length ) { |
1701 |
if ( specific_cb.length ) { |
1703 |
specific_cb.prop('checked', true); |
1702 |
specific_cb.prop('checked', true); |
1704 |
} else { |
1703 |
} else if ( any_cb.length ) { |
1705 |
any_cb.prop('checked', true); |
1704 |
any_cb.prop('checked', true); |
|
|
1705 |
} else { |
1706 |
itemgroup_cb.prop('checked', true); |
1706 |
} |
1707 |
} |
1707 |
|
1708 |
|
1708 |
fieldset.removeClass('disabled').addClass('enabled'); |
1709 |
fieldset.removeClass('disabled').addClass('enabled'); |
1709 |
- |
|
|