mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
DS-828, When restore mode is enabled and a handle is not supplied it should be able to mint a new handle instead of failing.
git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@6461 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -1358,6 +1358,8 @@ public abstract class AbstractMETSIngester extends AbstractPackageIngester
|
||||
* override this method if your METS manifest specifies the handle in
|
||||
* another location.
|
||||
*
|
||||
* If no handle was found then null is returned.
|
||||
*
|
||||
* @param manifest
|
||||
* METS manifest
|
||||
* @returns handle as a string (or null, if not found)
|
||||
@@ -1374,11 +1376,6 @@ public abstract class AbstractMETSIngester extends AbstractPackageIngester
|
||||
// decode this URI (by removing the 'hdl:' prefix)
|
||||
String handle = decodeHandleURN(handleURI);
|
||||
|
||||
if (handle == null || handle.length() == 0)
|
||||
{
|
||||
throw new PackageValidationException(
|
||||
"The DSpace Object handle required to ingest this package could not be resolved in manifest. The <mets OBJID='hdl:xxxx'> is missing.");
|
||||
}
|
||||
|
||||
return handle;
|
||||
}
|
||||
|
Reference in New Issue
Block a user