|
|
|
@ -293,8 +293,15 @@ public class ViewFile {
|
|
|
|
|
if (viewMode.equals("parsed")) {
|
|
|
|
|
final String content = new String(document.getTextBytes());
|
|
|
|
|
// content = wikiCode.replaceHTML(content); // added by Marc Nause
|
|
|
|
|
|
|
|
|
|
prop.put("viewMode", VIEW_MODE_AS_PARSED_TEXT);
|
|
|
|
|
prop.put("viewMode_title", document.dc_title());
|
|
|
|
|
prop.put("viewMode_creator", document.dc_creator());
|
|
|
|
|
prop.put("viewMode_subject", document.dc_subject(','));
|
|
|
|
|
prop.put("viewMode_description", document.dc_description());
|
|
|
|
|
prop.put("viewMode_publisher", document.dc_publisher());
|
|
|
|
|
prop.put("viewMode_format", document.dc_format());
|
|
|
|
|
prop.put("viewMode_identifier", document.dc_identifier());
|
|
|
|
|
prop.put("viewMode_source", document.dc_source().toString());
|
|
|
|
|
prop.put("viewMode_parsedText", markup(wordArray, content).replaceAll("\n", "<br />").replaceAll("\t", " "));
|
|
|
|
|
|
|
|
|
|
} else if (viewMode.equals("sentences")) {
|
|
|
|
|