Project

General

Profile

« Previous | Next » 

Revision 9d97647a

Added by Andreas Müller almost 3 years ago

ref #9433 fix incorrect handling for MAN without sec/sensu reference

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/strategy/cache/taxon/TaxonBaseDefaultCacheStrategy.java
83 83
//                }
84 84

  
85 85
        //sec.
86
        List<TaggedText> secTags = getSecundumTags(taxonBase);
86
        List<TaggedText> secTags = getSecundumTags(taxonBase, isMisapplication);
87 87
        if (!secTags.isEmpty()){
88 88
            tags.add(new TaggedText(TagEnum.separator, secSeparator));
89 89
            tags.addAll(secTags);
90
        }else if (isMisapplication && isBlank(taxonBase.getAppendedPhrase())){
91
            tags.add(new TaggedText(TagEnum.appendedPhrase, "auct."));
90 92
        }
91 93

  
92 94
        if (isMisapplication){
......
133 135
        return tags;
134 136
    }
135 137

  
136
    private List<TaggedText> getSecundumTags(T taxonBase) {
138
    private List<TaggedText> getSecundumTags(T taxonBase, boolean isMisapplication) {
137 139
        List<TaggedText> tags = new ArrayList<>();
138 140

  
139 141
        Reference sec = taxonBase.getSec();
......
141 143
        String secRef;
142 144
        if (sec == null){
143 145
            //missing sec
144
            if (isBlank(taxonBase.getAppendedPhrase())){
146
            if (isBlank(taxonBase.getAppendedPhrase()) && !isMisapplication ){
145 147
                secRef = "???";
146 148
            }else{
147 149
                secRef = null;

Also available in: Unified diff