Project

General

Profile

« Previous | Next » 

Revision 7045

check whether mapping (

View differences:

ReplicationService.java
525 525
							new ByteArrayInputStream(systemMetadataXML.getBytes("UTF-8")));
526 526
				// need the guid-to-docid mapping
527 527
				boolean mappingExists = true;
528
		      	mappingExists = IdentifierManager.getInstance().identifierExists(sysMeta.getIdentifier().getValue());
528
		      	mappingExists = IdentifierManager.getInstance().mappingExists(sysMeta.getIdentifier().getValue());
529 529
		      	if (!mappingExists) {
530 530
		      		IdentifierManager.getInstance().createMapping(sysMeta.getIdentifier().getValue(), docid);
531 531
		      	}
......
802 802
	      	  
803 803
	      	  // need the guid-to-docid mapping
804 804
	      	  boolean mappingExists = true;
805
	      	  mappingExists = IdentifierManager.getInstance().identifierExists(sysMeta.getIdentifier().getValue());
805
	      	  mappingExists = IdentifierManager.getInstance().mappingExists(sysMeta.getIdentifier().getValue());
806 806
	      	  if (!mappingExists) {
807 807
	      		  IdentifierManager.getInstance().createMapping(sysMeta.getIdentifier().getValue(), docid);
808 808
	      	  }

Also available in: Unified diff