- push @list, {
- import_record_id => $biblio->{'import_record_id'},
- citation => $citation,
- status => $biblio->{'status'},
- record_sequence => $biblio->{'record_sequence'},
- overlay_status => $biblio->{'overlay_status'},
- match_biblionumber => $#$match > -1 ? $match->[0]->{'biblionumber'} : 0,
- match_citation => $#$match > -1 ? $match->[0]->{'title'} . ' ' . $match->[0]->{'author'} : '',
- match_score => $#$match > -1 ? $match->[0]->{'score'} : 0,
- };
+ my $match_citation = '';
+ if ($#$match > -1) {
+ $match_citation .= $match->[0]->{'title'} if defined($match->[0]->{'title'});
+ $match_citation .= ' ' . $match->[0]->{'author'} if defined($match->[0]->{'author'});
+ }
+
+ push @list,
+ { import_record_id => $biblio->{'import_record_id'},
+ final_match_biblionumber => $biblio->{'matched_biblionumber'},
+ citation => $citation,
+ status => $biblio->{'status'},
+ record_sequence => $biblio->{'record_sequence'},
+ overlay_status => $biblio->{'overlay_status'},
+ match_biblionumber => $#$match > -1 ? $match->[0]->{'biblionumber'} : 0,
+ match_citation => $match_citation,
+ match_score => $#$match > -1 ? $match->[0]->{'score'} : 0,
+ };