Thanks for answering this and your suggestions.  I will investigate.

-Jose

-----Original Message-----
From: Tim Donohue [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 02, 2007 3:03 PM
To: Jose Blanco
Cc: [email protected]
Subject: Re: [Dspace-tech] configuring submission

Hi Jose,

The quick answer is no, my patch doesn't provide any extra functionality 
regarding requiring metadata items or even grouping metadata items.

The main purpose of my configurable submission patch is to allow any 
DSpace administrators the ability to easily rearrange or remove existing 
"steps" in the submission process (just by editing an XML config file). 
  It also gives DSpace administrators the ability to create their own 
custom "steps" (provided they are technical enough to create their own 
user interface and Java processing code).

However, there are a few routes you could take to require those three 
fields:

1) The simple route: You could modify the config/input-forms.xml file 
(which controls the metadata input fields) to specify that all three of 
those metadata fields are required.   However, this is probably not the 
answer you are looking for, since I would imagine that some DSpace items 
may not have an "author" to begin with, so you cannot always require 
that field.

2) Another option:  You could create some custom javascript magic to 
ensure that a user has populated both a corresponding "affiliation" and 
"email" whenever they fill out the "author" field.  If they haven't, you 
can also highlight those empty fields using some javascript and ask them 
to fill them out. (This is assuming you can require all your submitters 
to use a javascript-enabled browser)

If you really felt energetic, you could also try and extend the existing 
"Describe" step functionality (and the input-forms.xml) to support this 
sort of metadata field "dependency".   But, off the top of my head, it 
sounds like something that may get complex (though I would imagine 
others using DSpace would be very interested in the functionality as well)

Perhaps others have better ideas of how to implement this?  Off the top 
of my head I don't believe Manakin will resolve this either.   But, if 
you go with building custom Javascript, that code should carry over 
relatively easily to Manakin.

- Tim

-- 

========================================
Tim Donohue
Research Programmer, Illinois Digital Environment for
Access to Learning and Scholarship (IDEALS)
135 Grainger Engineering Library
University of Illinois at Urbana-Champaign

email: [EMAIL PROTECTED]
web:   http://www.ideals.uiuc.edu
phone: (217) 333-4648
fax:   (217) 244-7764
========================================


Jose Blanco wrote:
> This question is for Tim Donohue.
> 
>  
> 
> Tim,
> 
>  
> 
> I'm looking for a way to group metadata items in the submission forms so 
> that they are required as a group.  In particular,
> 
> I would like the user to enter:
> 
>  
> 
> Author, affiliation, and email_of_author
> 
>  
> 
> As a group.  Each of these items would just be text the user enters, but 
> they must enter all three, or an error is reported.  Does your patch for 
> configuring submissions
> 
>  
> 
>
http://sourceforge.net/tracker/index.php?func=detail&aid=1691345&group_id=19
984&atid=319984 
>
<http://sourceforge.net/tracker/index.php?func=detail&aid=1691345&group_id=1
9984&atid=319984>
> 
>  
> 
> handle this, or perhaps this will be easy to do once Manakin is out?  Do 
> you know if there is a patch out there that supports?
> 
>  
> 
> Many thanks!
> 
>  
> 
> Jose
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech





-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to