fix in Document inboundlinks/outboundlinks sorting

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7690 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 14 years ago
parent 5e2d38ef19
commit e3d19d0a90

@ -402,10 +402,14 @@ dc_rights
for (Map.Entry<MultiProtocolURI, Properties> entry: anchors.entrySet()) {
url = entry.getKey();
if (url == null) continue;
if (url.getHost() != null && thishost != null &&
url.getHost().endsWith(thishost) ||
(thishost.startsWith("www.") && url.getHost().endsWith(thishost.substring(4)))
) this.inboundlinks.put(url, "anchor"); else this.outboundlinks.put(url, "anchor");
if ((thishost == null && url.getHost() == null) ||
((thishost != null && url.getHost() != null) &&
(url.getHost().endsWith(thishost) ||
(thishost.startsWith("www.") && url.getHost().endsWith(thishost.substring(4)))))) {
this.inboundlinks.put(url, "anchor");
} else {
this.outboundlinks.put(url, "anchor");
}
u = url.toNormalform(true, false);
String name = entry.getValue().getProperty("name", "");
if (u.startsWith("mailto:")) {

Loading…
Cancel
Save