| 1 |
<?xml version="1.0" encoding="utf-8"?> |
|---|
| 2 |
<rdf:RDF |
|---|
| 3 |
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" |
|---|
| 4 |
xmlns:dc="http://purl.org/dc/elements/1.1/" |
|---|
| 5 |
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" |
|---|
| 6 |
xmlns:content="http://purl.org/rss/1.0/modules/content/" |
|---|
| 7 |
xmlns="http://purl.org/rss/1.0/" |
|---|
| 8 |
xmlns:tal="http://xml.zope.org/namespaces/tal"> |
|---|
| 9 |
<tal:x define="dummy python:request.RESPONSE.setHeader('Content-Type', 'text/xml')" /> |
|---|
| 10 |
<tal:x define="max_items here/portal_syndication/getMaxItems; |
|---|
| 11 |
items python:here.getSyndicatableContent(here)[:int(max_items)];"> |
|---|
| 12 |
<channel tal:attributes="rdf:about here/absolute_url"> |
|---|
| 13 |
|
|---|
| 14 |
<title tal:define="portal_title here/portal_properties/title; |
|---|
| 15 |
here_title here/title_or_id; |
|---|
| 16 |
template_title template/title_or_id; |
|---|
| 17 |
here_title python:test( portal_title != here_title, |
|---|
| 18 |
here_title, |
|---|
| 19 |
template_title )" |
|---|
| 20 |
tal:content="string:$portal_title - $here_title">Title of page</title> |
|---|
| 21 |
<link tal:content="here/portal_url"></link> |
|---|
| 22 |
<description tal:content="here/Description"> |
|---|
| 23 |
|
|---|
| 24 |
</description> |
|---|
| 25 |
<image rdf:resource="logo.jpg" /> |
|---|
| 26 |
<sy:updatePeriod><tal:replace replace="here/portal_syndication/getUpdatePeriod" /></sy:updatePeriod> |
|---|
| 27 |
<sy:updateFrequency><tal:replace replace="here/portal_syndication/getUpdateFrequency" /></sy:updateFrequency> |
|---|
| 28 |
<sy:updateBase><tal:replace replace="python: here.portal_syndication.getHTML4UpdateBase(here)" /></sy:updateBase> |
|---|
| 29 |
<items> |
|---|
| 30 |
<rdf:Seq> |
|---|
| 31 |
<tal:repeat repeat="item items"> |
|---|
| 32 |
<rdf:li tal:attributes="rdf:resource item/absolute_url" /> |
|---|
| 33 |
</tal:repeat> |
|---|
| 34 |
</rdf:Seq> |
|---|
| 35 |
</items> |
|---|
| 36 |
</channel> |
|---|
| 37 |
<tal:repeat repeat="item items"> |
|---|
| 38 |
<item tal:attributes="rdf:about item/Identifier"> |
|---|
| 39 |
<title tal:content="item/Title"></title> |
|---|
| 40 |
<link tal:content="item/Identifier"></link> |
|---|
| 41 |
<description tal:content="item/Description"> |
|---|
| 42 |
</description> |
|---|
| 43 |
<content:encoded tal:on-error=" " tal:content="structure item/render_body"> </content:encoded> |
|---|
| 44 |
<dc:publisher tal:content="item/Publisher"></dc:publisher> |
|---|
| 45 |
<dc:creator tal:content="item/Creator"></dc:creator> |
|---|
| 46 |
<dc:rights tal:content="item/Rights"></dc:rights> |
|---|
| 47 |
<tal:repeat repeat="subj item/Subject"> |
|---|
| 48 |
<dc:subject tal:content="subj"> |
|---|
| 49 |
</dc:subject> |
|---|
| 50 |
</tal:repeat> |
|---|
| 51 |
<tal:repeat repeat="tag item/EntryTag" |
|---|
| 52 |
tal:on-error="string:"> |
|---|
| 53 |
<dc:subject tal:content="tag"> |
|---|
| 54 |
</dc:subject> |
|---|
| 55 |
</tal:repeat> |
|---|
| 56 |
<dc:date tal:content="python: DateTime(item.Date()).strftime('%Y-%m-%dT%H:%M+00:00')"></dc:date> |
|---|
| 57 |
</item> |
|---|
| 58 |
</tal:repeat> |
|---|
| 59 |
</tal:x> |
|---|
| 60 |
</rdf:RDF> |
|---|
| 61 |
|
|---|
| 62 |
|
|---|