CARROT-1071: an option to truncate the content of displayed documents in the webapp