Skip to content

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

wiki-update-marked entries in network now link to the updated wiki page

orbiter93811dc6e0b5
diff --git a/htroot/Network.html b/htroot/Network.html
index d0a103d8c..d44deb4c9 100644
--- a/htroot/Network.html
+++ b/htroot/Network.html
@@ -63,7 +63,7 @@
<tr class="TableCell#(dark)#Light::Dark::Summary#(/dark)#">
<td class="small"><a href="MessageSend_p.html?hash=#[hash]#" class="small">m</a>&nbsp;&nbsp;&nbsp;
<a href="ViewProfile.html?hash=#[hash]#" class="small">p</a>#(updatedProfile)#&nbsp;::*#(/updatedProfile)#&nbsp;&nbsp;
- <a href="http://#[fullname]#.yacy/Wiki.html" class="small">w</a>#(updatedWiki)#&nbsp;::*#(/updatedWiki)#&nbsp;&nbsp;
+ <a href="http://#[fullname]#.yacy/Wiki.html#[updatedWikiPage]#" class="small">w</a>#(updatedWiki)#&nbsp;::*#(/updatedWiki)#&nbsp;&nbsp;
#(isCrawling)#::<a href="#[startURL]#" class="small">crawl</a>#(/isCrawling)#
</td>
<td class="small"><a href="http://www.#[fullname]#.yacy" class="small">#[shortname]#</a></td>
diff --git a/htroot/Network.java b/htroot/Network.java
index 4367a9b63..e9912aeb3 100644
--- a/htroot/Network.java
+++ b/htroot/Network.java
@@ -218,7 +218,7 @@ public class Network {
// find updated Information using YaCyNews
HashSet updatedProfile = new HashSet();
- HashSet updatedWiki = new HashSet();
+ HashMap updatedWiki = new HashMap();
HashMap isCrawling = new HashMap();
int availableNews = yacyCore.newsPool.size(yacyNewsPool.INCOMING_DB);
if (availableNews > 500) availableNews = 500;
@@ -229,7 +229,7 @@ public class Network {
if (record.category().equals("prfleupd")) {
updatedProfile.add(record.originator());
} else if (record.category().equals("wiki_upd")) {
- updatedWiki.add(record.originator());
+ updatedWiki.put(record.originator(), record.attributes().get("page"));
} else if (record.category().equals("crwlstrt")) {
isCrawling.put(record.originator(), record.attributes().get("startURL"));
}
@@ -246,6 +246,7 @@ public class Network {
case 3 : e = yacyCore.seedDB.seedsSortedPotential(post.get("order", "up").equals("up"), post.get("sort", "LastSeen")); break;
}
String startURL;
+ String wikiPage;
int PPM;
while ((e.hasMoreElements()) && (conCount < maxCount)) {
seed = (yacySeed) e.nextElement();
@@ -256,8 +257,14 @@ public class Network {
} else {
prop.put("table_list_"+conCount+"_dark", ((dark) ? 1 : 0) ); dark=!dark;
}
- prop.put("table_list_"+conCount+"_updatedProfile", (((updatedProfile.contains(seed.hash))) ? 1 : 0) );
- prop.put("table_list_"+conCount+"_updatedWiki", (((updatedWiki.contains(seed.hash))) ? 1 : 0) );
+ prop.put("table_list_"+conCount+"_updatedProfile", (((updatedProfile.contains(seed.hash))) ? 1 : 0));
+ if ((wikiPage = (String) updatedWiki.get(seed.hash)) == null) {
+ prop.put("table_list_"+conCount+"_updatedWiki", 0);
+ prop.put("table_list_"+conCount+"_updatedWikiPage", "");
+ } else {
+ prop.put("table_list_"+conCount+"_updatedWiki", 1);
+ prop.put("table_list_"+conCount+"_updatedWikiPage", "?page=" + wikiPage);
+ }
try {
PPM = Integer.parseInt(seed.get("ISpeed", "-"));
} catch (NumberFormatException ee) {