#126: BibRecord: empty fields are discarded
-----------------------+----------------------------------------------------
Reporter: jcaffaro | Owner:
Type: defect | Status: new
Priority: blocker | Milestone: v1.0
Component: BibEdit | Version:
Keywords: BibRecord |
-----------------------+----------------------------------------------------
By default BibRecord now removes singletons from parsed MARCXMLs.
Unfortunately this has the side effect that it is no longer possible to
use BibUpload in --correct mode to update and remove fields at the same
time. For eg. the following markup sent with bibupload --correct:
{{{
<record>
<controlfield tag="001">12</controlfield>
<datafield tag="506" ind1="1" ind2=" ">
</datafield>
</record>
}}}
would for eg. not remove field 5061_a in the record it tries to correct.
The same does seem to happen with:
{{{
<record>
<controlfield tag="001">12</controlfield>
<datafield tag="506" ind1="1" ind2=" ">
<subfield code="a"></subfield>
</datafield>
</record>
}}}
Instead of having a global CFG_BIBRECORD_KEEP_SINGLETONS variable, we
should probably have it as a parameter to the bibrecord.create_record(..)
function
--
Ticket URL: <http://cdswaredev.cern.ch/invenio/ticket/126>
Invenio <http://invenio-software.org>