disable advanced hold options if we have multiple holds
authorGalen Charlton <gmc@equinoxintiative.org>
Fri, 10 Aug 2018 22:58:02 +0000 (18:58 -0400)
committerGalen Charlton <gmc@equinoxintiative.org>
Fri, 10 Aug 2018 22:58:02 +0000 (18:58 -0400)
Signed-off-by: Galen Charlton <gmc@equinoxintiative.org>
Open-ILS/src/templates/opac/parts/place_hold.tt2

index ff75698..abe1b51 100644 (file)
@@ -182,7 +182,7 @@ function maybeToggleNumCopies(obj) {
                         [% END %]
                     [% END %]
                    [% INCLUDE "opac/parts/multi_hold_select.tt2" IF NOT (this_hold_disallowed AND hdata.part_required); %]
-                    [% IF NOT metarecords.disabled %]
+                    [% IF NOT metarecords.disabled AND ctx.hold_data.size == 1 %]
                         [% IF CGI.param('hold_type') == 'T' AND hdata.record.metarecord AND !hdata.part_required %]
                         <!-- Grab the bre_id so that we can restore it if user accidentally clicks advanced options -->
                            [% bre_id = hdata.target.id %]