Hello Tibor,
please adapt or add this patch if you think that could help others like
it helped me. It applies cleanly to current git sources.
Thanks,
Ferran
WebSubmit: capture stderr bibconvert messages
* After submitting a form, errors go silent unless captured.
---
modules/websubmit/lib/functions/Make_Record.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: cds-invenio/modules/websubmit/lib/functions/Make_Record.py
===================================================================
--- cds-invenio.orig/modules/websubmit/lib/functions/Make_Record.py 2009-11-18 15:18:52.000000000 +0100
+++ cds-invenio/modules/websubmit/lib/functions/Make_Record.py 2009-11-18 15:19:29.000000000 +0100
@@ -39,7 +39,7 @@
source = parameters['sourceTemplate'].replace(" ","")
create = parameters['createTemplate'].replace(" ","")
# We use bibconvert to create the xml record
- call_uploader_txt = "%s/bibconvert -l1 -d'%s' -Cs'%s/%s' -Ct'%s/%s' > %s/recmysql" % (CFG_BINDIR,curdir,CFG_WEBSUBMIT_BIBCONVERTCONFIGDIR,source,CFG_WEBSUBMIT_BIBCONVERTCONFIGDIR,create,curdir)
+ call_uploader_txt = "%s/bibconvert -l1 -d'%s' -Cs'%s/%s' -Ct'%s/%s' >%s/recmysql 2>%s/recmysql.err" % (CFG_BINDIR,curdir,CFG_WEBSUBMIT_BIBCONVERTCONFIGDIR,source,CFG_WEBSUBMIT_BIBCONVERTCONFIGDIR,create,curdir,curdir)
os.system(call_uploader_txt)
# Then we have to format this record (turn & into & and < into <
# After all we know nothing about the text entered by the users at submission time