#230: BibRecord: detect invalid tag values in datafields and controlfields
---------------------------------------------+------------------------------
Reporter: jcaffaro | Owner:
Type: defect | Status: new
Priority: major | Milestone:
Component: BibEdit | Version:
Keywords: BibRecord BibUpload xmlmarclint |
---------------------------------------------+------------------------------
BibRecord should check and report invalid values in the {{{tag}}}
attribute of datafields and controlfields (when parsing record with
{{{correct=1}}}). For eg. the following should report an invalid MARCXML:
{{{
<?xml version="1.0" encoding="UTF-8"?>
<collection xmlns="http://www.loc.gov/MARC21/slim">
<record>
<controlfield tag="001">1282443</controlfield>
<datafield tag="005" ind1=" " ind2=" ">
<subfield code="a">eng</subfield>
</datafield>
<datafield tag="245" ind1=" " ind2=" ">
<subfield code="a">CERN leads the way with novel beam
extraction</subfield>
</datafield>
</record>
}}}
since the tag attribute of a datafield cannot be in 000-009.
[http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd The MARC 21
XML Schema]
xmlmarclint and BibUpload would inherit from this enhancement. Side
effects should be analyzed (for eg. already erroneous uploaded documents
might not be fixable afterwards, see task #224)
--
Ticket URL: <http://invenio-software.org/ticket/230>
Invenio <http://invenio-software.org>