Project

General

Profile

Revision 905e953b

ID905e953be3fc5ced212097dcd449a596ab194751
Parent e08a43a0
Child 3ae8866d

Added by Andreas Müller about 8 years ago

fix subsection recognition

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/name/Rank.java
799 799
                throw new UnknownCdmTypeException (errorWarning);
800 800
            }
801 801
        }else if (rankName.equalsIgnoreCase("Subsection")){
802
            if (nc != null && nc.equals(NomenclaturalCode.ICZN)){ return Rank.SECTION_ZOOLOGY();
803
            }else if (nc != null && nc.equals(NomenclaturalCode.ICBN)){ return Rank.SECTION_BOTANY();
802
            if (nc != null && nc.equals(NomenclaturalCode.ICZN)){ return Rank.SUBSECTION_ZOOLOGY();
803
            }else if (nc != null && nc.equals(NomenclaturalCode.ICBN)){ return Rank.SUBSECTION_BOTANY();
804 804
            }else{
805 805
                String errorWarning = "Subsection is only defined for ICZN and ICBN at the moment but here needed for " + ((nc == null)? "(null)": nc.toString());
806 806
                logger.warn(errorWarning);

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)