Revision 6402
Added by Chris Jones over 13 years ago
src/edu/ucsb/nceas/metacat/dataone/D1NodeService.java | ||
---|---|---|
674 | 674 |
|
675 | 675 |
try { |
676 | 676 |
objectFormat = ObjectFormatCache.getInstance().getFormat(sysmeta.getFmtid()); |
677 |
isScienceMetadata = objectFormat.isScienceMetadata(); |
|
677 |
if ( objectFormat.getFormatType() == "METADATA" ) { |
|
678 |
isScienceMetadata = true; |
|
679 |
|
|
680 |
} |
|
678 | 681 |
|
679 | 682 |
} catch (InvalidRequest e) { |
680 | 683 |
logMetacat.debug("There was a problem determining if the object identified by" + |
Also available in: Unified diff
Catch D1nodeService up to the DataONE 0.6.4 schema where there is no ObjectFormat.isScienceMetadata() method, but rather ObjectFormat.getFormatType() where type is currently one of 'DATA, 'METADATA', or 'RESOURCE'.