From ba5a59a28ddcf23f9ea882b05d7d5341fd02f24f Mon Sep 17 00:00:00 2001 From: reger Date: Thu, 3 Jul 2014 22:01:13 +0200 Subject: [PATCH] make search result also avail. as atom feed via /yacysearch.atom - fix logo in rss feed --- htroot/opensearchdescription.xml | 1 + htroot/yacysearch.atom | 21 +++++++++++++++++++++ htroot/yacysearch.java | 2 +- htroot/yacysearchitem.atom | 11 +++++++++++ 4 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 htroot/yacysearch.atom create mode 100644 htroot/yacysearchitem.atom diff --git a/htroot/opensearchdescription.xml b/htroot/opensearchdescription.xml index 3d513564b..4d8a61c17 100644 --- a/htroot/opensearchdescription.xml +++ b/htroot/opensearchdescription.xml @@ -15,6 +15,7 @@ #(compareyacy)# + :: #(/compareyacy)# diff --git a/htroot/yacysearch.atom b/htroot/yacysearch.atom new file mode 100644 index 000000000..d7db11ad4 --- /dev/null +++ b/htroot/yacysearch.atom @@ -0,0 +1,21 @@ + + + + + #[promoteSearchPageGreeting]#: #[rss_query]# + Search for #[rss_query]# + #[searchBaseURL]#?query=#[rss_queryenc]#&resource=#[resource]#&contentdom=#[contentdom]#&verify=#[search.verify]# + #[rssYacyImageURL]# + #[num-results_offset]# + #[num-results_itemsPerPage]# + + + +#{results}# + +#{/results}# + + \ No newline at end of file diff --git a/htroot/yacysearch.java b/htroot/yacysearch.java index da8b295d3..e3ec46db4 100644 --- a/htroot/yacysearch.java +++ b/htroot/yacysearch.java @@ -150,7 +150,7 @@ public class yacysearch { hostName += ":" + env.getConfig("port", "8090"); } prop.put("searchBaseURL", "http://" + hostName + "/yacysearch.html"); - prop.put("rssYacyImageURL", "http://" + hostName + "/env/grafics/yacy.gif"); + prop.put("rssYacyImageURL", "http://" + hostName + "/env/grafics/yacy.png"); prop.put("thisaddress", hostName); final boolean clustersearch = sb.isRobinsonMode() && sb.getConfig(SwitchboardConstants.CLUSTER_MODE, "").equals(SwitchboardConstants.CLUSTER_MODE_PUBLIC_CLUSTER); final boolean indexReceiveGranted = sb.getConfigBool(SwitchboardConstants.INDEX_RECEIVE_ALLOW_SEARCH, true) || clustersearch; diff --git a/htroot/yacysearchitem.atom b/htroot/yacysearchitem.atom new file mode 100644 index 000000000..f75f3f73c --- /dev/null +++ b/htroot/yacysearchitem.atom @@ -0,0 +1,11 @@ +#(content)#:: +#[title-xml]# + +#[description-xml]# +#[date822]# + + + +#[urlhash]# + +#(/content)# \ No newline at end of file