Add channel_link

This commit is contained in:
Sam Ruby 2006-08-31 17:01:40 -04:00
parent 954093f1bb
commit eda54c62c7
2 changed files with 17 additions and 0 deletions

View File

@ -73,6 +73,7 @@ Base = [
['last_updated_822', Rfc822, 'updated_parsed'], ['last_updated_822', Rfc822, 'updated_parsed'],
['last_updated_iso', Rfc3399, 'updated_parsed'], ['last_updated_iso', Rfc3399, 'updated_parsed'],
['last_updated', PlanetDate, 'updated_parsed'], ['last_updated', PlanetDate, 'updated_parsed'],
['link', String, 'link'],
['logo', String, 'logo'], ['logo', String, 'logo'],
['rights', String, 'rights_detail', 'value'], ['rights', String, 'rights_detail', 'value'],
['subtitle', String, 'subtitle_detail', 'value'], ['subtitle', String, 'subtitle_detail', 'value'],

View File

@ -0,0 +1,16 @@
<!--
Description: id
Expect: Channels[0]['link'] == 'http://example.com/' and Items[0]['channel_link'] == 'http://example.com/'
-->
<feed xmlns="http://www.w3.org/2005/Atom">
<entry>
<source>
<link rel="alternate" href="http://example.com/"/>
</source>
</entry>
<planet:source xmlns:planet='http://planet.intertwingly.net/'>
<link rel="alternate" href="http://example.com/"/>
</planet:source>
</feed>