If you attempt to get compressed (or uncompressed) holdings from
a MFHD record with only a caption, the code should short-circuit
and return an empty list.
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Dan Scott <dan@coffeecode.net>
@decomp_holdings = $self->get_decompressed_holdings($caption, {'dedupe' => 1});
}
+ return () if !@decomp_holdings;
+
my $runner = $decomp_holdings[0]->clone->increment;
my $curr_holding = shift(@decomp_holdings);
$curr_holding = $curr_holding->clone;
my $link_id = $caption->link_id;
$htag =~ s/^85/86/;
my @holdings = $self->holdings($htag, $link_id);
+
+ return () if !@holdings;
+
my @decomp_holdings;
foreach my $holding (@holdings) {