From: Kathy Lussier Date: Tue, 19 Jul 2016 18:02:12 +0000 (-0400) Subject: LP#1604515: Remove Advanced Hold Options link when part holds are expected X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=abefaa0dffe415bca9669de7a884ce22d6a9c2a3;p=contrib%2FConifer.git LP#1604515: Remove Advanced Hold Options link when part holds are expected This branch removes the Advanced Hold Options link from the Place Hold screen in cases where all copies on the bib record contain parts. If a user attempts to place a metarecord hold and all other copies in the group also contain parts, the hold will fail. By removing the link, we are removing one potential point of failure for the user. Signed-off-by: Kathy Lussier Signed-off-by: Mike Rylander --- diff --git a/Open-ILS/src/templates/opac/parts/place_hold.tt2 b/Open-ILS/src/templates/opac/parts/place_hold.tt2 index 55f11848db..c4f197d177 100644 --- a/Open-ILS/src/templates/opac/parts/place_hold.tt2 +++ b/Open-ILS/src/templates/opac/parts/place_hold.tt2 @@ -125,7 +125,7 @@ [% END %] [% END %] [% IF NOT metarecords.disabled %] - [% IF CGI.param('hold_type') == 'T' AND hdata.record.metarecord %] + [% IF CGI.param('hold_type') == 'T' AND hdata.record.metarecord AND !hdata.part_required %] [% bre_id = hdata.target.id %]