mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
DS-1879 Do not require ADMID for bundles in METS
This commit is contained in:
@@ -844,13 +844,6 @@ public abstract class AbstractMETSIngester extends AbstractPackageIngester
|
||||
{
|
||||
Element mfile = mi.next();
|
||||
|
||||
String mfileGrp = mfile.getAttributeValue("ADMID");
|
||||
if (mfileGrp == null)
|
||||
{
|
||||
throw new PackageValidationException(
|
||||
"Invalid METS Manifest: file element without ID attribute.");
|
||||
}
|
||||
|
||||
String bundleName = METSManifest.getBundleName(mfile, false);
|
||||
|
||||
Bundle bundle;
|
||||
@@ -864,7 +857,18 @@ public abstract class AbstractMETSIngester extends AbstractPackageIngester
|
||||
bundle = item.createBundle(bundleName);
|
||||
}
|
||||
|
||||
manifest.crosswalkBundle(context, params, bundle, mfileGrp,mdRefCallback);
|
||||
String mfileGrp = mfile.getAttributeValue("ADMID");
|
||||
if (mfileGrp != null)
|
||||
{
|
||||
manifest.crosswalkBundle(context, params, bundle, mfileGrp,mdRefCallback);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (log.isDebugEnabled())
|
||||
{
|
||||
log.debug("Ingesting bundle with no ADMID, not crosswalking bundle metadata");
|
||||
}
|
||||
}
|
||||
|
||||
bundle.update();
|
||||
}// end for each manifest file
|
||||
|
Reference in New Issue
Block a user