Custom ingesters for dspace that affiliates a given item with a sequence of collections and adds custom metadata (defined within DSpace) to the Item being deposited.
In order to use this Ingester, please do the following:
-
Add this module as a dependency of the Additions module in the main DSpace project:
4.0.0 org.dspace.modules additions ... ... mx.ecosur.infonomia.dspace AffiliatingIngester 1.0-SNAPSHOT -
Modify the swordv2-server.cfg conatined in the $DSPACE_HOME/config/modules directory:
change:
plugin.single.org.dspace.sword2.SwordEntryIngester = \
org.dspace.sword2.SimpleDCEntryIngester
to:
plugin.single.org.dspace.sword2.SwordEntryIngester = \
mx.ecosur.infonomia.dspace.SwordAffiliatingIngester
-
Rebuild DSpace from source and redeploy with the update goal:
$ ant update
-
Post affilations to the server with a user with submitter authorization to both collections, using the SE-IRI for the Item and with the following XML as part of metadata update as defined int the Swordv2 specification:
<atom:entry xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/terms" xmlns:mx="http://www.ecosur.mx/swordv2"> mx:affiliate <mx:collection name="Collection2"/> </mx:affiliate> </atom:entry>
You can list as many collections by name in the XML above as you would like to affiliate the item with. Items will be affiliated only one time per collection (no duplicates). Non-existant collections will simply be ignored.
- Metadata
Custom metadata can be added to the Atom entry posted to the main SwordServer by using this custom ingester. Simply use the dublin core xmlns to properly post data, as explained in the SwordV2 documentation. For other kinds of metadata, such as marc, use the "element" attribute for xml terms in order to affiliate non-parseable element names (such as numbers, "260", as in marc). The ingester will pickup such metadata, compare the namespace against the registered namespaces within DSpace, and add the item.
Note: use of extended metadata requires the application of pull-request 230 to your local DSpace installation [DSpace/DSpace#230].