ref #6945 use E+M vocabulary for marker types
authorAndreas Müller <a.mueller@bgbm.org>
Sat, 2 Jun 2018 11:08:06 +0000 (13:08 +0200)
committerAndreas Müller <a.mueller@bgbm.org>
Sat, 2 Jun 2018 11:08:06 +0000 (13:08 +0200)
app-import/src/main/java/eu/etaxonomy/cdm/io/berlinModel/in/BerlinModelCommonNamesImport.java

index 78f3606cd582327c78510e946530f58620be36bf..c4fe568720059bc5b349de7d8b1c7f96247b69de 100644 (file)
@@ -39,6 +39,8 @@ import eu.etaxonomy.cdm.model.common.Language;
 import eu.etaxonomy.cdm.model.common.Marker;\r
 import eu.etaxonomy.cdm.model.common.MarkerType;\r
 import eu.etaxonomy.cdm.model.common.Representation;\r
 import eu.etaxonomy.cdm.model.common.Marker;\r
 import eu.etaxonomy.cdm.model.common.MarkerType;\r
 import eu.etaxonomy.cdm.model.common.Representation;\r
+import eu.etaxonomy.cdm.model.common.TermType;\r
+import eu.etaxonomy.cdm.model.common.TermVocabulary;\r
 import eu.etaxonomy.cdm.model.description.CommonTaxonName;\r
 import eu.etaxonomy.cdm.model.description.DescriptionElementSource;\r
 import eu.etaxonomy.cdm.model.description.TaxonDescription;\r
 import eu.etaxonomy.cdm.model.description.CommonTaxonName;\r
 import eu.etaxonomy.cdm.model.description.DescriptionElementSource;\r
 import eu.etaxonomy.cdm.model.description.TaxonDescription;\r
@@ -369,8 +371,12 @@ public class BerlinModelCommonNamesImport  extends BerlinModelImportBase {
 \r
                                //status\r
                                if (isNotBlank(status)){\r
 \r
                                //status\r
                                if (isNotBlank(status)){\r
-                                       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);\r
-                                       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);\r
+                                   TermVocabulary<MarkerType> markerTypeVoc = getVocabulary(TermType.MarkerType, BerlinModelTransformer.uuidVocEMMarkerType,\r
+                                           "Euro+Med marker type vocabulary", "E+M marker types", null, null, false, MarkerType.COMPLETE());\r
+                                   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')",\r
+                                           "recommended", markerTypeVoc);\r
+                                       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')",\r
+                                               "synonym", markerTypeVoc);\r
                     for (CommonTaxonName commonTaxonName : commonTaxonNames){\r
                         Marker marker = null;\r
                         if (status.equals("recommended")){\r
                     for (CommonTaxonName commonTaxonName : commonTaxonNames){\r
                         Marker marker = null;\r
                         if (status.equals("recommended")){\r