Re: [Dspace-tech] Repeating pairs of metadata fields
Hi Courtney, On 13/03/15 01:06, Courtney Earl Matthews wrote: We’re specifically interested in providing a way for the user to link their item (article) to their externally hosted dataset. I think in the short-term we’ll adopt the fixed list approach using the dc.identifier set-up as our example. For a fixed list of link types, that sounds like the best option to me. Would you share an example of the enhancement requests you mentioned? We’re using XMLUI too. Our group had a brief conversation about storing triples in bitstreams. I'm not sure the details are written down in a way I can easily copypaste, but this came up in the context of thesis submissions. There had been a number of requests from higher degree students to add various types of links to their thesis record -- off the top of my head, this included datasets, source code, geo data, audiovisual content hosted elsewhere, links to the research group's home page, etc. Sometimes there might be multiple links in the same category. This got us thinking that it would be nice to give students more freedom to add URLs to related content (presumably still subject to some sort of auditing/approval process by repository staff). And since there might be multiple links of the same type, in terms of user friendliness it would be good to have some way of distinguishing between them, so that end users know what's what. We never actually got around to working on this. However, I do have a working example of including content from an XML bitstream on the item's page. This is what we do for LERNZdb, a freshwater quality data repository; the item pages embed a Google map with markers for the data collection sites (eg http://lernzdb.its.waikato.ac.nz/handle/123456789/1140) and these coordinates come from an XML bitstream rather than from the item's metadata. (Never mind that we later added the geo coordinates to the item metadata for a different purpose, as you can see on the full item view -- the geo coordinates in the Google map don't know about those metadata values.) There is a complicating factor in our case: the repositories in question don't use the XMLUI submission process for theses, instead the theses are submitted using a standalone PHP application and come in via SWORD. So if we were to implement this, we probably would create the external links XML file in the PHP application. That said, I've written quite a few custom submission steps and I think it'd be pretty easy to write submission step code where the UI component lets users add a number of (type,description,link) triples and the processing component saves these to an XML bitstream and attaches it to the submission. https://wiki.duraspace.org/display/DSDOC5x/Submission+User+Interface#SubmissionUserInterface-CreatingnewSubmissionSteps 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
Re: [Dspace-tech] Repeating pairs of metadata fields
Hi Andrea, thanks for your response. We're specifically interested in providing a way for the user to link their item (article) to their externally hosted dataset. I think in the short-term we'll adopt the fixed list approach using the dc.identifier set-up as our example. Would you share an example of the enhancement requests you mentioned? We're using XMLUI too. Our group had a brief conversation about storing triples in bitstreams. Cheers, Courtney. From: Andrea Schweer [mailto:schw...@waikato.ac.nz] Sent: Monday, March 09, 2015 4:57 PM To: Courtney Earl Matthews; dspace-tech@lists.sourceforge.net Subject: Re: [Dspace-tech] Repeating pairs of metadata fields 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
Re: [Dspace-tech] Repeating pairs of metadata fields
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
[Dspace-tech] Repeating pairs of metadata fields
Hello all, 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. Thanks for your time, Courtney. Courtney Earl Matthews Digital Repository Librarian University of Waterloo Library (519) 888-4567 ext. 30185 courtney.e.matth...@uwaterloo.camailto:courtney.e.matth...@uwaterloo.ca -- 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