adding totalResults and id to atom feed output

pull/1/head
reger 10 years ago
parent ebd0be2cea
commit 8ed6550261

@ -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>

@ -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)#
Loading…
Cancel
Save