Edit WebSubmit Function

Main Menu

Enter Function Details:

Create_Upload_Files_Interface Function Details:
   
Function Name: Create_Upload_Files_Interface
Function Description:
Function Documentation:
List files for revisions.

You should use Move_Uploaded_Files_to_Storage.py function in your
submission to apply the changes performed by users with this
interface.

@param parameters:(dictionary) - must contain:

  + maxsize: the max size allowed for uploaded files

  + minsize: the max size allowed for uploaded files

  + doctypes: the list of doctypes (like 'Main' or 'Additional')
              and their description that users can choose from
              when adding new files.
               - When no value is provided, users cannot add new
                 file (they can only revise/delete/add format)
               - When a single value is given, it is used as
                 default doctype for all new documents
              Eg:
                main=Main document|additional=Figure, schema. etc
              ('=' separates doctype and description
               '|' separates each doctype/description group)

  + restrictions: the list of restrictions (like 'Restricted' or
                  'No Restriction') and their description that
                  users can choose from when adding/revising
                  files. Restrictions can then be configured at
                  the level of WebAccess.
                  - When no value is provided, no restriction is
                    applied
                  - When a single value is given, it is used as
                    default resctriction for all documents.
                  - The first value of the list is used as default
                    restriction if the user if not given the
                    choice of the restriction. CHOOSE THE ORDER!
                  Eg:
                    =No restriction|restr=Restricted
                  ('=' separates restriction and description
                  '|' separates each restriction/description group)

  + canDeleteDoctypes: the list of doctypes that users are
                       allowed to delete.
                       Eg:
                         Main|Additional
                       ('|' separated values)
                       Use '*' for all doctypes

  + canReviseDoctypes: the list of doctypes that users are
                       allowed to revise
                       Eg:
                         Main|Additional
                       ('|' separated values)
                       Use '*' for all doctypes

  + canDescribeDoctypes: the list of doctypes that users are
                        allowed to describe
                        Eg:
                          Main|Additional
                        ('|' separated values)
                        Use '*' for all doctypes

  + canCommentDoctypes: the list of doctypes that users are
                        allowed to comment
                        Eg:
                          Main|Additional
                        ('|' separated values)
                        Use '*' for all doctypes

  + canKeepDoctypes: the list of doctypes for which users can
                     choose to keep previous versions visible when
                     revising a file (i.e. 'Keep previous version'
                     checkbox). See also parameter 'keepDefault'.
                     Note that this parameter is ~ignored when
                     revising the attributes of a file (comment,
                     description) without uploading a new
                     file. See also parameter
                     Move_Uploaded_Files_to_Storage.forceFileRevision
                     Eg:
                       Main|Additional
                     ('|' separated values)
                     Use '*' for all doctypes


  + canAddFormatDoctypes: the list of doctypes for which users can
                          add new formats. If there is no value,
                          then no 'add format' link nor warning
                          about losing old formats are displayed.
                          Eg:
                            Main|Additional
                          ('|' separated values)
                          Use '*' for all doctypes

  + canRestrictDoctypes: the list of doctypes for which users can
                         choose the access restrictions when adding or
                         revising a file. If no value is given:
                         - no restriction is applied if none is defined
                           in the 'restrictions' parameter.
                         - else the *first* value of the 'restrictions'
                           parameter is used as default restriction.
                         Eg:
                           Main|Additional
                         ('|' separated values)
                         Use '*' for all doctypes

  + canRenameDoctypes: the list of doctypes that users are allowed
                       to rename (when revising)
                       Eg:
                         Main|Additional
                       ('|' separated values)
                       Use '*' for all doctypes

  + canNameNewFiles: if user can choose the name of the files they
                     upload (1) or not (0)

  + defaultFilenameDoctypes: Rename uploaded files to admin-chosen
                             values. List here the the files in
                             current submission directory that
                             contain the names to use for each doctype.
                             Eg:
                             Main=RN|Additional=additional_filename
                             ('=' separates doctype and file in curdir
                             '|' separates each doctype/file group).

                             If the same doctype is submitted
                             several times, a"-%i" suffix is added
                             to the name defined in the file.

                             The default filenames are overriden
                             by user-chosen names if you allow
                             'canNameNewFiles' or
                             'canRenameDoctypes'.

  + maxFilesDoctypes: the maximum number of files that users can
                      upload for each doctype.
                      Eg:
                        Main=1|Additional=2
                      ('|' separated values)

                      Do not specify the doctype here to have an
                      unlimited number of files for a given
                      doctype.

  + createRelatedFormats: if uploaded files get converted to
                          whatever format we can (1) or not (0)


  + deferRelatedFormatsCreation: if creation of related format is
                                 scheduled to be run later,
                                 offline (1, default) or
                                 immediately/online just after the
                                 user has uploaded the file
                                 (0). Setting immediate conversion
                                 enables workflows to process the
                                 created files in following
                                 functions, but "blocks" the user.

  + keepDefault: the default behaviour for keeping or not previous
                 version of files when users cannot choose (no
                 value in canKeepDoctypes): keep (1) or not (0)
                 Note that this parameter is ignored when revising
                 the attributes of a file (comment, description)
                 without uploading a new file. See also parameter
                 Move_Uploaded_Files_to_Storage.forceFileRevision

  + showLinks: if we display links to files (1) when possible or
               not (0)

  + fileLabel: the label for the file field

  + filenameLabel: the label for the file name field

  + descriptionLabel: the label for the description field

  + commentLabel: the label for the comments field

  + restrictionLabel: the label in front of the restrictions list

  + startDoc: the name of a file in curdir that contains some
              text/markup to be printed *before* the file revision
              box

  + endDoc: the name of a file in curdir that contains some
            text/markup to be printed *after* the file revision
            box
 

Parameters for Function Create_Upload_Files_Interface:

Parameter  
None

Add Parameter to Function Create_Upload_Files_Interface:
Add Parameter: Select a parameter to add to function:    -Or-  Enter a new parameter: