Project

General

Profile

« Previous | Next » 

Revision bb38665e

Added by Andreas Müller over 10 years ago

reintegrate cdmlib-app-3.3 branch into trunk

View differences:

cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/indexFungorum/IndexFungorumImportBase.java
38 38
import eu.etaxonomy.cdm.model.common.LSID;
39 39
import eu.etaxonomy.cdm.model.common.Marker;
40 40
import eu.etaxonomy.cdm.model.common.MarkerType;
41
import eu.etaxonomy.cdm.model.common.OriginalSourceType;
41 42
import eu.etaxonomy.cdm.model.common.TimePeriod;
42 43
import eu.etaxonomy.cdm.model.name.NonViralName;
43 44
import eu.etaxonomy.cdm.model.reference.Reference;
......
46 47
import eu.etaxonomy.cdm.model.taxon.Taxon;
47 48
import eu.etaxonomy.cdm.strategy.exceptions.StringNotParsableException;
48 49
import eu.etaxonomy.cdm.strategy.parser.NonViralNameParserImpl;
50
import eu.etaxonomy.cdm.strategy.parser.TimePeriodParser;
49 51

  
50 52
/**
51 53
 * @author a.mueller
......
353 355
			year = CdmUtils.concat(" ", year, "[" + yearOnPubl + "]");
354 356
		}
355 357
		if (year != null){
356
			ref.setDatePublished(TimePeriod.parseString(year));
358
			ref.setDatePublished(TimePeriodParser.parseString(year));
357 359
		}
358 360
		
359 361
		//preliminary, set protected titlecache as Generic Cache Generation with in references currently doesn't fully work yet
......
384 386
		Reference<?> sourceReference = state.getRelatedObject(NAMESPACE_REFERENCE, SOURCE_REFERENCE, Reference.class);
385 387
		//source
386 388
		String strId = (id == null ? null : String.valueOf(id));
387
		IdentifiableSource source = IdentifiableSource.NewInstance(strId, namespace, sourceReference, null);
389
		IdentifiableSource source = IdentifiableSource.NewInstance(OriginalSourceType.Import, strId, namespace, sourceReference, null);
388 390
		taxon.addSource(source);
389 391
		
390 392
		//no last action

Also available in: Unified diff