merged/implemented cdm3.3 model adaptations
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / section / name / NameDetailElement.java
index 10e22c9144eec1411e2778fbad78f0f741aa3f37..8cba9f9f0ca9113660f1018db9968b96166a4ee8 100644 (file)
@@ -123,7 +123,7 @@ public class NameDetailElement extends AbstractIdentifiableEntityDetailElement<N
                NomenclaturalCode code = nonViralName.getNomenclaturalCode();
                if (code != null){
                        switch(nonViralName.getNomenclaturalCode()){
-                       case ICBN:
+                       case ICNAFP :
                                createBotanicalNameParts(formElement, nonViralName, style);
                                break;
                        case ICZN:
@@ -141,8 +141,8 @@ public class NameDetailElement extends AbstractIdentifiableEntityDetailElement<N
        private void createZoologicalNameParts(ICdmFormElement formElement, NonViralName nonViralName, int style){
                ZoologicalName zoologicalName = (ZoologicalName) nonViralName;
                text_breed = formFactory.createTextWithLabelElement(formElement, "Breed", zoologicalName.getBreed(), style);
-               text_publicationYear = formFactory.createIntegerTextWithLabelElement(formElement, "Publication Year", zoologicalName.getPublicationYear(), style);
-               text_originalPublicationYear = formFactory.createIntegerTextWithLabelElement(formElement, "Orig. Publication Year", zoologicalName.getOriginalPublicationYear(), style);
+               text_publicationYear = formFactory.createNumberTextWithLabelElement(formElement, "Publication Year", zoologicalName.getPublicationYear(), style);
+               text_originalPublicationYear = formFactory.createNumberTextWithLabelElement(formElement, "Orig. Publication Year", zoologicalName.getOriginalPublicationYear(), style);
        }
        
        private void createGenusOrUninomialControls(ICdmFormElement element, NonViralName nonViralName, int style){