Dear Devin,

On 03/15/2012 10:40 PM, Devin Bougie wrote:
After upgrading to v1.0.0, we're having trouble using the "Submit New
File" function.

The best would be to use the combo "Create_Upload_Files_Interface" +
"Move_Uploaded_Files_to_Storage" functions instead of "Upload_Files"
(which has been deprecated in v1.0.0, commit 7b3804d).

Instructions:

1) Replace any use of the "Upload_Files" function with
   "Create_Upload_Files_Interface"

2) Add function "Move_Uploaded_Files_to_Storage" at step 2 of your
   workflows (it will apply the modifications recorded by
   "Create_Upload_Files_Interface": the behaviour is a bit different
   than with "Upload_Files", which applied directly the modifications
   even if the user did abort the submission)

3) Optionally customize the parameters of functions
   "Create_Upload_Files_Interface" and "Move_Uploaded_Files_to_Storage"
   according to your needs. You might want to benefit from the
   increased flexibility over the use of "Upload_Files" here to tune
   the interface and behaviour the way you want. If you want to keep
   similar settings, set:

     - Create_Upload_Files_Interface parameters:
       - doctypes: Main=Main document|Additional=Additional Document
       - canDeleteDoctypes: *
       - canReviseDoctypes: *
       - canAddFormatDoctypes: *
       - canNameNewFiles: 0
       - keepDefault: 1
       - createRelatedFormats: 1

     - Move_Uploaded_Files_to_Storage parameters:
       - iconsize: (should already be the same value as before)
       - createIconDoctypes: *

    More information about the available parameters for these functions
    are accessible from the WebSubmit admin interface:

<http://edms.classe.cornell.edu/admin/websubmit/websubmitadmin.py/functionedit?funcname=Create_Upload_Files_Interface>

<http://edms.classe.cornell.edu/admin/websubmit/websubmitadmin.py/functionedit?funcname=Move_Uploaded_Files_to_Storage>


Alternative methods to deal with files in WebSubmit are also described
in the WebSubmit admin guide (Chapter 5. "File Management with
WebSubmit"):
<http://invenio-demo.cern.ch/help/admin/websubmit-admin-guide>

The option suggested above is further explained in section 5.3:
<http://invenio-demo.cern.ch/help/admin/websubmit-admin-guide#5.3>

You might want to take a look at a similar option described in section
5.4 allowing the use of the upload file interface right on the metadata
submission form:
<http://invenio-demo.cern.ch/help/admin/websubmit-admin-guide#5.4>

Upload_Files is the only WebSubmit function removed in release 1.0.0.
There are however additional functions that have been marked as
deprecated:
 * Add_Files.py (-> Use Move_Files_To_Storage or FFT)
 * Move_Files_Archive.py (-> Use Use Move_Files_To_Storage or FFT)
 * Format_Record.py (-> Not necessary)

Finally, still in the WebSubmit department, if you have been using
direct URLs to submissions using the "http://localhost/submit/sub";
scheme, you are advised to move to "http://locahost/submit/direct";
instead. It is however unlikely that you are making use of this
features (it has never been advertised) and admins would be alerted by
email if so. More documentation about this feature is coming in the
forthcoming release v1.1 (commit 75d5be5).

Best regards
--
Jerome Caffaro ** CERN Document Server ** <http://cds.cern.ch/>

Reply via email to