Revision 288cde13
Added by Katja Luther over 6 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/NameDetailElement.java | ||
---|---|---|
179 | 179 |
} |
180 | 180 |
|
181 | 181 |
private void createInfragenerericEpithetControls(ICdmFormElement element, NonViralName nonViralName, int style){ |
182 |
if((nonViralName.getRank() != null && nonViralName.getRank().isLower(Rank.GENUS())) && !nonViralName.getRank().isLower(Rank.SPECIES())){ |
|
183 |
text_infragenericEpithet = formFactory.createTextWithLabelElement(element, "Infrageneric Epithet", nonViralName.getInfraGenericEpithet(), style); |
|
182 |
if (nonViralName.getNomenclaturalCode().equals(NomenclaturalCode.ICZN)){ |
|
183 |
if(nonViralName.getRank() != null && nonViralName.getRank().isLower(Rank.GENUS()) ){ |
|
184 |
text_infragenericEpithet = formFactory.createTextWithLabelElement(element, "Infrageneric Epithet", nonViralName.getInfraGenericEpithet(), style); |
|
185 |
} |
|
186 |
} else{ |
|
187 |
if((nonViralName.getRank() != null && nonViralName.getRank().isLower(Rank.GENUS())) && !nonViralName.getRank().isLower(Rank.SPECIES()) && !nonViralName.getRank().isSpeciesAggregate()){ |
|
188 |
text_infragenericEpithet = formFactory.createTextWithLabelElement(element, "Infrageneric Epithet", nonViralName.getInfraGenericEpithet(), style); |
|
189 |
} |
|
184 | 190 |
} |
185 | 191 |
} |
186 | 192 |
|
Also available in: Unified diff
fix #5874: display of infrageneric epithet are different for zoological and botanical names