Hello Alexander,

>>>> 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
>> [...]
>>
>> I see.  My way of extracting those equivalences is in batch every night,
>> using a somewhat less crude version of the script I posted to the list a
>> while ago:
>>
>>   https://www.mail-archive.com/[email protected]/msg00596.html
>>
>> But in a new workflow I need to know it in a more realtime fashion.
>
> 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!  Thanks to git grep I've just found out that
'curdir' seems to be another magic value (like SuE or SN).  

 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'll try to add this value to some random local Marc subfield to see
what value it gives me.

Thanks again,

Ferran


Reply via email to