Lines 700-707
sub get_matches {
Link Here
|
700 |
|
700 |
|
701 |
foreach my $result (@$authresults) { |
701 |
foreach my $result (@$authresults) { |
702 |
my $id = $result->{authid}; |
702 |
my $id = $result->{authid}; |
|
|
703 |
my $target_record = Koha::Authorities->find( $id )->record; |
703 |
$matches->{$id}->{score} += $matchpoint->{'score'}; |
704 |
$matches->{$id}->{score} += $matchpoint->{'score'}; |
704 |
$matches->{$id}->{record} = $id; |
705 |
$matches->{$id}->{record} = $target_record; |
705 |
} |
706 |
} |
706 |
} |
707 |
} |
707 |
} |
708 |
} |
Lines 729-734
sub get_matches {
Link Here
|
729 |
} |
730 |
} |
730 |
} elsif ($self->{'record_type'} eq 'authority') { |
731 |
} elsif ($self->{'record_type'} eq 'authority') { |
731 |
require C4::AuthoritiesMarc; |
732 |
require C4::AuthoritiesMarc; |
|
|
733 |
# get rid of any that don't meet the required checks |
734 |
$matches = { |
735 |
map { |
736 |
_passes_required_checks( $source_record, $matches->{$_}->{'record'}, $self->{'required_checks'} ) |
737 |
? ( $_ => $matches->{$_} ) |
738 |
: () |
739 |
} keys %$matches |
740 |
}; |
741 |
|
732 |
foreach my $id (keys %$matches) { |
742 |
foreach my $id (keys %$matches) { |
733 |
push @results, { |
743 |
push @results, { |
734 |
record_id => $id, |
744 |
record_id => $id, |
735 |
- |
|
|