IndexControlRWIs_p.html, IndexControlURLs_p.html, ViewFile.html/.java: changes to HTML output and   in case of empty values for XHTML strict / transitional validation

de.lng: Added missing translation for Show Content and changed existing line 
--> Index Administration should now correctly validate XHTML 1.0 Strict / Trans

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7255 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
mikeworks 14 years ago
parent a79728b97d
commit 61e87c0b14

@ -152,11 +152,12 @@
</form> </form>
#(/searchresult)# #(/searchresult)#
#(keyhashsimilar)#::Sequential List of Word-Hashes:<br /> #(keyhashsimilar)#::<p>Sequential List of Word-Hashes:<br />
#{rows}# #{rows}#
#{cols}# #{cols}#
<a href="/IndexControlRWIs_p.html?keyhash=#[wordHash]#&amp;keyhashsearch=1" class="tt">#[wordHash]#</a>#{/cols}#<br /> <a href="/IndexControlRWIs_p.html?keyhash=#[wordHash]#&amp;keyhashsearch=1" class="tt">#[wordHash]#</a>#{/cols}#<br />
#{/rows}# #{/rows}#
</p>
#(/keyhashsimilar)# #(/keyhashsimilar)#
#(genUrlList)# #(genUrlList)#

@ -1,4 +1,5 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<!-- This page is only XHTML 1.0 Transitional because target is being used in a links -->
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
#(reload)#::<meta http-equiv="REFRESH" content="5; url=/IndexControlURLs_p.html">#(/reload)# #(reload)#::<meta http-equiv="REFRESH" content="5; url=/IndexControlURLs_p.html">#(/reload)#
<head> <head>
@ -7,7 +8,7 @@
<script type="text/javascript"> <script type="text/javascript">
//<![CDATA[ //<![CDATA[
function xmlhttpPost() { function xmlhttpPost() {
var searchform = document.forms['searchform']; var searchform = document.getElementById('searchform');
search(searchform.urlstring.value); search(searchform.urlstring.value);
} }
@ -46,12 +47,12 @@ function updatepage(str) {
var item; var item;
html += "<table class=\"networkTable\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\" width=\"99%\">"; html += "<table class=\"networkTable\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\" width=\"99%\">";
html += "<tr class=\"TableHeader\" valign=\"bottom\">"; html += "<tr class=\"TableHeader\" valign=\"bottom\">";
html += "<td>URL from index (total results = " + totalResults + ")</td>"; html += "<td>URL from index (total results = " + totalResults + ")<\/td>";
for (var i = 0; i < firstChannel.items.length; i++) { for (var i = 0; i < firstChannel.items.length; i++) {
item = firstChannel.items[i]; item = firstChannel.items[i];
html += "<tr class=\"TableCellLight\"><td align=\"left\"><a href=\"IndexControlURLs_p.html?urlstringsearch=&urlstring=" + item.link + "\">" + item.link + "</a></td>"; html += "<tr class=\"TableCellLight\"><td align=\"left\"><a href=\"IndexControlURLs_p.html?urlstringsearch=&amp;urlstring=" + item.link + "\">" + item.link + "<\/a><\/td>";
} }
html += "</table>"; html += "<\/table>";
} }
document.getElementById("searchresults").innerHTML = html; document.getElementById("searchresults").innerHTML = html;
} }
@ -63,7 +64,7 @@ function updatepage(str) {
#%env/templates/submenuIndexControl.template%# #%env/templates/submenuIndexControl.template%#
<h2>Index Administration</h2> <h2>Index Administration</h2>
<p>The local index currently contains #[ucount]# URL references</p> <p>The local index currently contains #[ucount]# URL references</p>
<form action="IndexControlURLs_p.html" name="searchform" method="post" enctype="multipart/form-data" onkeyup="xmlhttpPost(); return false;"> <form action="IndexControlURLs_p.html" id="searchform" method="post" enctype="multipart/form-data" onkeyup="xmlhttpPost(); return false;">
<fieldset><legend>URL Retrieval</legend> <fieldset><legend>URL Retrieval</legend>
<dl> <dl>
<dt class="TableCellDark">Select Segment:</dt> <dt class="TableCellDark">Select Segment:</dt>
@ -96,7 +97,7 @@ function updatepage(str) {
<form action="IndexControlURLs_p.html" method="post" enctype="multipart/form-data"> <form action="IndexControlURLs_p.html" method="post" enctype="multipart/form-data">
<fieldset><legend>Statistics about top-domains in URL Database</legend> <fieldset><legend>Statistics about top-domains in URL Database</legend>
<dl> <dl>
<dt class="TableCellLight"></dt> <dt class="TableCellLight">&nbsp;</dt>
<dd>Show top <input type="text" name="lines" value="#[lines]#" size="6" maxlength="6" /> domains from all URLs. <dd>Show top <input type="text" name="lines" value="#[lines]#" size="6" maxlength="6" /> domains from all URLs.
<input type="submit" name="statistics" value="Generate Statistics" /> <input type="submit" name="statistics" value="Generate Statistics" />
</dd> </dd>
@ -106,7 +107,7 @@ function updatepage(str) {
#(/statistics)# #(/statistics)#
#(statisticslines)#:: #(statisticslines)#::
<p><em>Statistics about the top-#[domains]# domains in the database:</em> <p><em>Statistics about the top-#[domains]# domains in the database:</em></p>
<table cellpadding="2" cellspacing="1" > <table cellpadding="2" cellspacing="1" >
<tr class="TableHeader"> <tr class="TableHeader">
<td align="center"></td> <td align="center"></td>
@ -124,11 +125,11 @@ function updatepage(str) {
</div> </div>
</form> </form>
</td> </td>
<td><a href="http://#[domain]#/" target="_">#[domain]#</a></td> <td><a href="http://#[domain]#/" target="_blank">#[domain]#</a></td>
<td>#[count]#</td> <td>#[count]#</td>
</tr> </tr>
#{/domains}# #{/domains}#
</table></p> </table>
#(/statisticslines)# #(/statisticslines)#
#(lurlexport)#:: #(lurlexport)#::
@ -151,7 +152,7 @@ function updatepage(str) {
<input type="radio" name="format" value="url-rss" />XML (RSS) <input type="radio" name="format" value="url-rss" />XML (RSS)
<br /> <br />
</dd> </dd>
<dt class="TableCellLight"></dt> <dt class="TableCellLight">&nbsp;</dt>
<dd><input type="submit" name="lurlexport" value="Export URLs" /> <dd><input type="submit" name="lurlexport" value="Export URLs" />
</dd> </dd>
</dl> </dl>

@ -1,4 +1,5 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<!-- This page is only XHTML 1.0 Transitional and not Strict because iframes are in use -->
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<title>YaCy '#[clientname]#': View URL Content</title> <title>YaCy '#[clientname]#': View URL Content</title>
@ -19,7 +20,7 @@
<fieldset><legend>Get URL Viewer</legend> <fieldset><legend>Get URL Viewer</legend>
<dl> <dl>
<dt>URL:</dt><dd><input type="text" size="60" name="url" value="#[url]#" />&nbsp;<input type="submit" name="show" value="Show" /></dd> <dt>URL:</dt><dd><input type="text" size="60" name="url" value="#[url]#" />&nbsp;<input type="submit" name="show" value="Show" /></dd>
</dd> <dd>&nbsp;</dd>
</dl> </dl>
<input type="hidden" name="display" value="#[display]#" /> <input type="hidden" name="display" value="#[display]#" />
</fieldset> </fieldset>
@ -71,7 +72,6 @@
<span class="error">Unsupported protocol.</span> <span class="error">Unsupported protocol.</span>
#(/error)# #(/error)#
<p>
#(viewMode)# #(viewMode)#
:: <!-- 1 --> :: <!-- 1 -->
<fieldset><legend>Original Content from Web</legend> <fieldset><legend>Original Content from Web</legend>
@ -80,9 +80,9 @@
</p> </p>
</fieldset> </fieldset>
:: <!-- 2 --> :: <!-- 2 -->
<fieldset><legend>Parsed Content</legend> <form action="">
<form> <fieldset><legend>Parsed Content</legend>
<dl> <dl>
<dt>dc:title</dt><dd>#[title]#</dd> <dt>dc:title</dt><dd>#[title]#</dd>
<dt>dc:creator</dt><dd>#[creator]#</dd> <dt>dc:creator</dt><dd>#[creator]#</dd>
<dt>dc:subject</dt><dd>#[subject]#</dd> <dt>dc:subject</dt><dd>#[subject]#</dd>
@ -92,9 +92,9 @@
<dt>dc:identifier</dt><dd>#[identifier]#</dd> <dt>dc:identifier</dt><dd>#[identifier]#</dd>
<dt>dc:source</dt><dd>#[source]#</dd> <dt>dc:source</dt><dd>#[source]#</dd>
</dl> </dl>
</form>
<p class="tt">#[parsedText]#</p> <p class="tt">#[parsedText]#</p>
</fieldset> </fieldset>
</form>
:: <!-- 3 --> :: <!-- 3 -->
<fieldset><legend>Parsed Sentences</legend> <fieldset><legend>Parsed Sentences</legend>
<ol>#{sentences}# <ol>#{sentences}#
@ -110,25 +110,26 @@
<iframe src="/CacheResource_p.html?url=#[url]#" width="800" height="400" /> <iframe src="/CacheResource_p.html?url=#[url]#" width="800" height="400" />
</fieldset> </fieldset>
:: <!-- 6 --> :: <!-- 6 -->
<h3>Link List</h3><br> <fieldset><legend>Link List</legend>
<table border="0" cellpadding="2" cellspacing="1"> <table border="0" cellpadding="2" cellspacing="1">
#{links}# #{links}#
<tr class="TableCell#(dark)#Light::Dark::Summary#(/dark)#"> <tr class="TableCell#(dark)#Light::Dark::Summary#(/dark)#">
<td>#[nr]#</td> <td>#[nr]#</td>
<td class="tt">#[type]#</tt></td> <td class="tt"><tt>#[type]#</tt></td>
<td class="tt">#[text]#</tt></td> <td class="tt"><tt>#[text]#</tt></td>
<td class="tt"><a href="#[url]#">#[link]#</a></tt></td> <td class="tt"><tt><a href="#[url]#">#[link]#</a></tt></td>
<td class="tt">#[attr]#</tt></td> <td class="tt"><tt>#[attr]#</tt></td>
</tr>#{/links}# </tr>#{/links}#
</table> </table>
</fieldset>
:: <!-- 7 --> :: <!-- 7 -->
<fieldset><legend>Parsed Tokens</legend> <fieldset><legend>Parsed Tokens</legend>
<ol>#{words}# <ol>#{words}#
<li class="tt">#[word]#</li>#{/words}# <li class="tt"><tt>#[word]#</tt></li>#{/words}#
</ol> </ol>
</fieldset> </fieldset>
#(/viewMode)# #(/viewMode)#
</p>
#%env/templates/footer.template%# #%env/templates/footer.template%#
</body> </body>

@ -308,7 +308,7 @@ public class ViewFile {
prop.put("viewMode_links_" + i + "_nr", i); prop.put("viewMode_links_" + i + "_nr", i);
prop.put("viewMode_links_" + i + "_dark", dark ? "1" : "0"); prop.put("viewMode_links_" + i + "_dark", dark ? "1" : "0");
prop.put("viewMode_links_" + i + "_type", "image"); prop.put("viewMode_links_" + i + "_type", "image");
prop.put("viewMode_links_" + i + "_text", markup(wordArray, entry.alt())); prop.put("viewMode_links_" + i + "_text", (entry.alt().isEmpty()) ? "&nbsp;" : markup(wordArray, entry.alt()));
prop.put("viewMode_links_" + i + "_url", entry.url().toNormalform(false, true)); prop.put("viewMode_links_" + i + "_url", entry.url().toNormalform(false, true));
prop.put("viewMode_links_" + i + "_link", markup(wordArray, entry.url().toNormalform(false, true))); prop.put("viewMode_links_" + i + "_link", markup(wordArray, entry.url().toNormalform(false, true)));
if (entry.width() > 0 && entry.height() > 0) if (entry.width() > 0 && entry.height() > 0)
@ -329,7 +329,7 @@ public class ViewFile {
prop.put("error_url", url.toNormalform(false, true)); prop.put("error_url", url.toNormalform(false, true));
prop.put("error_hash", urlHash); prop.put("error_hash", urlHash);
prop.put("error_wordCount", wordCount); prop.put("error_wordCount", wordCount);
prop.putHTML("error_desc", descr); prop.putHTML("error_desc", (descr.isEmpty()) ? "&nbsp;" : descr);
prop.putNum("error_size", size); prop.putNum("error_size", size);
prop.put("error_mimeTypeAvailable", (response.getMimeType() == null) ? "0" : "1"); prop.put("error_mimeTypeAvailable", (response.getMimeType() == null) ? "0" : "1");
prop.put("error_mimeTypeAvailable_mimeType", response.getMimeType()); prop.put("error_mimeTypeAvailable_mimeType", response.getMimeType());
@ -376,10 +376,10 @@ public class ViewFile {
prop.put("viewMode_links_" + c + "_nr", c); prop.put("viewMode_links_" + c + "_nr", c);
prop.put("viewMode_links_" + c + "_dark", ((dark) ? 1 : 0)); prop.put("viewMode_links_" + c + "_dark", ((dark) ? 1 : 0));
prop.putHTML("viewMode_links_" + c + "_type", name); prop.putHTML("viewMode_links_" + c + "_type", name);
prop.put("viewMode_links_" + c + "_text", markup(wordArray, entry.getValue())); prop.put("viewMode_links_" + c + "_text", ((entry.getValue().isEmpty()) ? "&nbsp;" : markup(wordArray, entry.getValue()) ));
prop.put("viewMode_links_" + c + "_link", markup(wordArray, entry.getKey().toNormalform(true, false))); prop.put("viewMode_links_" + c + "_link", markup(wordArray, entry.getKey().toNormalform(true, false)));
prop.put("viewMode_links_" + c + "_url", entry.getKey().toNormalform(true, false)); prop.put("viewMode_links_" + c + "_url", entry.getKey().toNormalform(true, false));
prop.putHTML("viewMode_links_" + c + "_attr", ""); prop.put("viewMode_links_" + c + "_attr", "&nbsp;");
dark = !dark; dark = !dark;
c++; c++;
i++; i++;

@ -1314,7 +1314,7 @@ Statistics about the top-\#\[domains\]\# domains in the database:==Statistik üb
"delete all"=="Alle Löschen" "delete all"=="Alle Löschen"
#Domain==Domain #Domain==Domain
#URLs==URLs #URLs==URLs
Sequential List of URL-Hashes==aufeinanderfolgende Liste der URL-Hashes Sequential List of URL-Hashes==Sequentielle Liste der URL-Hashes
Loaded URL Export==Export geladener URLs Loaded URL Export==Export geladener URLs
Export File==Export-Datei Export File==Export-Datei
#URL Filter==URL Filter #URL Filter==URL Filter
@ -1343,6 +1343,7 @@ No entry found for URL-hash==Keinen Eintrag gefunden für URL-Hash
#Language</td>==Sprache</td> #Language</td>==Sprache</td>
#Size</td>==Größe</td> #Size</td>==Größe</td>
#Words</td>==Wörter</td> #Words</td>==Wörter</td>
"Show Content"=="Inhalt anzeigen"
"Delete URL"=="URL löschen" "Delete URL"=="URL löschen"
this may produce unresolved references at other word indexes but they do not harm==dies mag ungelöste Referenzen an anderen Wort Indizes erzeugen, aber es richtet keinen Schaden an this may produce unresolved references at other word indexes but they do not harm==dies mag ungelöste Referenzen an anderen Wort Indizes erzeugen, aber es richtet keinen Schaden an
"Delete URL and remove all references from words"=="URL löschen und alle Referenzen zu Wörtern entfernen" "Delete URL and remove all references from words"=="URL löschen und alle Referenzen zu Wörtern entfernen"

Loading…
Cancel
Save