/**
* @author pplitzner
* @since Jan 24, 2019
- *
*/
public class TermSearchResult extends SearchResult<AbstractTermDto> {
//this does not work!
content.localize(new TermRepresentation_L10n());
TermType termType = content.getTermType();
-
+
if (content instanceof TermDto){
String vocString =((TermDto)content).getVocabularyDto() != null?((TermDto)content).getVocabularyDto().getTitleCache():null;
vocString = vocString != null? vocString: (termType!= null? termType.getLabel():null);
}
return facets;
}
-
-}
+}
\ No newline at end of file