[Koha-bugs] [Bug 26611] Required match checks don't work for authority records

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Nov 30 22:54:50 CET 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26611

--- Comment #12 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
(In reply to ryszard.d79 from comment #11)
> Hello.
> Solution to the problem in version 22.11 (it worked for me)
> 
> /C4/Matcher.pm
> 
> line ~~33
> 
>      remove_spaces
>      upper_case
>  );
> +use C4::AuthoritiesMarc qw( GetAuthority );
>  
>  =head1 NAME
> 
> Line ~~703
>  
> foreach my $result (@$authresults) {
>              my $id = $result->{authid};
> - my $target_record = Koha::Authorities->find( $id )->record;
> + my $target_record = GetAuthority($id);
>              $matches->{$id}->{score} += $matchpoint->{'score'};
>              $matches->{$id}->{record} = $target_record;
>             }
> 
> my first comment, sorry for the syntax

Thanks for sharing. The bug will be fixed with the next release in 22.11 with
the patches from 
Bug 35343 - record method, required for bug 26611, missing from Koha::Authority

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list