From abefaa0dffe415bca9669de7a884ce22d6a9c2a3 Mon Sep 17 00:00:00 2001 From: Kathy Lussier Date: Tue, 19 Jul 2016 14:02:12 -0400 Subject: [PATCH] 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 --- Open-ILS/src/templates/opac/parts/place_hold.tt2 | 2 +- .../OPAC/remove_advanced_hold_options_for_parts.adoc | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 docs/RELEASE_NOTES_NEXT/OPAC/remove_advanced_hold_options_for_parts.adoc 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 %]