Revision 6451
Added by ben leinfelder over 12 years ago
SystemMetadataMap.java | ||
---|---|---|
41 | 41 |
public void store(Identifier pid, SystemMetadata sm) { |
42 | 42 |
try { |
43 | 43 |
//System.out.println("Storing System Metadata to store: " + pid.getValue()); |
44 |
if (!IdentifierManager.getInstance().identifierExists(pid.getValue())) {
|
|
44 |
if (!IdentifierManager.getInstance().systemMetadataExists(pid.getValue())) {
|
|
45 | 45 |
IdentifierManager.getInstance().createSystemMetadata(sm); |
46 | 46 |
} else { |
47 | 47 |
IdentifierManager.getInstance().updateSystemMetadata(sm); |
Also available in: Unified diff
check if system metadata exists rather than just the id mapping (before creating the entry)