Skip to content

Commit

Permalink
pimp the layout (decided together with Mark)
Browse files Browse the repository at this point in the history
  • Loading branch information
teosarca committed Apr 24, 2017
1 parent 53f3576 commit 2614093
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,14 @@ public Object calculateValue(final Document document)
.map(valueExtractor -> valueExtractor.extractFieldValueToString(document))
.map(fieldValue -> Check.isEmpty(fieldValue, true) ? null : fieldValue.trim()) // convert empty strings to null
.filter(fieldValue -> fieldValue != null) // skip null strings
.collect(Collectors.joining("_")); // join all field values
.collect(Collectors.joining(" ")); // join all field values

if (Check.isEmpty(summary, true))
{
return "";
}

return summary;
return " / " + summary;
}

private static interface FieldValueExtractor
Expand Down

0 comments on commit 2614093

Please sign in to comment.