Bug 11388 - Error exporting records to non-Unicode/MARC-8
Summary: Error exporting records to non-Unicode/MARC-8
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: OPAC (show other bugs)
Version: Main
Hardware: All All
: P5 - low minor (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-12 14:49 UTC by Pablo AB
Modified: 2021-09-20 00:10 UTC (History)
3 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.