Revision 10438
Added by Jing Tao about 7 years ago
src/edu/ucsb/nceas/metacat/dataone/SystemMetadataFactory.java | ||
---|---|---|
597 | 597 |
SystemMetadata resourceMapObsoletesSystemMetadata = HazelcastService.getInstance().getSystemMetadataMap().get(resourceMapObsoletes); |
598 | 598 |
if (resourceMapObsoletesSystemMetadata != null) { |
599 | 599 |
resourceMapObsoletesSystemMetadata.setObsoletedBy(resourceMapId); |
600 |
resourceMapObsoletesSystemMetadata.setArchived(true); |
|
600 |
//resourceMapObsoletesSystemMetadata.setArchived(true);
|
|
601 | 601 |
HazelcastService.getInstance().getSystemMetadataMap().put(resourceMapObsoletes, resourceMapObsoletesSystemMetadata); |
602 | 602 |
} |
603 | 603 |
} |
... | ... | |
608 | 608 |
Identifier resourceMapObsoletedBy = new Identifier(); |
609 | 609 |
resourceMapObsoletedBy.setValue(RESOURCE_MAP_PREFIX + obsoletedByLocalId); |
610 | 610 |
resourceMapSysMeta.setObsoletedBy(resourceMapObsoletedBy); |
611 |
resourceMapSysMeta.setArchived(true); |
|
611 |
//resourceMapSysMeta.setArchived(true);
|
|
612 | 612 |
SystemMetadata resourceMapObsoletedBySystemMetadata = HazelcastService.getInstance().getSystemMetadataMap().get(resourceMapObsoletedBy); |
613 | 613 |
if (resourceMapObsoletedBySystemMetadata != null) { |
614 | 614 |
resourceMapObsoletedBySystemMetadata.setObsoletes(resourceMapId); |
Also available in: Unified diff
Don't set archive false in the system metadata when a resource map is obsoleted.