Bug 11388

Summary: Error exporting records to non-Unicode/MARC-8
Product: Koha Reporter: Pablo AB <pablo.bianchi>
Component: OPACAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low CC: dcook, joonas.kylmala
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Pablo AB 2013-12-12 14:49:36 UTC
If you have a record with line endings and in OPAC want to "Save record" to "MARC (non-Unicode/MARC-8)" (opac-export.pl?format=marc8&op=export&bib=2778&save=Go) you'll get something like:

An error occurred
Creation of MARCXML Record failed: Field 964 must have at least one subfield at /usr/share/perl5/MARC/File/SAX.pm line 113 

But the field have a subfield, the problem is with line endings (LF, \n).
Comment 1 Katrin Fischer 2015-06-07 10:46:19 UTC
Hi Pablo, can you explain a bit more? How would I create a record with line endings?
Comment 2 Pablo AB 2015-06-11 19:04:02 UTC
Now (3.18) the error output is Creation of MARCXML Record failed: Field 964 must have at least one subfield at /usr/share/perl5/MARC/File/XML.pm line 481 

On a text editor copy to clipboard a text with several lines (so, including \n line endings) and paste it on the record subfield.

Saving to other any other options work just perfect.
Comment 3 Joonas Kylmälä 2021-09-19 17:51:26 UTC
Bug still valid.