Signed-off-by: Bill Erickson <berick@esilibrary.com>
elsif ($$params{'hold_type'} eq 'P') { $target_field = 'partid'; }
else { return undef; }
+ my $formats_map = delete $$params{holdable_formats_map};
+
foreach (@$target_list) {
$$params{$target_field} = $_;
# copy the requested formats from the target->formats map
# into the top-level formats attr for each hold
- $$params{holdable_formats} = $$params{holdable_formats_map}{$_};
+ $$params{holdable_formats} = $formats_map->{$_};
my $res;
($res) = $self->method_lookup(