RM-5175_Complete_record_with_missing_metadata changes after review

This commit is contained in:
Sara Aspery
2017-06-12 16:42:05 +01:00
parent d98d3e9c69
commit 09e3766230
2 changed files with 4 additions and 22 deletions

View File

@@ -197,16 +197,12 @@ public class DeclareRecordAction extends RMActionExecuterAbstractBase
// check for missing mandatory metadata from custom aspect definitions
if (result)
{
QName aspect;
QName aspect = ASPECT_RECORD;
if (nodeRefType.equals(TYPE_NON_ELECTRONIC_DOCUMENT))
//if (nodeRefType.getLocalName()))
{
aspect = TYPE_NON_ELECTRONIC_DOCUMENT;
}
else
{
aspect = ASPECT_RECORD;
}
// get customAspectImpl
String localName = aspect.toPrefixString(getNamespaceService()).replace(":", "");
localName = MessageFormat.format("{0}CustomProperties", localName);