Project

General

Profile

« Previous | Next » 

Revision 0edc55f4

Added by Andreas Müller over 3 years ago

ref #9272, ref #5794 adapt taxon ordering to nomenclatural standing

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/taxon/TaxonComparator.java
128 128

  
129 129
	private int computeStatusCompareWeight(TaxonName taxonName) {
130 130
		int result = 0;
131
		if (taxonName == null || taxonName.getStatus() == null){
131

  
132
		if (taxonName == null || taxonName.isValid()){
132 133
			return 0;
133 134
		}
134 135
		Set<NomenclaturalStatus> status1 = taxonName.getStatus();
135 136
        for (NomenclaturalStatus nomStatus1 : status1){
136 137
            NomenclaturalStatusType type = nomStatus1.getType();
137 138
            if (type != null && type.isInvalid()){
139
                //NOTE: not clear were this order comes from, it is partly mentioned
140
                //in #5794, it is unclear if it fits to the longer list mentioned in #9272
138 141
                if(type.equals(NomenclaturalStatusType.PROVISIONAL())){
139 142
                    result += 1;
140 143
                }else if (type.equals(NomenclaturalStatusType.INVALID())){

Also available in: Unified diff