Revision f4b956d8
Added by Andreas Müller almost 3 years ago
cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/common/utils/ImportDeduplicationHelper.java | ||
---|---|---|
425 | 425 |
|
426 | 426 |
private <T extends TeamOrPersonBase<?>> void initAuthorTitleCaches(T author) { |
427 | 427 |
//NOTE: this is more or less redundant copy from CdmPreDataChangeListener |
428 |
String nomTitle = author.getNomenclaturalTitleCache(); |
|
429 |
if (author instanceof Team){ |
|
430 |
Team team = (Team)author; |
|
431 |
//nomTitle is not necessarily cached when it is created |
|
432 |
team.setNomenclaturalTitleCache(nomTitle, team.isProtectedNomenclaturalTitleCache()); |
|
433 |
String collectorCache = author.getCollectorTitleCache(); |
|
434 |
if (! team.isProtectedCollectorTitleCache()){ |
|
435 |
team.setCollectorTitleCache(collectorCache, false); |
|
436 |
} |
|
437 |
}else{ |
|
438 |
author.setNomenclaturalTitle(nomTitle); |
|
439 |
} |
|
428 |
author.getNomenclaturalTitleCache(); |
|
429 |
author.getCollectorTitleCache(); |
|
440 | 430 |
String titleCache = author.getTitleCache(); |
431 |
//not sure if this is really needed |
|
441 | 432 |
if (! author.isProtectedTitleCache()){ |
442 | 433 |
author.setTitleCache(titleCache, false); |
443 | 434 |
} |
Also available in: Unified diff
ref #9664 remove setting person setNomenclaturalTitle during cache update and avoid recomputing nomTitleCache and collectorTitleCache (not sure what this is needed for)