[% END %]
[% IF NOT metarecords.disabled %]
[% IF CGI.param('hold_type') == 'T' AND hdata.record.metarecord %]
+ <!-- Grab the bre_id so that we can restore it if user accidentally clicks advanced options -->
+ [% bre_id = hdata.target.id %]
<a id='advanced_hold_link'
- href="[% mkurl('', {hold_type => 'M', hold_target => hdata.record.metarecord.id}) %]">
+ href="[% mkurl('', {hold_type => 'M', hold_target => hdata.record.metarecord.id, bre_id => bre_id}) %]">
[% l('Advanced Hold Options') %]</a>
[% END %]
+ [% IF CGI.param('hold_type') == 'M' AND CGI.param('bre_id') %]
+ <input type="hidden" name="bre_id" value="[% CGI.param('bre_id') %]" />
+ <a id='basic_hold_link'
+ href="[% mkurl('', {hold_target => CGI.param('bre_id'), hold_type => 'T'}) %]">
+ [% l('Basic Hold Options') %]</a>
+ [% 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;
value="[% l('Submit') %]" title="[% l('Submit') %]"
alt="[% l('Submit') %]" class="opac-button" />
[% END # some_holds_allowed %]
- <input type="reset" name="cancel" onclick="javascript:history.go(-1);"
- value="[% l('Cancel') %]" id="holds_cancel" class="opac-button" />
+ <input type="reset" name="cancel" onclick="window.location='[% redirect | html %]'" value="[% l('Cancel') %]" id="holds_cancel" class="opac-button" />
</form>
</div>
ELSE;
hold_type_label = 'title';
END %]
- <span><a href="[% mkurl(ctx.opac_root _ '/place_hold', {hold_source_page => CGI.param('hold_source_page')}) %]">
+ <span><a href="[% mkurl(ctx.opac_root _ '/place_hold', {hold_source_page => CGI.param('hold_source_page'), bre_id => CGI.param('bre_id')}) %]">
[% l('Place another hold for this ') %] [% hold_type_label %]</a>
</span>
[% END %]