Hi Courtney,

On 10/03/15 07:57, Courtney Earl Matthews wrote:
Does anyone have experience creating pairs of repeatable metadata fields within the input-forms.xml? Alternatives?

 

I would like to enable the user to enter the name of a related resource paired with its URI (dc.relation, dc.relation.uri) and then repeat as needed.


The DSpace metadata model doesn't let you associate "split" metadata like that.

If the names of your related resources are a fixed list (eg Source Code, Dataset) then you could create custom metadata fields, eg
uw.relation.sourcecode
uw.relation.dataset
...

and set this up in input-forms the same way as dc.identifier is currently set up in the stock DSpace input forms: https://github.com/DSpace/DSpace/blob/dspace-5.1/dspace/config/input-forms.xml#L120 and with the list of possible names set up as value pairs: https://github.com/DSpace/DSpace/blob/dspace-5.1/dspace/config/input-forms.xml#L236

If you want users to enter a free-text description of the related resource, it gets much trickier. This is actually on a list of enhancement requests for some of "my" repositories; the request there was for triples (type of link from set of fixed options, optional free-text description, URL). I've been thinking of writing a custom submission step that stores these triples in an XML bitstream attached to the item; since we're using XMLUI, we can then read in that bitstream from the XSL that generates the item page and add the links to the page together with their description and type.

You could cheat and as your users to enter them as eg
name|link
and then process that as required in your theme code -- it's a bit of an ugly hack but depending on whether you do self-submission or mediated submission, it could work?

cheers,
Andrea

-- 
Dr Andrea Schweer
IRR Technical Specialist, ITS Information Systems
The University of Waikato, Hamilton, New Zealand


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
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

Reply via email to