[Koha-bugs] [Bug 32336] New: MARCXML output of REST API may be badly encoded (UNIMARC)
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Nov 23 15:41:23 CET 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32336
Bug ID: 32336
Summary: MARCXML output of REST API may be badly encoded
(UNIMARC)
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: ASSIGNED
Severity: normal
Priority: P5 - low
Component: REST API
Assignee: julian.maurice at biblibre.com
Reporter: julian.maurice at biblibre.com
CC: tomascohen at gmail.com
In Koha/REST/V1/Biblios.pm (methods get and get_public),
MARC::Record::as_xml_record is called without a $format parameter, which means
it relies on the package variable $MARC::File::XML::RecordFormat to be
correctly set, which may or may not be the case depending on what the current
starman/mojo worker has done before.
We should pass the format explicitly to avoid problems.
This is only a problem for UNIMARC, because $MARC::File::XML::RecordFormat
defaults to 'USMARC'.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list