host ::
přihlásit
SSTP5
Hledej
Přidej jednotlivé TEIP5
Přidej hromadně nahrané TEIP5
Personalizace
Vaše upozornění
Vaše košíky
Vaše vyhledávání
Nápověda
Administrativa
Konfigurace WebSubmit
Hlavní stránka
>
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_Photos
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 photos upload interface. Clone it, customize it and integrate it into your submission. Then add function 'Move_Photos_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. """ from invenio.websubmit_functions.Shared_Functions import ParamFromFile from invenio.websubmit_functions.Move_Photos_to_Storage import \ read_param_file, \ create_photos_manager_interface, \ get_session_id # Retrieve session id try: # User info is defined only in MBI/MPI actions... session_id = get_session_id(None, uid, user_info) except: session_id = get_session_id(req, uid, {}) # Retrieve context indir = curdir.split('/')[-3] doctype = curdir.split('/')[-2] access = curdir.split('/')[-1] # Get the record ID, if any sysno = ParamFromFile("%s/%s" % (curdir,'SN')).strip() """ Modify below the configuration of the photos manager interface. Note: `can_reorder_photos' parameter is not yet fully taken into consideration Documentation of the function is available at <http://localhost/admin/websubmit/websubmitadmin.py/functionedit?funcname=Move_Photos_to_Storage> """ text += create_photos_manager_interface(sysno, session_id, uid, doctype, indir, curdir, access, can_delete_photos=True, can_reorder_photos=True, can_upload_photos=True, editor_width=700, editor_height=400, initial_slider_value=100, max_slider_value=200, min_slider_value=80)