Project

General

Profile

« Previous | Next » 

Revision 48c5c17e

Added by Andreas Müller over 5 years ago

ref #6945 use E+M vocabulary for marker types

View differences:

app-import/src/main/java/eu/etaxonomy/cdm/io/berlinModel/in/BerlinModelCommonNamesImport.java
39 39
import eu.etaxonomy.cdm.model.common.Marker;
40 40
import eu.etaxonomy.cdm.model.common.MarkerType;
41 41
import eu.etaxonomy.cdm.model.common.Representation;
42
import eu.etaxonomy.cdm.model.common.TermType;
43
import eu.etaxonomy.cdm.model.common.TermVocabulary;
42 44
import eu.etaxonomy.cdm.model.description.CommonTaxonName;
43 45
import eu.etaxonomy.cdm.model.description.DescriptionElementSource;
44 46
import eu.etaxonomy.cdm.model.description.TaxonDescription;
......
369 371

  
370 372
				//status
371 373
				if (isNotBlank(status)){
372
					MarkerType recommendedMarkerType = getMarkerType( state, COMMONNAME_STATUS_RECOMMENDED_UUID, "recommended","If the common name has the status recommended (see also status 'synonym', if none of them is true the default status is 'unassessed')","recommended", null);
373
					MarkerType synonymMarkerType = getMarkerType( state, COMMONNAME_STATUS_SYNONYM_UUID, "synonym","If the common name has the status synonym (see also status 'recommended', if none of them is true the default status is 'unassessed')","synonym", null);
374
				    TermVocabulary<MarkerType> markerTypeVoc = getVocabulary(TermType.MarkerType, BerlinModelTransformer.uuidVocEMMarkerType,
375
				            "Euro+Med marker type vocabulary", "E+M marker types", null, null, false, MarkerType.COMPLETE());
376
				    MarkerType recommendedMarkerType = getMarkerType( state, COMMONNAME_STATUS_RECOMMENDED_UUID, "recommended","If the common name has the status recommended (see also status 'synonym', if none of them is true the default status is 'unassessed')",
377
				            "recommended", markerTypeVoc);
378
					MarkerType synonymMarkerType = getMarkerType( state, COMMONNAME_STATUS_SYNONYM_UUID, "synonym","If the common name has the status synonym (see also status 'recommended', if none of them is true the default status is 'unassessed')",
379
					        "synonym", markerTypeVoc);
374 380
                    for (CommonTaxonName commonTaxonName : commonTaxonNames){
375 381
                        Marker marker = null;
376 382
                        if (status.equals("recommended")){

Also available in: Unified diff