Skip to content

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

adding totalResults and id to atom feed output

reger8ed6550261a0
diff --git a/htroot/yacysearch.atom b/htroot/yacysearch.atom
index d7db11ad4..ab189c906 100644
--- a/htroot/yacysearch.atom
+++ b/htroot/yacysearch.atom
@@ -1,21 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"
xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/"
- xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:yacy="http://www.yacy.net/"
>
<!-- YaCy Search Engine; http://yacy.net -->
<title>#[promoteSearchPageGreeting]#: #[rss_query]#</title>
- <description>Search for #[rss_query]#</description>
- <link>#[searchBaseURL]#?query=#[rss_queryenc]#&amp;resource=#[resource]#&amp;contentdom=#[contentdom]#&amp;verify=#[search.verify]#</link>
+ <subtitle>Search for #[rss_query]#</subtitle>
<logo>#[rssYacyImageURL]#</logo>
<opensearch:startIndex>#[num-results_offset]#</opensearch:startIndex>
<opensearch:itemsPerPage>#[num-results_itemsPerPage]#</opensearch:itemsPerPage>
<link rel="search" href="http://#[thisaddress]#/opensearchdescription.xml" type="application/opensearchdescription+xml"/>
<opensearch:Query role="request" searchTerms="#[rss_queryenc]#" />
+ <id>http://#[clientid]#.yacyh/</id>
#{results}#
<!--#include virtual="yacysearchitem.atom?item=#[item]#&eventID=#[eventID]#" -->
#{/results}#
-
+<!--#include virtual="yacysearchtrailer.xml?eventID=#[eventID]#" -->
</feed>
\ No newline at end of file
diff --git a/htroot/yacysearchitem.atom b/htroot/yacysearchitem.atom
index e4af642c5..15293b033 100644
--- a/htroot/yacysearchitem.atom
+++ b/htroot/yacysearchitem.atom
@@ -6,6 +6,6 @@
<dc:publisher><![CDATA[#[publisher]#]]></dc:publisher>
<author><name><![CDATA[#[creator]#]]></name></author>
<dc:subject><![CDATA[#[subject]#]]></dc:subject>
-<id>#[urlhash]#</id>
+<id>#[link]#</id>
</entry>
#(/content)#
\ No newline at end of file