mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
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:
@@ -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);
|
||||
|
@@ -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:
|
||||
#
|
||||
|
Reference in New Issue
Block a user