Revision 2a28e5d2
Added by Andreas Kohlbecker over 3 years ago
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/name/TypeDesignationSetFormatter.java | ||
---|---|---|
87 | 87 |
TaggedTextBuilder finalBuilder = new TaggedTextBuilder(); |
88 | 88 |
|
89 | 89 |
if(withNameIfAvailable && manager.getTypifiedNameCache() != null){ |
90 |
finalBuilder.add(TagEnum.name, manager.getTypifiedNameCache(), TypedEntityReference.fromEntity(manager.getTypifiedName())); |
|
90 |
finalBuilder.add(TagEnum.name, manager.getTypifiedNameCache(), TypedEntityReference.fromEntity(manager.getTypifiedName(), false));
|
|
91 | 91 |
finalBuilder.addPostSeparator(POST_NAME_SEPARTOR); |
92 | 92 |
} |
93 | 93 |
|
... | ... | |
189 | 189 |
workingsetBuilder.add(TagEnum.separator, TYPE_DESIGNATION_SEPARATOR); |
190 | 190 |
} |
191 | 191 |
|
192 |
workingsetBuilder.add(TagEnum.typeDesignation, stringify(typeDes), TypedEntityReference.fromEntity(typeDes)); |
|
192 |
workingsetBuilder.add(TagEnum.typeDesignation, stringify(typeDes), TypedEntityReference.fromEntity(typeDes, false));
|
|
193 | 193 |
// workingsetBuilder.add(TagEnum.typeDesignation, typeDesignationEntityReference.getLabel(), typeDesignationEntityReference); |
194 | 194 |
|
195 | 195 |
if (withCitation){ |
... | ... | |
226 | 226 |
if (ref != null){ |
227 | 227 |
DefaultReferenceCacheStrategy strategy = ((DefaultReferenceCacheStrategy)ref.getCacheStrategy()); |
228 | 228 |
String shortCitation = strategy.createShortCitation(ref, source.getCitationMicroReference(), false); |
229 |
workingsetBuilder.add(TagEnum.reference, shortCitation, TypedEntityReference.fromEntity(ref)); |
|
229 |
workingsetBuilder.add(TagEnum.reference, shortCitation, TypedEntityReference.fromEntity(ref, false));
|
|
230 | 230 |
} |
231 | 231 |
} |
232 | 232 |
|
Also available in: Unified diff
TypedEntityReference: factory method with option to supress the label & using this in TypeDesignationSetFormatter