Project

General

Profile

« Previous | Next » 

Revision 6451

check if system metadata exists rather than just the id mapping (before creating the entry)

View differences:

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