Revision 7123
Added by ben leinfelder almost 13 years ago
src/edu/ucsb/nceas/metacat/dataone/SystemMetadataFactory.java | ||
---|---|---|
618 | 618 |
SystemMetadata sm = null; |
619 | 619 |
|
620 | 620 |
//generate required system metadata fields from the document |
621 |
sm = SystemMetadataFactory.createSystemMetadata(localId, includeOre, downloadData); |
|
622 |
|
|
621 |
try { |
|
622 |
sm = SystemMetadataFactory.createSystemMetadata(localId, includeOre, downloadData); |
|
623 |
} catch (Exception e) { |
|
624 |
logMetacat.error("Could not create/process system metadata for docid: " + localId, e); |
|
625 |
continue; |
|
626 |
} |
|
627 |
|
|
623 | 628 |
//insert the systemmetadata object or just update it as needed |
624 | 629 |
boolean exists = IdentifierManager.getInstance().systemMetadataExists(sm.getIdentifier().getValue()); |
625 | 630 |
if (!exists) { |
Also available in: Unified diff
catch errors for each localid we are processing so that they do do prevent other ids from having ORE content generated