[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
Wed Nov 29 00:59:42 CET 2023


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

ryszard.d79 at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ryszard.d79 at gmail.com

--- Comment #11 from ryszard.d79 at gmail.com ---
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

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


More information about the Koha-bugs mailing list