fix: follow link target setting on image search

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7962 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
lotus 2011-09-18 16:59:01 +00:00
parent ce2a76d603
commit 6fba6e7cee
2 changed files with 3 additions and 2 deletions

View File

@ -30,10 +30,10 @@
</div>
::
#(item)#::<div class="thumbcontainer">
<a href="#[hrefCache]#" class="thumblink" onclick="return hs.expand(this)">
<a href="#[hrefCache]#" target="#[target]#" class="thumblink" onclick="return hs.expand(this)">
<img src="/ViewImage.png?maxwidth=96&amp;maxheight=96&amp;code=#[code]#" alt="#[name]#" />
</a>
<div class="highslide-caption"><a href="#[href]#">#[name]#</a><br /><a href="#[source]#">#[sourcedom]#</a></div>
<div class="highslide-caption"><a href="#[href]#" target="#[target]#">#[name]#</a><br /><a href="#[source]#" target="#[target]#">#[sourcedom]#</a></div>
<!--
<div class="TableCellDark"><a href="#[href]#">#[name]#</a><br />#[attr]#</div>
-->

View File

@ -217,6 +217,7 @@ public class yacysearchitem {
sb.loader.loadIfNotExistBackground(ms.href.toNormalform(true, false), 1024 * 1024 * 10);
prop.putHTML("content_item_hrefCache", (auth) ? "/ViewImage.png?url=" + ms.href.toNormalform(true, false) : ms.href.toNormalform(true, false));
prop.putHTML("content_item_href", ms.href.toNormalform(true, false));
prop.putHTML("content_item_target", target);
prop.put("content_item_code", license);
prop.putHTML("content_item_name", shorten(ms.name, MAX_NAME_LENGTH));
prop.put("content_item_mimetype", ms.mime);