Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
- Image search expand box, adjust javascript hs padtominsize parameter, to make sure expand box doesn't shrink on small images - asure ImageResult.imagetext has value for the link text (use filename if no alt text given)
reger1d8e1e4bac87
diff --git a/htroot/js/highslide/highslide.js b/htroot/js/highslide/highslide.jsindex c502dbabc..4c9399ae1 100644--- a/htroot/js/highslide/highslide.js+++ b/htroot/js/highslide/highslide.js@@ -49,7 +49,7 @@ focusTitle : 'Click to bring to front',allowMultipleInstances: true,numberOfImagesToPreload : 5,captionSlideSpeed : 1, // set to 0 to disable slide in effect-padToMinWidth : false, // pad the popup width to make room for wide caption+padToMinWidth : true, // pad the popup width to make room for wide captionoutlineWhileAnimating : 2, // 0 = never, 1 = always, 2 = HTML onlyoutlineStartOffset : 3, // ends at 10fullExpandTitle : 'Expand to actual size',diff --git a/source/net/yacy/search/query/SearchEvent.java b/source/net/yacy/search/query/SearchEvent.javaindex 8477cdda2..0d64a7ebe 100644--- a/source/net/yacy/search/query/SearchEvent.java+++ b/source/net/yacy/search/query/SearchEvent.java@@ -1630,7 +1630,7 @@ public final class SearchEvent {this.sourceUrl = sourceUrl;this.imageUrl = imageUrl;this.mimetype = mimetype;- this.imagetext = imagetext;+ this.imagetext = imagetext.isEmpty() ? imageUrl.getFileName() : imagetext;this.width = width;this.height = height;this.fileSize = fileSize;