On 05.02.2014 09:23, Ferran Jorba wrote:

Hi!

As you can extract it from the curdir during submission, you could
probably just add a function to your websubmit workflows to add the Marc
field in question automagically right before the bibupload call.
[...]

Thanks for the inspiration!

De rien :)

 Thanks to git grep I've just found out that
'curdir' seems to be another magic value (like SuE or SN).

curdir refers to the directory where websubmit places your files.

In an example:

curdir ==
/cdsware/invenio/var/data/submit/storage/running/journal/1391587121_2681

where /cdsware/invenio/var/data/submit/storage/running is the base
(differs between submit and modify), "journal" the doctype (also stored
in /doctype/ file) and the funny number at the end the submission ID
which can also be found in the /access/ file.

/SN/  == recid
/SuE/ == mail of submitter
/rn/  == report number generated by Invenio (e.g. FZJ-2013-0001)
/act/ == SBI or MBI or ...
/sub/ == act + doctype (e.g. SBIjournal)

I think these are all the "magics".

  etc/bibconvert/config/DEMOART.tpl:curdir---<:curdir:>
  etc/bibconvert/config/DEMOARTcreate.tpl:FFT::REPL(EOL,)---<datafield  tag="FFT" ind1=" " ind2=" 
"><subfield code="a"><:curdir::curdir:>/files/DEMOART_FILE/<:DEMOART_FILE::DEMOART_...

I admit, we dropped bibconvert as we can't get repeatable fields to
work. So we based our websubmitssion on python and also do the necessary
conversion in pythonic functions.

HTH :)

--

Kind regards,

Alexander Wagner
Scientific Services / Scientific Publishing
Central Library
52425 Juelich

mail : [email protected]
phone: +49 2461 61-1586
Fax  : +49 2461 61-6103
http://www.fz-juelich.de/zb/wp


------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------

Reply via email to