From 0ba3e77dc9e406deb348f7bc5149bac273d470e5 Mon Sep 17 00:00:00 2001 From: Kathy Lussier Date: Sat, 21 Feb 2015 09:50:13 -0500 Subject: [PATCH] lp1373203: Allow users to escape metarecord holds Provides a means for users to escape a metarecord hold if they accidentally clicked the Advanced Hold Options link. A Basic Hold Options link will be provided to allow the user to return to a title hold. If the hold starts as a metarecord hold, the basic hold options 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. We will instead utilize the existing hold_source_page parameter to identify the return page. Signed-off-by: Kathy Lussier Signed-off-by: Ben Shum --- Open-ILS/src/templates/opac/parts/place_hold.tt2 | 13 ++++++++++--- Open-ILS/src/templates/opac/parts/place_hold_result.tt2 | 2 +- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/Open-ILS/src/templates/opac/parts/place_hold.tt2 b/Open-ILS/src/templates/opac/parts/place_hold.tt2 index 192b65ba8c..467e02b6e6 100644 --- a/Open-ILS/src/templates/opac/parts/place_hold.tt2 +++ b/Open-ILS/src/templates/opac/parts/place_hold.tt2 @@ -92,10 +92,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('Basic Hold Options') %] + [% 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; @@ -164,8 +172,7 @@ value="[% l('Submit') %]" title="[% l('Submit') %]" alt="[% l('Submit') %]" class="opac-button" /> [% END # some_holds_allowed %] - + diff --git a/Open-ILS/src/templates/opac/parts/place_hold_result.tt2 b/Open-ILS/src/templates/opac/parts/place_hold_result.tt2 index 5ec0afc691..5cf09c1100 100644 --- a/Open-ILS/src/templates/opac/parts/place_hold_result.tt2 +++ b/Open-ILS/src/templates/opac/parts/place_hold_result.tt2 @@ -138,7 +138,7 @@ ELSE; hold_type_label = 'title'; END %] - + [% l('Place another hold for this ') %] [% hold_type_label %] [% END %] -- 2.11.0