On 04.02.2014 15:59, Ferran Jorba wrote:

Hi!

there are a few magic values in the websubmit module, like SuE
(submitter email) or SN (recid).  Most of the other values come straight
from the defined elements and the createTemplate and the sourceTemplate
templates.

However, now I need to know the doctype (that is, the webform id) of a
record after it has been submitted.

Which is the correct way of getting this value, other than peeking into
the directory name of the file under
$INSTALL_DIR/var/data/submit/storage/done/running/?

I fear this is the only way, but you need to know the submission ID then
which might be equally complex to fiddle out.

That's why we acutally store submission id as well as submission doctype
in Marc along with the record. We need this for this fancy "Modify this
record" link, we offer in our HGF instances, especially as a record in
our language can have more than one doctype. (Proceedings articles
published in a journal eg.)

We use something like this:

3367_ $0PUB:(DE-HGF)11
      $2PUB:(DE-HGF)
      $aDissertation / PhD Thesis
      $bphd
      $mphd
      $s1391525382_32400

$b/$m specifying the websubmit doctype, $s the submission ID. You see
some history here: we could get rid of $b/$m by $0 if we rename the
doctypes in websubmit. Something we have on the list for some time as
finding "real names" for doctypes is plain ugly. Well. The Todo is
longer than the time you have ;)

--

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