Project

General

Profile

Revision 854244ff

ID854244ff90c5ff67a0b30a3cee7f1d49e7623cc5
Parent c1a8faa1
Child 5abafe6a

Added by Andreas Kohlbecker 11 months ago

fix #9384 fixing author team truncation

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/strategy/cache/reference/DefaultReferenceCacheStrategy.java
287 287
            }else{
288 288
                List<Person> teamMembers = team.getTeamMembers();
289 289
                int etAlPosition = 2;
290
                for (int i = 1; i <= teamMembers.size() && i < etAlPosition; i++){
290
                for (int i = 1; i <= teamMembers.size() && i <= etAlPosition; i++){
291 291
                    Person teamMember = teamMembers.get(i-1);
292 292
                    if(teamMember == null){
293 293
                        // this can happen in UIs in the process of adding new members
......
298 298
                }
299 299
                if (teamMembers.size() == 0){
300 300
                    shortCitation = TeamDefaultCacheStrategy.EMPTY_TEAM;
301
                } else if (team.isHasMoreMembers() || teamMembers.size() >= etAlPosition){
301
                } else if (team.isHasMoreMembers() || teamMembers.size() > etAlPosition){
302 302
                    shortCitation += TeamDefaultCacheStrategy.ET_AL_TEAM_CONCATINATION_FULL + "al.";
303 303
                }
304 304
            }

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)