Feature #6468

use Collection instead of label for name of new transfer in Sword API

Added by Justin Simpson over 7 years ago. Updated about 7 years ago.

Status:NewStart date:03/18/2014
Priority:HighDue date:
Assignee:Mike Cantelon% Done:

0%

Category:Sword API
Target version:-
Sponsored:Yes Requires documentation:
Pull Request:

Description

When generating a name for a new transfer being created through the Sword API, use the collection name (as defined in the xpath below), and add an integer at the end. Requires storing the collection name in the database, and incrementing the integer with each new transfer created.

- To get the collection from the METS file, if the object has its RELS-EXT as inline XML, this xpath will grab it:

substring-after(/METS:mets/METS:amdSec[@ID="RELS-EXT"]/METS:techMD[@ID="RELS-EXT.0"]/METS:mdWrap/METS:xmlData/rdf:RDF/rdf:Description/*[self::fedora:isMemberOfCollection | self::fedora:isMemberOf]/@rdf:resource, 'info:fedora/')

History

#1 Updated by Justin Simpson over 7 years ago

  • Target version changed from 0.3.0 to 0.4.0

#2 Updated by Justin Simpson over 7 years ago

  • Target version changed from 0.4.0 to 0.5.0

#3 Updated by Sarah Romkey about 7 years ago

  • Target version changed from 0.5.0 to 0.6.0

#4 Updated by Justin Simpson about 7 years ago

  • Target version deleted (0.6.0)

Also available in: Atom PDF