Revision ab1f58a9
Added by Andreas Müller over 3 years ago
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/facade/DerivedUnitFacadeFieldUnitCacheStrategy.java | ||
---|---|---|
59 | 59 |
facade = DerivedUnitFacade.NewInstance(SpecimenOrObservationType.FieldUnit, fieldUnit, config); |
60 | 60 |
result = getFieldData(facade); |
61 | 61 |
result = addPlantDescription(result, facade); |
62 |
result = CdmUtils.addTrailingDotIfNotExists(result); |
|
62 | 63 |
facade.close(); |
63 | 64 |
return result; |
64 | 65 |
} |
... | ... | |
113 | 114 |
} |
114 | 115 |
|
115 | 116 |
protected String addPlantDescription(String result, DerivedUnitFacade facade) { |
116 |
|
|
117 | 117 |
//plant description |
118 | 118 |
result = CdmUtils.concat("; ", result, facade.getPlantDescription()); |
119 |
if (StringUtils.isNotBlank(result) && !result.endsWith(".")){ |
|
120 |
result += "."; |
|
121 |
} |
|
122 |
|
|
123 | 119 |
return result; |
124 | 120 |
} |
125 | 121 |
|
Also available in: Unified diff
ref #9279 improve TypeDesignationSetManager