Revision ed5871af
Added by Andreas Müller over 2 years ago
cdmlib-model/src/main/java/eu/etaxonomy/cdm/strategy/cache/agent/PersonDefaultCacheStrategy.java | ||
---|---|---|
103 | 103 |
public String getCollectorTitleCache(Person person){ |
104 | 104 |
if (isNotBlank(person.getCollectorTitle())){ |
105 | 105 |
return person.getCollectorTitle(); |
106 |
}else if (!person.isProtectedTitleCache() && isNotBlank(person.getFamilyName()) && |
|
107 |
(isNotBlank(person.getInitials()) || isNotBlank(person.getGivenName()))){ |
|
108 |
if (isNotBlank(person.getInitials())){ |
|
109 |
return CdmUtils.concat(" ", person.getInitials(), person.getFamilyName()); |
|
110 |
}else{ |
|
111 |
return CdmUtils.concat(" ", getInitialsFromGivenName(person.getGivenName(), false), person.getFamilyName()); |
|
112 |
} |
|
106 | 113 |
}else{ |
107 | 114 |
return getTitleCache(person); |
108 | 115 |
} |
Also available in: Unified diff
ref #4311 add initials + family default for collectorTitleCache