Revision 4bae0768
Added by Andreas Kohlbecker over 5 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/view/name/TaxonNamePopupEditor.java | ||
---|---|---|
141 | 141 |
|
142 | 142 |
private int genusOrUninomialRow; |
143 | 143 |
|
144 |
private OrthographicCorrectionReferenceValidator orthographicCorrectionValidator; |
|
145 |
|
|
144 | 146 |
/** |
145 | 147 |
* By default AnnotationType.EDITORIAL() is enabled. |
146 | 148 |
* |
... | ... | |
832 | 834 |
exCombinationAuthorshipField.setVisible(withValidationSection && isInferredExCombinationAuthorship != null && !isInferredExCombinationAuthorship); |
833 | 835 |
|
834 | 836 |
orthographicVariantField.setVisible(withOrthographicCorrectionSection); |
835 |
|
|
836 |
// if(taxonName != null){ |
|
837 |
// if(modesActive.contains(TaxonNamePopupEditorMode.AUTOFILL_AUTHORSHIP_DATA)){ |
|
838 |
// } |
|
839 |
// } |
|
837 |
if(withOrthographicCorrectionSection){ |
|
838 |
orthographicCorrectionValidator = new OrthographicCorrectionReferenceValidator(nomReferenceCombobox); |
|
839 |
orthographicVariantField.addValidator(orthographicCorrectionValidator); |
|
840 |
} else { |
|
841 |
if(orthographicCorrectionValidator != null){ |
|
842 |
orthographicVariantField.removeValidator(orthographicCorrectionValidator); |
|
843 |
orthographicVariantField = null; |
|
844 |
} |
|
845 |
} |
|
840 | 846 |
|
841 | 847 |
infraSpecificEpithetField.setVisible(rank.isInfraSpecific()); |
842 | 848 |
specificEpithetField.setVisible(isSpeciesOrBelow); |
Also available in: Unified diff
ref #7899 validator for orthographic correction