guest ::
login
SSTP5
Search
Submit jednotlivé TEIP5
Submit hromadně nahrané TEIP5
Personalize
Your alerts
Your baskets
Your searches
Help
Administration
Konfigurace WebSubmit
Home
>
Admin Area
> Edit WebSubmit Element
Edit WebSubmit Element
Main Menu
0.
Show all
1.
Available Document Types
2.
Add New Document Type
3.
Remove Document Type
4.
Available Actions
5.
Available Checks
6.
Available Elements
7.
Available Functions
8.
Organise Main Page
9.
Guide
Element Details:
Element Preview:
Cannot Display Response Element - See Element Description
Enter Element Details:
Element Name:
Upload_Files
Modification Text:
Element Type:
Select:
User Defined Input
File Input
Hidden Input
Text Input
Response
Select Box
Text Area Element
Marc Code:
Size
(text elements)
:
No. Rows
(textarea elements)
:
No. Columns
(textarea elements)
:
Maximum Length
(text elements)
:
Value
(text/hidden elements)
:
Element Description
(e.g. user-defined elements)
:
""" This is an example of element that creates a file upload interface. Clone it, customize it and integrate it into your submission. Then add function 'Move_Uploaded_Files_to_Storage' to your submission functions list, in order for files uploaded with this interface to be attached to the record. More information in the WebSubmit admin guide. """ import os from invenio.bibdocfile_managedocfiles import create_file_upload_interface from invenio.websubmit_functions.Shared_Functions import ParamFromFile indir = ParamFromFile(os.path.join(curdir, 'indir')) doctype = ParamFromFile(os.path.join(curdir, 'doctype')) access = ParamFromFile(os.path.join(curdir, 'access')) try: sysno = int(ParamFromFile(os.path.join(curdir, 'SN')).strip()) except: sysno = -1 ln = ParamFromFile(os.path.join(curdir, 'ln')) """ Run the following to get the list of parameters of function 'create_file_upload_interface': echo -e 'from invenio.bibdocfile_managedocfiles import create_file_upload_interface as f\nprint f.__doc__' | python """ text = create_file_upload_interface(recid=sysno, print_outside_form_tag=False, include_headers=True, ln=ln, doctypes_and_desc=[('main','Main document'), ('additional','Figure, schema, etc.')], can_revise_doctypes=['*'], can_describe_doctypes=['main'], can_delete_doctypes=['additional'], can_rename_doctypes=['main'], sbm_indir=indir, sbm_doctype=doctype, sbm_access=access)[1]