Bug 34823: Do not show Item group dropdown if there are no item groups
To test: 1. Enable EnableItemGroups and EnableItemGroupHolds 2. Go to the OPAC and log in as a patron 3. Go to any record that doesn't have grouped items and try to place a hold 4. Click on "Show more options" 5. See "Request specific item group:" and dropdown 6. APPLY PATCH 7. Try again, this time if the record has no item groups you should not see the dropdown at all. Signed-off-by: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com> Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> (cherry picked from commitbe98d633be
) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> (cherry picked from commit58c25f1c78
) Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
35117c339e
commit
551248240b
1 changed files with 1 additions and 1 deletions
|
@ -317,7 +317,7 @@
|
|||
[% END %]
|
||||
|
||||
[% UNLESS bibitemloo.forced_hold_level && ( bibitemloo.forced_hold_level == 'item' || bibitemloo.forced_hold_level == 'record' ) %]
|
||||
[% IF Koha.Preference('EnableItemGroupHolds') && bibitemloo.object.item_groups %]
|
||||
[% IF Koha.Preference('EnableItemGroupHolds') && bibitemloo.object.item_groups.count %]
|
||||
<li>
|
||||
<label for="itemtype">Request specific item group:</label>
|
||||
<select name="item_group_id_[% bibitemloo.biblionumber | html %]" id="item_group_id_[% bibitemloo.biblionumber | html %]">
|
||||
|
|
Loading…
Reference in a new issue