Revision ab1f58a9
Added by Andreas Müller over 3 years ago
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/facade/DerivedUnitFacadeCacheStrategy.java | ||
---|---|---|
42 | 42 |
|
43 | 43 |
@Override |
44 | 44 |
public String getTitleCache(DerivedUnit derivedUnit) { |
45 |
return getTitleCache(derivedUnit, false); |
|
45 |
return getTitleCache(derivedUnit, false, true);
|
|
46 | 46 |
} |
47 | 47 |
|
48 |
public String getTitleCache(DerivedUnit derivedUnit, boolean skipFieldUnit) { |
|
48 |
public String getTitleCache(DerivedUnit derivedUnit, boolean skipFieldUnit, boolean addTrailingDot) {
|
|
49 | 49 |
|
50 | 50 |
String result = ""; |
51 | 51 |
DerivedUnitFacadeFieldUnitCacheStrategy fieldStrategy = new DerivedUnitFacadeFieldUnitCacheStrategy(); |
... | ... | |
78 | 78 |
//result |
79 | 79 |
result = fieldStrategy.addPlantDescription(result, facade); |
80 | 80 |
|
81 |
if (addTrailingDot){ |
|
82 |
result = CdmUtils.addTrailingDotIfNotExists(result); |
|
83 |
} |
|
81 | 84 |
|
82 | 85 |
} catch (DerivedUnitFacadeNotSupportedException e) { |
83 | 86 |
e.printStackTrace(); |
Also available in: Unified diff
ref #9279 improve TypeDesignationSetManager