DS-828, Optionaly enable 'restore mode' when ingesting items va SWORD.

git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@6102 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
Scott Phillips
2011-03-01 22:11:14 +00:00
parent 4a86efeb8c
commit 9198c80139
2 changed files with 11 additions and 0 deletions

View File

@@ -78,6 +78,10 @@ public class SWORDMETSIngester implements SWORDIngester
PackageParameters params = new PackageParameters();
// Force package ingester to respect Collection workflows
params.setWorkflowEnabled(true);
// Should restore mode be enabled, i.e. keep existing handle?
if (ConfigurationManager.getBooleanProperty("sword.restore-mode.enable",false))
params.setRestoreModeEnabled(true);
// ingest the item from the temp file
DSpaceObject ingestedObject = pi.ingest(context, collection, depositFile, params, licence);

View File

@@ -2109,6 +2109,13 @@ sword.identify-version = true
#
sword.on-behalf-of.enable = true
# Should the sword server enable restore-mode when ingesting new
# packages. If this is enabled the item will be treated as a
# previously deleted item from the repository. If the item had
# previously been assigned a handle then that same handle will be
# restored to activity.
sword.restore-mode.enable = false
# Configure the plugins to process incoming packages. The form of this
# configuration is as per the Plugin Manager's Named Plugin documentation:
#