[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 16:08:16 CEST 2017


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

--- Comment #105 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
(In reply to Julian Maurice from comment #103)
> 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)
>     );

Thanks. This error actually is the same as point 3 of the previous comment. I
will add an absolute minimum 100 with encoding only for UNIMARC to resolve the
problem in MARC::File::XML.

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


More information about the Koha-bugs mailing list