From: Kathy Lussier Date: Wed, 25 Feb 2015 20:20:51 +0000 (-0500) Subject: lp1373203: Allow users to escape metarecord holds (backport version) X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a1b703ee1d67afb4a8ea25555c6f2908acf1a28e;p=evergreen%2Ftadl.git lp1373203: Allow users to escape metarecord holds (backport version) Provides a means for users to escape a metarecord hold if they accidentally clicked the Advanced Hold Options link. A "Go Back" link will be provided to allow the user to return to a title hold. If the hold starts as a metarecord hold, this link won't display since we don't know which bib the patron wants. Also fixes an issue where the hold cancel button always returned the user to the previous screen. Signed-off-by: Kathy Lussier Signed-off-by: Ben Shum --- diff --git a/Open-ILS/src/templates/opac/parts/place_hold.tt2 b/Open-ILS/src/templates/opac/parts/place_hold.tt2 index 8c70ca5ac7..a4feacabbb 100644 --- a/Open-ILS/src/templates/opac/parts/place_hold.tt2 +++ b/Open-ILS/src/templates/opac/parts/place_hold.tt2 @@ -91,10 +91,18 @@ [% END %] [% IF NOT metarecords.disabled %] [% IF CGI.param('hold_type') == 'T' AND hdata.record.metarecord %] + + [% bre_id = hdata.target.id %] + href="[% mkurl('', {hold_type => 'M', hold_target => hdata.record.metarecord.id, bre_id => bre_id}) %]"> [% l('Advanced Hold Options') %] [% END %] + [% IF CGI.param('hold_type') == 'M' AND CGI.param('bre_id') %] + + + [% l('Go Back') %] + [% END %] [% IF hdata.metarecord_filters.formats.size OR # should this be size > 1 (hdata.metarecord_filters.langs.size && hdata.metarecord_filters.langs.size > 1); PROCESS metarecord_hold_filters_selector hold_data=hdata; @@ -163,8 +171,7 @@ value="[% l('Submit') %]" title="[% l('Submit') %]" alt="[% l('Submit') %]" class="opac-button" /> [% END # some_holds_allowed %] - +