Dear San-Tsai,
In data mercoledì 14 aprile 2010 19:19:05, San-Tsai Sun ha scritto:
> I tried to delete an attached file via BibEdit, but failed to do so. This
> is what I have done:
>
> 1. select a record, and click on 'Edit this record' to invoke Bibedit web
> interface 2. click on the 'delete' mark of the corresponding 8564_ $$u
> data field. 3. click on 'submit' to submit the change
> 4. run bibsched to check whether the submission is successfully executed.
> It runs without error.
>
> But when I view the record again, the attached file still there. Can anyone
> please let me know what I have done wrong? Or what is the procedure of
> deleting an attached file? Thank you in advance.
The BibEdit interface is currently usable only to modify the metadata, but not
to manipulate attached document. Therefore, every time you simply modify the
metadata, when you commit your changes, the 8564 tags are resynchronized from
what Invenio knows about attached documents. In practice, for Invenio, the
8564 are simply a passive window on the attached documents.
The easiest way to delete a file/document in the latest stable release
(0.99.1), is by using the FFT tag.
e.g. supposing that for record 1 you have document called 0106015_01 with one
or more format attached, and you want to delete such a document, you can
bibupload --correct the following snippet:
<record>
<controlfield tag="001">1</controlfield>
<datafield tag ="FFT" ind1=" " ind2=" ">
<subfield code="n">0106015_01</subfield>
<subfield code="t">DELETE</subfield>
</datafield>
</record>
See also:
<http://invenio-demo.cern.ch/help/admin/bibupload-admin-guide#3.5>
In general the command line tool /opt/cds-invenio/bin/bibdocfile, would let
you do all sorts of manipulation of documents. Unfortunately for release
0.99.1, it was still not supporting direct deletion of documents.
Best regards,
Samuele
P.s. Note that with the next stable release this command line tool is greatly
enhanced, and there will be also a BidDocFile web interface analogous to
BibEdit, but for fulltextes.
--
Samuele Kaplun ** CERN Document Server ** <http://cds.cern.ch/>