Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

added more information about metadata in ViewFile.html

orbiter61493a9a9f5c
diff --git a/htroot/ViewFile.html b/htroot/ViewFile.html
index 015b87f98..a998d583f 100644
--- a/htroot/ViewFile.html
+++ b/htroot/ViewFile.html
@@ -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>
diff --git a/htroot/ViewFile.java b/htroot/ViewFile.java
index 5706f1ea2..4bceb94df 100644
--- a/htroot/ViewFile.java
+++ b/htroot/ViewFile.java
@@ -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")) {