Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
fixed bug with image search in yacyinteractive
Michael Peter Christen81926c055d07
diff --git a/htroot/js/yacyinteractive.js b/htroot/js/yacyinteractive.jsindex 2f8b0a5ce..def497d52 100644--- a/htroot/js/yacyinteractive.js+++ b/htroot/js/yacyinteractive.js@@ -233,7 +233,7 @@ function resultLine(type, item, linenumber) {if (type == "image") {html += "<div style=\"float:left\">";html += "<a href=\"" + item.link + "\" class=\"thumblink\" onclick=\"return hs.expand(this)\">";- html += "<img src=\"/ViewImage.png?maxwidth=96&maxheight=96&code=" + item.guid + "\" alt=\"" + title + "\" />";+ html += "<img src=\"/ViewImage.png?maxwidth=96&maxheight=96&code=" + item.guid + " + &url=" + item.link + "\" alt=\"" + title + "\" />";//html += "<img src=\"" + item.link + "\" width=\"96\" height=\"96\" alt=\"" + title + "\" />";html += "</a>";var name = title;diff --git a/htroot/yacysearchitem.java b/htroot/yacysearchitem.javaindex d42b3bf7d..7023cf95c 100644--- a/htroot/yacysearchitem.java+++ b/htroot/yacysearchitem.java@@ -243,7 +243,7 @@ public class yacysearchitem {}EventTracker.update(EventTracker.EClass.SEARCH, new ProfilingGraph.EventSearch(theSearch.query.id(true), SearchEventType.FINALIZATION, "" + item, 0, 0), false);final String ext = MultiProtocolURL.getFileExtension(resultFileName).toLowerCase();- if (ext.equals("png") || ext.equals("jpg") || ext.equals("gif")) {+ if (MultiProtocolURL.isImage(ext)) {final String license = URLLicense.aquireLicense(resultURL);prop.put("content_code", license);} else {