Hi,

the problem is to delete a batch of records described by a list of bibcodes.

In Invenio, records are never deleted but rather are tagged as deleted. In order to perform this operation, we first need to create a MARCXML file resembling this:

<record>
    <datafield tag="970">
        <subfield code="a">###here comes the bibcode###</subfield>
    </datafield>
    <datafield tag="980">
        <subfield code="c">DELETED</subfield>
    </datafield>
</record>

We then send this file to bibupload in order to update the MARC:
    bibupload -c my_file

The first datafield is used to identify the record to delete, the second field is the actual update of the MARC.

The changes might not appear immediately in Invenio so if we want to force them, we need to run both webcoll (to update the collections) and bibreformat (if a detailed format exists).

BibIndex might need to run too but it is not urgent as the results of a request are also intersected with the collections (managed by webcoll).

Benoit.

Reply via email to