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>
#(/searchresult)#
#(keyhashsimilar)#::Sequential List of Word-Hashes:<br />
#(keyhashsimilar)#::<p>Sequential List of Word-Hashes:<br />
#{rows}#
#{cols}#
<a href="/IndexControlRWIs_p.html?keyhash=#[wordHash]#&amp;keyhashsearch=1" class="tt">#[wordHash]#</a>#{/cols}#<br />
#{/rows}#
#{/rows}#
</p>
#(/keyhashsimilar)#
#(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">
#(reload)#::<meta http-equiv="REFRESH" content="5; url=/IndexControlURLs_p.html">#(/reload)#
<head>
@ -7,7 +8,7 @@
<script type="text/javascript">
//<![CDATA[
function xmlhttpPost() {
var searchform = document.forms['searchform'];
var searchform = document.getElementById('searchform');
search(searchform.urlstring.value);
}
@ -46,12 +47,12 @@ function updatepage(str) {
var item;
html += "<table class=\"networkTable\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\" width=\"99%\">";
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++) {
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;
}
@ -63,7 +64,7 @@ function updatepage(str) {
#%env/templates/submenuIndexControl.template%#
<h2>Index Administration</h2>
<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>
<dl>
<dt class="TableCellDark">Select Segment:</dt>
@ -96,7 +97,7 @@ function updatepage(str) {
<form action="IndexControlURLs_p.html" method="post" enctype="multipart/form-data">
<fieldset><legend>Statistics about top-domains in URL Database</legend>
<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.
<input type="submit" name="statistics" value="Generate Statistics" />
</dd>
@ -106,7 +107,7 @@ function updatepage(str) {
#(/statistics)#
#(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" >
<tr class="TableHeader">
<td align="center"></td>
@ -124,11 +125,11 @@ function updatepage(str) {
</div>
</form>
</td>
<td><a href="http://#[domain]#/" target="_">#[domain]#</a></td>
<td><a href="http://#[domain]#/" target="_blank">#[domain]#</a></td>
<td>#[count]#</td>
</tr>
#{/domains}#
</table></p>
</table>
#(/statisticslines)#
#(lurlexport)#::
@ -151,7 +152,7 @@ function updatepage(str) {
<input type="radio" name="format" value="url-rss" />XML (RSS)
<br />
</dd>
<dt class="TableCellLight"></dt>
<dt class="TableCellLight">&nbsp;</dt>
<dd><input type="submit" name="lurlexport" value="Export URLs" />
</dd>
</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">
<head>
<title>YaCy '#[clientname]#': View URL Content</title>
@ -19,7 +20,7 @@
<fieldset><legend>Get URL Viewer</legend>
<dl>
<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>
<input type="hidden" name="display" value="#[display]#" />
</fieldset>
@ -71,7 +72,6 @@
<span class="error">Unsupported protocol.</span>
#(/error)#
<p>
#(viewMode)#
:: <!-- 1 -->
<fieldset><legend>Original Content from Web</legend>
@ -80,9 +80,9 @@
</p>
</fieldset>
:: <!-- 2 -->
<fieldset><legend>Parsed Content</legend>
<form>
<dl>
<form action="">
<fieldset><legend>Parsed Content</legend>
<dl>
<dt>dc:title</dt><dd>#[title]#</dd>
<dt>dc:creator</dt><dd>#[creator]#</dd>
<dt>dc:subject</dt><dd>#[subject]#</dd>
@ -92,9 +92,9 @@
<dt>dc:identifier</dt><dd>#[identifier]#</dd>
<dt>dc:source</dt><dd>#[source]#</dd>
</dl>
</form>
<p class="tt">#[parsedText]#</p>
</fieldset>
</fieldset>
</form>
:: <!-- 3 -->
<fieldset><legend>Parsed Sentences</legend>
<ol>#{sentences}#
@ -110,25 +110,26 @@
<iframe src="/CacheResource_p.html?url=#[url]#" width="800" height="400" />
</fieldset>
:: <!-- 6 -->
<h3>Link List</h3><br>
<fieldset><legend>Link List</legend>
<table border="0" cellpadding="2" cellspacing="1">
#{links}#
<tr class="TableCell#(dark)#Light::Dark::Summary#(/dark)#">
<td>#[nr]#</td>
<td class="tt">#[type]#</tt></td>
<td class="tt">#[text]#</tt></td>
<td class="tt"><a href="#[url]#">#[link]#</a></tt></td>
<td class="tt">#[attr]#</tt></td>
<td class="tt"><tt>#[type]#</tt></td>
<td class="tt"><tt>#[text]#</tt></td>
<td class="tt"><tt><a href="#[url]#">#[link]#</a></tt></td>
<td class="tt"><tt>#[attr]#</tt></td>
</tr>#{/links}#
</table>
</table>
</fieldset>
:: <!-- 7 -->
<fieldset><legend>Parsed Tokens</legend>
<ol>#{words}#
<li class="tt">#[word]#</li>#{/words}#
<li class="tt"><tt>#[word]#</tt></li>#{/words}#
</ol>
</fieldset>
#(/viewMode)#
</p>
#%env/templates/footer.template%#
</body>

@ -308,7 +308,7 @@ public class ViewFile {
prop.put("viewMode_links_" + i + "_nr", i);
prop.put("viewMode_links_" + i + "_dark", dark ? "1" : "0");
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 + "_link", markup(wordArray, entry.url().toNormalform(false, true)));
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_hash", urlHash);
prop.put("error_wordCount", wordCount);
prop.putHTML("error_desc", descr);
prop.putHTML("error_desc", (descr.isEmpty()) ? "&nbsp;" : descr);
prop.putNum("error_size", size);
prop.put("error_mimeTypeAvailable", (response.getMimeType() == null) ? "0" : "1");
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 + "_dark", ((dark) ? 1 : 0));
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 + "_url", entry.getKey().toNormalform(true, false));
prop.putHTML("viewMode_links_" + c + "_attr", "");
prop.put("viewMode_links_" + c + "_attr", "&nbsp;");
dark = !dark;
c++;
i++;

@ -1314,7 +1314,7 @@ Statistics about the top-\#\[domains\]\# domains in the database:==Statistik üb
"delete all"=="Alle Löschen"
#Domain==Domain
#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
Export File==Export-Datei
#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>
#Size</td>==Größe</td>
#Words</td>==Wörter</td>
"Show Content"=="Inhalt anzeigen"
"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
"Delete URL and remove all references from words"=="URL löschen und alle Referenzen zu Wörtern entfernen"

Loading…
Cancel
Save