Re: [Dspace-tech] Document Type Based Submission - Missing type-bind definition in input-forms.dtd?

2013-02-15 Thread Ying Jin
Hi all,

I checked out the DSpace from github branch dspace-3_x. It seems the  
type-bind definition is missing in input-forms.dtd.

I agree with Joachim that the type-bind lack the strategy to define  
required fields for different document types. Also, we would like a  
function to define a field type-bind all types except type A. Right  
now, you probably have to list all types except type A. If you have 20  
item types, that's quite annoying.

Ying

On Jan 16, 2013, at 3:48 AM, Joachim Bingel wrote:

 Hi all,

 I would like to tailor the metadata input forms during item submission
 to the respective item/document type. I know this can be done by using
 the type-bind tag in the input-forms.xml, but this does not give me
 control over which metadata fields are *required* for which item type,
 right?

 For instance, metadata field X should be required for item type A,
 optional for type B, and unavailable for type C. I have some 20 item
 types and 25 distinct metadata fields. I run DSpace 3.0 with the  
 XMLUI.

 Any ideas?

 Joachim

 -- 
 Joachim Bingel
 Institut für Deutsche Sprache, Zentrale Forschung
 R5, 6-13, 68161 Mannheim
 +49 - (0)621-1581-456 | http://www.ids-mannheim.de


 --
 Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript,  
 jQuery
 and much more. Keep your Java skills current with LearnJavaNow -
 200+ hours of step-by-step video tutorials by Java experts.
 SALE $49.99 this month only -- learn more at:
 http://p.sf.net/sfu/learnmore_122612
 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech
 List Etiquette: 
 https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette



--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] Document Type Based Submission - Missing type-bind definition in input-forms.dtd?

2013-02-15 Thread Joachim Bingel
Hi Ying,

actually, the type-bind element *does* give us the opportunity to make 
fields required for certain types and optional for others! I found this 
out just after posting the question you cited. For a specific metadata 
field, just have two distinct entries in your input-forms.xml, one 
specifying a required element and the other leaving it blank. Like this:

# Element X - required
...
requiredPlease enter a valuerequired/
type-binddocTypeAtype-bind/

# Element X - not required
...
requiredrequired/
type-binddocTypeB, docTypeCtype-bind/


Best,
Joachim

On 02/15/2013 05:28 PM, Ying Jin wrote:
 Hi all,

 I checked out the DSpace from github branch dspace-3_x. It seems the 
 type-bind definition is missing in input-forms.dtd.

 I agree with Joachim that the type-bind lack the strategy to define 
 required fields for different document types. Also, we would like a 
 function to define a field type-bind all types except type A. Right 
 now, you probably have to list all types except type A. If you have 20 
 item types, that's quite annoying.

 Ying

 On Jan 16, 2013, at 3:48 AM, Joachim Bingel wrote:

 Hi all,

 I would like to tailor the metadata input forms during item submission
 to the respective item/document type. I know this can be done by using
 the type-bind tag in the input-forms.xml, but this does not give me
 control over which metadata fields are *required* for which item type,
 right?

 For instance, metadata field X should be required for item type A,
 optional for type B, and unavailable for type C. I have some 20 item
 types and 25 distinct metadata fields. I run DSpace 3.0 with the XMLUI.

 Any ideas?

 Joachim

 -- 
 Joachim Bingel
 Institut für Deutsche Sprache, Zentrale Forschung
 R5, 6-13, 68161 Mannheim
 +49 - (0)621-1581-456 | http://www.ids-mannheim.de


 --
  

 Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
 and much more. Keep your Java skills current with LearnJavaNow -
 200+ hours of step-by-step video tutorials by Java experts.
 SALE $49.99 this month only -- learn more at:
 http://p.sf.net/sfu/learnmore_122612
 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech
 List Etiquette: 
 https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette




--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette