From a1d3cfd1dffe213a31b48ec3a6975b93b95a405b Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Fri, 7 Feb 2014 10:24:08 -0500 Subject: [PATCH] LP#1053397 tpac gets advanced hold options link from T hold if MR available Signed-off-by: Bill Erickson --- Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm | 5 ++++- Open-ILS/src/templates/opac/parts/place_hold.tt2 | 5 +++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm index feb8e83e66..eb99180be8 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm @@ -826,7 +826,10 @@ sub load_place_hold { } }, T => sub { - my $recs = $e->batch_retrieve_biblio_record_entry(\@targets, {substream => 1}); + my $recs = $e->batch_retrieve_biblio_record_entry( + [\@targets, {flesh => 1, flesh_fields => {bre => ['metarecord']}}], + {substream => 1} + ); for my $id (@targets) { # force back into the correct order my ($rec) = grep {$_->id eq $id} @$recs; diff --git a/Open-ILS/src/templates/opac/parts/place_hold.tt2 b/Open-ILS/src/templates/opac/parts/place_hold.tt2 index 6a8fb79cc5..4ca0a125e7 100644 --- a/Open-ILS/src/templates/opac/parts/place_hold.tt2 +++ b/Open-ILS/src/templates/opac/parts/place_hold.tt2 @@ -64,6 +64,11 @@ [% END %] [% END %] + [% IF CGI.param('hold_type') == 'T' AND hdata.record.metarecord %] + + [% l('Advanced Hold Options') %] + + [% END %] [% IF hdata.metarecord_filters.formats.size OR # should this be size > 1 hdata.metarecord_filters.langs.size > 1; PROCESS metarecord_hold_filters_selector hold_data=hdata; -- 2.11.0