Skip to content

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

fix for rss/xml output for image search from AndreasB

orbiter2126dffea277
diff --git a/htroot/yacysearchitem.java b/htroot/yacysearchitem.java
index b693cb2d0..9644560df 100644
--- a/htroot/yacysearchitem.java
+++ b/htroot/yacysearchitem.java
@@ -177,6 +177,7 @@ public class yacysearchitem {
prop.put("content_item_attr", (ms.attr.equals("-1 x -1")) ? "" : "(" + ms.attr + ")"); // attributes, here: original size of image
prop.put("content_item_urlhash", ms.source.hash());
prop.put("content_item_source", ms.source.toNormalform(true, false));
+ prop.putXML("content_item_source-xml", ms.source.toNormalform(true, false));
prop.put("content_item_sourcedom", ms.source.getHost());
prop.put("content_item_nl", (item == 0) ? 0 : 1);
prop.put("content_item", 1);
diff --git a/htroot/yacysearchitem.xml b/htroot/yacysearchitem.xml
index 2280f0844..12ce3701d 100644
--- a/htroot/yacysearchitem.xml
+++ b/htroot/yacysearchitem.xml
@@ -12,7 +12,7 @@
</item>::
#(item)#::<item>
<title>#[name]#</title>
-<link>#[source]#</link>
+<link>#[source-xml]#</link>
<description></description>
<pubDate></pubDate>
<guid isPermaLink="false">#[urlhash]#</guid>