From 03c5b4ad68f934bcbb83b8e2d08fa343cb6c6a3a Mon Sep 17 00:00:00 2001 From: fuchsi Date: Wed, 3 Oct 2007 04:00:52 +0000 Subject: [PATCH] more fixes to the yacysearch.rss, it's now 100% valid according to http://feedvalidator.org - RFC-822 date time had to include the time instead of date only - doesn't exist -> , see http://www.opensearch.org/Specifications/OpenSearch/1.1 - elements are mandatory for and git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4131 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/yacysearch.java | 1 + htroot/yacysearch.rss | 7 +++++-- source/de/anomic/plasma/plasmaSwitchboard.java | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/htroot/yacysearch.java b/htroot/yacysearch.java index e5d7ab202..6b8b2ab23 100644 --- a/htroot/yacysearch.java +++ b/htroot/yacysearch.java @@ -381,6 +381,7 @@ public class yacysearch { // adding some additional properties needed for the rss feed String hostName = (String) header.get("Host", "localhost"); if (hostName.indexOf(":") == -1) hostName += ":" + serverCore.getPortNr(env.getConfig("port", "8080")); + prop.put("searchBaseURL", "http://" + hostName + "/yacysearch.html"); prop.put("rssYacyImageURL", "http://" + hostName + "/env/grafics/yacy.gif"); } diff --git a/htroot/yacysearch.rss b/htroot/yacysearch.rss index c5b4960f8..1334a0336 100644 --- a/htroot/yacysearch.rss +++ b/htroot/yacysearch.rss @@ -2,19 +2,22 @@ + xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" + xmlns:atom="http://www.w3.org/2005/Atom"> YaCy P2P-Search for #[former]# Search for #[former]# + #[searchBaseURL]#?search=#[former]#&resource=#[input_resource]#&contentdom=#[input_contentdom]# #[rssYacyImageURL]# Search for #[former]# + #[searchBaseURL]#?search=#[former]#&resource=#[input_resource]#&contentdom=#[input_contentdom]# #[num-results_totalcount]# #[num-results_offset]# #[num-results_itemsPerPage]# -