Hello Samuele,

you're right. Bibupload -ri is not really efficient. Usually I extract all the 
Marc fields, make the changes and run bibupload -ri. In this particular case, I 
want to move 8564_ fields to FFT and remove 930__*. Thus based on your 
suggestion I tried this example:

<record>
  <controlfield tag="001">29372</controlfield>
  <datafield tag="856" ind1="4" ind2="">
  </datafield>

  <datafield tag="930" ind1="" ind2="a">
  </datafield>

  <datafield tag="FFT" ind1="" ind2="">
    <subfield 
code="a">http://doc.rero.ch/lm.php?url=1000,10,32,20120525130653-PJ/BPUN_1RD186.pdf</subfield>
    <subfield code="x">/tmp/BPUN_1RD186.jpg</subfield>
    <subfield code="d">Texte intégral</subfield>
    <subfield code="r">TOTO</subfield>
    <subfield code="n">BPUN_1RD186.pdf</subfield>
  </datafield>

</record>

which did the job after bibupload -c, except the restriction.

Regards,

-- Johnny


Le 5 juin 2012 à 21:06, Samuele Kaplun a écrit :

> 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/>
> 

Reply via email to