Project

General

Profile

« Previous | Next » 

Revision 61035

Added by Antonis Lempesis 5 months ago

setting metadataPrefix for FAIR guidelines

View differences:

modules/uoa-validator-service/trunk/src/main/java/eu/dnetlib/validator/service/impl/ValidatorManagerImpl.java
214 214
	}
215 215
	
216 216
	@Transactional(readOnly = false, propagation = Propagation.REQUIRED)
217
	public void submitJob(JobForValidation job) throws ValidatorException {
217
	public void  submitJob(JobForValidation job) throws ValidatorException {
218 218

  
219 219
		try {
220 220
			logger.info("Submiting validation job requested by user: " + job.getUserEmail());
......
247 247
					logger.debug("Chosen set: OpenAIRE For Cris");
248 248
					logger.debug("Setting METADATA_PREFIX to: oai_CERIF_openaire");
249 249
					job.setMetadataPrefix("oai_CERIF_openaire");
250
				} else if (job.getDesiredCompatibilityLevel().toLowerCase().matches("fair")) {
251
					logger.debug("Chosen set: FAIR guidelines");
252
					logger.debug("Setting METADATA_PREFIX to: oai_dc");
253
					job.setMetadataPrefix("oai_dc");
250 254
				} else {
251 255
					logger.error("Cannot set metadata prefx for " + job.getDesiredCompatibilityLevel() + " guidelines");
252 256
				}

Also available in: Unified diff