added more information about metadata in ViewFile.html

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6740 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 15 years ago
parent 1198b9989d
commit 61493a9a9f

@ -81,9 +81,19 @@
</fieldset>
:: <!-- 2 -->
<fieldset><legend>Parsed Content</legend>
<p class="tt">
#[parsedText]#
</p>
<form>
<dl>
<dt>dc:title</dt><dd>#[title]#</dd>
<dt>dc:creator</dt><dd>#[creator]#</dd>
<dt>dc:subject</dt><dd>#[subject]#</dd>
<dt>dc:description</dt><dd>#[description]#</dd>
<dt>dc:publisher</dt><dd>#[publisher]#</dd>
<dt>dc:format</dt><dd>#[format]#</dd>
<dt>dc:identifier</dt><dd>#[identifier]#</dd>
<dt>dc:source</dt><dd>#[source]#</dd>
</dl>
</form>
<p class="tt">#[parsedText]#</p>
</fieldset>
:: <!-- 3 -->
<fieldset><legend>Parsed Sentences</legend>

@ -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", "&nbsp;&nbsp;&nbsp;&nbsp;"));
} else if (viewMode.equals("sentences")) {

Loading…
Cancel
Save