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: [email protected]
          Reporter: [email protected]
                CC: [email protected]

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.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to