#897: BibUpload: new option to delete fields
-------------------------+------------------
Reporter: simko | Owner:
Type: enhancement | Status: new
Priority: major | Milestone: v1.0
Component: BibUpload | Version:
Keywords: |
-------------------------+------------------
For several use cases -- one being deletion of fields via submission
interface, another being ticket:816 -- it will be useful to enable
BibUpload to delete fields via special action tag in the input MARCXML
snippet.
For example, we could (mis)use `$0` for this. When `$0` has a value, it
is usually the authority control reference, meaning that this whole field
refers to some other authority entity. We could introduce special `$0`
values that would look like `___ACTION___` that would trigger some wanted
action, such as deleting given field instances.
Example:
{{{
<record>
<controlfield tag="001">1234</controlfield>
<datafield tag="100" ind1=" " ind2=" ">
<subfield code="a">Doe, J</subfield>
</datafield>
<datafield tag="700" ind1=" " ind2=" ">
<subfield code="0">___DELETE_FIELDS___</subfield>
</datafield>
</record>
}}}
If the above snippet is submitted via bibupload correct mode, then
bibupload would update 100 MARC field and would remove all instances of
700 MARC field when uploading this record.
As usual, regression test cases should be written as part of this ticket.
--
Ticket URL: <http://invenio-software.org/ticket/897>
Invenio <http://invenio-software.org>