Hi Johnny,
In data martedì, 5 giugno 2012 18.15:08, Johnny Mariéthoz ha scritto:
> Dear all,
>
> I try to set an access restriction to a file when I add it by setting the
FFT field in a record, for example:
> <record>
> <controlfield tag="001">22129</controlfield>
> <datafield tag ="FFT" ind1=" " ind2=" ">
> <subfield code="r">RERO_CENTRAL</subfield>
> <subfield
code="a">http://doc.rero.ch/lm.php?url=1000,43,4,20120605120440-CJ/Thai_Trieu-
Tien_-_Arene_ruthenium_bis-
saccharinato_complexes_Synthesis_20120605.pdf</subfield>
> </datafield>
> </record>
>
> After bibuploading the record (using bibupload -ri), the restriction is not
set.
>
> Once the file is added, I run bibdocfile with -r flag and it works!
>
> Do I miss something or is it a bug?
It looks more as a bug :-) But why are you using -ri? If the record already
exist, what will happen is that all the metadata is wiped out and replaced
with an empty record. If you are trying to add a new revision for a file I'd
recommend you using -c for correcting, or if it is the first time a document
is added then -a for appending it would do the job.
Thanks for reporting it. I will ticketize it and have a look at it.
Cheers,
Sam
--
Samuele Kaplun
Invenio Developer ** <http://invenio-software.org/>