[Koha-bugs] [Bug 9988] Leave larger authority merges to merge_authorities cronjob ( pref AuthorityMergeLimit)

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Apr 11 08:34:53 CEST 2017


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

--- Comment #103 from Julian Maurice <julian.maurice at biblibre.com> ---
5) When I merge 2 authorities on the staff interface, I get a UNIMARC-related
error:

Unsupported UNIMARC character encoding [] for XML output for UNIMARCAUTH; 100$a
->  at /usr/share/perl5/MARC/File/XML.pm line 568.

It's triggered by MARC::Record::as_xml in
Koha::Authority::MergeRequests::reporting_tag_xml.

It seems to work correctly when I add the following code before as_xml:

    # Copied from AddAuthority
    my $date = POSIX::strftime("%Y%m%d", localtime);
    my $defaultfield100 = C4::Context->preference('UNIMARCAuthorityField100');
    $newrecord->append_fields(
        MARC::Field->new('100', ' ', ' ' , 'a'=> $date.$defaultfield100)
    );

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


More information about the Koha-bugs mailing list