[Koha-bugs] [Bug 23846] New: bad iso 2709 record silently results in broken marcxml
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Sun Oct 20 18:46:24 CEST 2019
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23846
Bug ID: 23846
Summary: bad iso 2709 record silently results in broken marcxml
Change sponsored?: ---
Product: Koha
Version: 19.05
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P3
Component: MARC Bibliographic record staging/import
Assignee: koha-bugs at lists.koha-community.org
Reporter: dominique at leducq.net
QA Contact: testopia at bugs.koha-community.org
Created attachment 94419
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=94419&action=edit
iso 2709 with problematic record
The (UNIMARC) ISO 2709 record in the attached file (26080509.txt) seems to have
a problem : the 009 field should contain an ARK identifier but seems to be
something else, with a subfield separator in it.
When imported into koha, it is said to be imported all right, but when trying
to access the notice, we get the following error message :
Invalid data, cannot decode object (id=9865, format=marcxml, schema=UNIMARC)
Investigating, I found that the marcxml in biblio_metadata.metadata is broken :
the content of the <controlfield tag="009"> element is a verbatim copy of the
009 field, including the (non-printable, 0x1F) subfield separator (cf line 9 of
the attached marcxml)
When I deleted this element in the database, all seems to work fine.
I think either the record should be rejected alltogether, with an explicit
error message, or the erroneous field should be droped.
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list