Project

General

Profile

« Previous | Next » 

Revision 6d6ca639

Added by Andreas Müller almost 3 years ago

ref #9617 replace ICNB to ICNP in taxeditor

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/model/NomenclaturalCodeHelper.java
75 75
	 * @return a {@link java.lang.String} object.
76 76
	 */
77 77
	public static String getDescription(NomenclaturalCode code) {
78
		if (code.equals(NomenclaturalCode.ICNB)) {
79
			return "International Code of Nomenclature of Bacteria (ICNB)";
78
		if (code.equals(NomenclaturalCode.ICNP)) {
79
			return "International Code of Nomenclature of Bacteria (ICNP)";
80 80
		}
81 81
		if (code.equals(NomenclaturalCode.ICNAFP )) {
82 82
			return "International Code of Botanical Nomenclature (ICNAFP )";
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/NameDetailElement.java
190 190
                //TODO implement
191 191
                logger.warn("ICVCN not yet implemented");
192 192
                break;
193
            case ICNB:
193
            case ICNP:
194 194
            	createBacterialNameParts(formElement, nonViralName, style);
195 195
                break;
196 196
            case ICNCP:
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/NonViralNameDetailElement.java
53 53

  
54 54
            combo_nomenclaturalCode = formFactory.createEnumComboElement(NomenclaturalCode.class, formElement, style);
55 55
            combo_nomenclaturalCode.setSelection(entity.getNameType());
56
            if (entity.getNameType().equals(NomenclaturalCode.ICNB)){
56
            if (entity.getNameType().equals(NomenclaturalCode.ICNP)){
57 57
            	text_nameApprobation = formFactory.createTextWithLabelElement(formElement, "Name Approbation", entity.getNameApprobation(),style);
58 58
            }
59 59
            textLsid = formFactory.createLsidWithExceptionLabelElement(formElement, "Lsid", entity.getLsid(), style);
......
65 65
        		combo_nomenclaturalCode = formFactory.createEnumComboElement(NomenclaturalCode.class, formElement, style);
66 66
        		combo_nomenclaturalCode.setSelection(entity.getNameType());
67 67
        	}
68
        	if (entity.getNameType().equals(NomenclaturalCode.ICNB)){
68
        	if (entity.getNameType().equals(NomenclaturalCode.ICNP)){
69 69
        		if (config.isNameApprobiationActivated()){
70 70
        			text_nameApprobation = formFactory.createTextWithLabelElement(formElement, "Name Approbation", entity.getNameApprobation(),style);
71 71
        		}
......
199 199
				return true;
200 200
			}
201 201
		}
202
		if (actualCode.equals(NomenclaturalCode.ICNB)){
202
		if (actualCode.equals(NomenclaturalCode.ICNP)){
203 203
			if (getEntity().getNameApprobation() != null || getEntity().getSubGenusAuthorship() != null){
204 204
				if (MessagingUtils.confirmDialog(Messages.NonViralNameDetails_confirmDeleteOfBacterialNameParts, Messages.NonViralNameDetails_desciptionDeleteOfBacterialNameParts)){
205 205
					getEntity().setNameApprobation(null);

Also available in: Unified diff