Project

General

Profile

« Previous | Next » 

Revision 27716

Not using "patch" property anymore.

View differences:

modules/dnet-oai-store-service/trunk/src/main/java/eu/dnetlib/data/oai/store/mongo/MongoPublisherStore.java
65 65
	 */
66 66
	private String idNamespace;
67 67

  
68
	/**
69
	 * True if we want to patch the record according to the Openaire schema at insertion/update time. FIXME: remove this as soon as the
70
	 * imported records are correclty generated as expected by the schema.
71
	 */
72
	private boolean patch = false;
73

  
74 68
	@Override
75 69
	public RecordInfo getRecord(final String recordId) {
76 70
		DBObject query = new BasicDBObject(OAIConfigurationReader.ID_FIELD, recordId);
......
594 588
		this.mongoFields = mongoFields;
595 589
	}
596 590

  
597
	public boolean isPatch() {
598
		return patch;
599
	}
600

  
601
	public void setPatch(final boolean patch) {
602
		this.patch = patch;
603
	}
604

  
605 591
}
modules/dnet-oai-store-service/trunk/src/main/java/eu/dnetlib/data/oai/store/mongo/MongoPublisherStoreDAO.java
148 148
				this.configuration.getFields(mdFormat, mdInterpreation, mdLayout), queryParser, recordInfoGenerator, this.configuration.getIdScheme(),
149 149
				this.configuration.getIdNamespace(), this.metadataExtractor, this.recordChangeDetector);
150 150
		store.setMongoSetCollection(mongoSetCollection);
151
		store.setPatch(patch);
152 151
		return store;
153 152
	}
154 153

  

Also available in: Unified diff