LP#1053397 tpac gets advanced hold options link from T hold if MR available
authorBill Erickson <berick@esilibrary.com>
Fri, 7 Feb 2014 15:24:08 +0000 (10:24 -0500)
committerBill Erickson <berick@esilibrary.com>
Fri, 7 Feb 2014 15:24:08 +0000 (10:24 -0500)
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm
Open-ILS/src/templates/opac/parts/place_hold.tt2

index feb8e83..eb99180 100644 (file)
@@ -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;
index 6a8fb79..4ca0a12 100644 (file)
                         <input type='hidden' name='part' value=''/>
                         [% END %]
                     [% END %]
+                    [% IF CGI.param('hold_type') == 'T' AND hdata.record.metarecord %]
+                        <a href="[% mkurl('', {hold_type => 'M', hold_target => hdata.record.metarecord.id}) %]">
+                            [% l('Advanced Hold Options') %]
+                        </a>
+                    [% 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;