[Dspace-tech] disabling item submission's forced file upload

2012-11-20 Thread Kevin Gunn
Hi,

A requirement for my organisation is to not force submitters to upload a 
file/bitstream. I have not been able to find any configuration for this 
feature. I tried modifying 
org.dspace.app.xmlui.aspect.submission.submit.UploadStep's setup method with 
the following, but the result of this is you still can't navigate away from the 
file upload form, and there's no message explaining why.

...
//file/bitstream is not mandatory for my organisation
file.setRequired(false);
/*
file.setRequired();
//if no files found error was thrown by processing class, display 
it!
if (this.errorFlag == 
org.dspace.submit.step.UploadStep.STATUS_NO_FILES_ERROR) {
file.addError(T_file_error);
}
*/
...

Can anyone provide information on this forced file upload feature?

Cheers
Kevin

Kevin Gunn
Database Programmer and Instrument Technician
Australian Institute of Marine Science
Cape Ferguson Townsville Qld Aust. 4810
+61 7 47534305
k.g...@aims.gov.au
www.aims.gov.au



--  

The information contained within this transmission is for the
use of the intended recipient only and may contain confidential
and/or legally privileged material and/or material the subject
of copyright and/or personal information and/or sensitive
information that is subject to the Privacy Act 1988. Any review,
re-transmission, disclosure, dissemination or other use of, or
taking of any action in reliance upon, this information by
persons or entities other than the intended recipient is
prohibited. If you have received this email in error please
notify the AIMS Privacy Officer on (07) 4753  and delete
all copies of this transmission together with any attachments.

--
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] disabling item submission's forced file upload

2012-11-20 Thread helix84
Hi Kevin,

no code change is necessary. Just set

webui.submit.upload.required = true

in dspace.cfg.


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

--
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] disabling item submission's forced file upload

2012-11-21 Thread Kevin Gunn
Thanks.

-Original Message-
From: ivan.ma...@gmail.com [mailto:ivan.ma...@gmail.com] On Behalf Of helix84
Sent: Wednesday, 21 November 2012 5:03 PM
To: Kevin Gunn
Cc: dspace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] disabling item submission's forced file upload

Hi Kevin,

no code change is necessary. Just set

webui.submit.upload.required = true

in dspace.cfg.


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette 
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette



--  

The information contained within this transmission is for the
use of the intended recipient only and may contain confidential
and/or legally privileged material and/or material the subject
of copyright and/or personal information and/or sensitive
information that is subject to the Privacy Act 1988. Any review,
re-transmission, disclosure, dissemination or other use of, or
taking of any action in reliance upon, this information by
persons or entities other than the intended recipient is
prohibited. If you have received this email in error please
notify the AIMS Privacy Officer on (07) 4753  and delete
all copies of this transmission together with any attachments.

--
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech