On 11.02.2014 15:37, Ferran Jorba wrote:
Hi!
[...]
/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".
It turns out that I couldn't make 'curdir' nor 'sub' to appear in my
records, but 'doctype', the obvious choice that I overlooked, works!
You can update your magic list.
Oh, did I specify doctype only as act+doctype? Sorry.
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.
Interesting. I can make repeatable fields work using the *, as
documented in
http://cdsweb.cern.ch/help/admin/bibconvert-admin-guide#C.1.
Acutally, I'm no expert in websumbit, but I remember that Tomek ran into
some issue there. I understood, that some point was solved for authors,
but not in a way we could reuse it. But as Tomek did all that including
the design I didn't bother to much. And one has probably to keep in mind
that acutally websubmit was one of the earliest things we need to do, so
back then our knowledge of invenio was even lower than today ;) Having
said this, I only know the final result which is without bibconvert. And
I'm not sure that (by chance or by need) that this was a wrong decision.
However,
bibconvert falls short, and we end up enriching the records using
Python. I'll think about your strategy, that is, using Python from the
ground up.
If it is of interest to you, you could probably just reuse our stuff. I
don't know if it already made it into Atlantis. I know that Tomek sent
the necessary stuff to CERN.
Mainly, Tomeks code reads a large config file defining fields and
odering on the pages, and the backend as such is quite generic and also
only a hand full of functions. Or in other words: hgfs websubmit is
easily portable. One adds another level of complexity however if one
wants all our fancy importers and javascripts as well. This is
adoptable, but it requires some work due to our heavy use of authorities
and especially the importers consist of conde which is up to a decade
old perl.
--
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
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------