}
else if (field.equals("description_parsed"))
returnField = getDescriptionParsed();
+ else if (field.equals("description_sentence"))
+ returnField = getDescriptionSentence();
else if (field.equals("content_data_parsed"))
returnField = getContentDataParsed();
else
return returnField;
}
+ private String getDescriptionSentence() {
+ String returnField = getValue("description");
+ if (returnField != null && returnField.length()>0) {
+ returnField = StringUtil.removeHTMLTags(returnField);
+ int endOfFirstSentence=StringUtil.findEndOfSentence(returnField,0);
+ if (endOfFirstSentence > 0){
+ returnField = returnField.substring(0,endOfFirstSentence);
+ }
+ }
+ return returnField;
+ }
private String getDescriptionParsed() {
String returnField = getValue("description");