Project

General

Profile

« Previous | Next » 

Revision 62363

prefer using the nsPrefix to access the datasource information rather than the dsId

View differences:

modules/unibi-data-collective-transformation-common/trunk/src/main/java/eu/dnetlib/data/collective/transformation/engine/SimpleTransformationEngine.java
214 214
		final String nsPrefix = xpath.evaluate("//*[local-name()='datasourceprefix']", root);
215 215

  
216 216
		final Datasource<?, ?, ?> ds;
217
		if (StringUtils.isNotBlank(dsId)) {
217
		if (StringUtils.isNotBlank(nsPrefix)) {
218
			ds = dsManager.getDsByNsPrefix(nsPrefix);
219
		} else if (StringUtils.isNotBlank(dsId)) { 
218 220
			ds = dsManager.getDs(dsId);
219
		} else if (StringUtils.isNotBlank(nsPrefix)) {
220
			ds = dsManager.getDsByNsPrefix(nsPrefix);
221 221
		} else {
222 222
			ds = null;
223 223
		}

Also available in: Unified diff