if (@idobjs) {
my $stashed_problem;
# Reuse $idobj from above.
- foreach $idobj (@$idobjs) {
+ foreach $idobj (@idobjs) {
my ($idvalue, $idtype, $idfield);
if ($_->{BibliographicItemIdentifier}) {
$idvalue = $_->{BibliographicItemIdentifier};
}
last if ($item);
}
- $item = $stashed_problem if (!$tem && $stashed_problem);
+ $item = $stashed_problem if (!$item && $stashed_problem);
}
return $item;
unless (@holds) {
# Look for volume holds, the next most common:
$targetid = $copy_details->{volume}->id();
- @holds = grep {$_->hold_type eq 'V' && $_->target == $tagetid} @{$holds_list};
+ @holds = grep {$_->hold_type eq 'V' && $_->target == $targetid} @{$holds_list};
}
unless (@holds) {
# Look for copy and force holds, the least likely.