Hi Theodoros:
On Wed, 27 Aug 2008, Theodoropoulos Theodoros wrote:
> Another idea would be to have the option to use a special wildcard
> (ie. '*') in FFT $n for EXPUNGE function in bibupload -c, in order to
> delete ALL fulltexts (or some, matching the above wildcard) for the
> given record IDs.
>
> This would also help towards my previous request, since with no
> fulltext files attached to the record, one could use bibupload -a to
> append the new fulltext files (an option that leaves the rest of the
> metadata of the record intact).
You can also use `bibdocfile' for this. I don't think wildcards are
supported there yet (CC-ing Sam), but you can relatively easily script
these operations in the meantime, along the lines of:
$ /opt/cds-invenio/bin/bibdocfile --recid 88 --get-docnames
88:84:0307041 # this output means `recid:docid:docname'
$ sudo -u apache /opt/cds-invenio/bin/bibdocfile --recid 88 --docname 0307041
--delete --yes-i-know
for every docfile outputted for the given record. This will schedule
proper FFT bibupload -c tasks to delete the full-text files.
P.S. Sam, can you please look at the wildcard support in bibdocfile?
(Or maybe introduce a new option named like `--delete-all'.)
Ideally one should be able to do things like:
$ bibdocfile --collection Theses --delete-all
$ bibdocfile --collection Pictures --delete '*funny*'
Best regards
--
Tibor Simko ** CERN Document Server ** <http://cds.cern.ch/>