Adding RSS 1.0 and 2.0 versions of the lastAcquired feed to serve as examples
This commit is contained in:
parent
94b31fb3c8
commit
f4bdd0df8d
|
|
@ -0,0 +1,14 @@
|
|||
channel
|
||||
title=Recent Acquisitions
|
||||
link=http://www.koha.org
|
||||
desc=The library's 15 most recent acquisitions
|
||||
lang=en
|
||||
image
|
||||
title=Koha, the worlds best Open Source Library System
|
||||
url=http://www.koha.org/images/foo.jpg
|
||||
link=http://www.koha.org
|
||||
description=Koha, the worlds best Open Source Library System
|
||||
config
|
||||
tmpl=lastAcquired-1.0.tmpl
|
||||
output=lastAcquired-1.0.xml
|
||||
query=select biblio.title as title, biblio.author as author, biblio.biblionumber as bibid, biblio.notes as notes, biblioitems.place as place, biblioitems.publishercode as publishercode, biblioitems.publicationyear as publicationyear, biblioitems.pages as pages, biblioitems.illus as illus, biblioitems.size as size from biblio, biblioitems, items where biblioitems.biblionumber = items.biblionumber and biblio.biblionumber = items.biblionumber and items.dateaccessioned is not NULL order by items.dateaccessioned desc
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
<?xml version="1.0"?>
|
||||
<rdf:RDF
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns="http://purl.org/rss/1.0/"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
>
|
||||
<channel rdf:about="<!-- TMPL_VAR NAME="CHANNELLINK" -->">
|
||||
<title><!-- TMPL_VAR NAME="CHANNELTITLE" --></title>
|
||||
<link><!-- TMPL_VAR NAME="CHANNELLINK" --></link>
|
||||
<description><!-- TMPL_VAR NAME="CHANNELDESC" --></description>
|
||||
<language><!-- TMPL_VAR NAME="CHANNELLANG" --></language>
|
||||
<lastBuildDate><!-- TMPL_VAR NAME="CHANNELLASTBUILD" --></lastBuildDate>
|
||||
<image rdf:about="<!-- TMPL_VAR NAME="IMAGEURL" -->">
|
||||
<title><!-- TMPL_VAR NAME="IMAGETITLE" --></title>
|
||||
<url><!-- TMPL_VAR NAME="IMAGEURL" --></url>
|
||||
<link><!-- TMPL_VAR NAME="IMAGELINK" --></link>
|
||||
</image>
|
||||
<items>
|
||||
<rdf:Seq>
|
||||
<!-- TMPL_LOOP NAME="ITEMS" -->
|
||||
<rdf:li resource="http://opac.library.org.nz/cgi-bin/koha/opac-detail.pl?bib=<!-- TMPL_VAR NAME="bibid" -->"/>
|
||||
<!-- /TMPL_LOOP -->
|
||||
</rdf:Seq>
|
||||
</items>
|
||||
</channel>
|
||||
|
||||
<!-- TMPL_LOOP NAME="ITEMS" -->
|
||||
<item rdf:about="http://opac.library.org.nz/cgi-bin/koha/opac-detail.pl?bib=<!-- TMPL_VAR NAME="bibid" -->">
|
||||
<title><!-- TMPL_VAR NAME="TITLE" --><!-- TMPL_IF NAME="AUTHOR" --> by <!-- TMPL_VAR AUTHOR --><!-- /TMPL_IF --></title>
|
||||
<link>http://opac.library.org.nz/cgi-bin/koha/opac-detail.pl?bib=<!-- TMPL_VAR NAME="bibid" --></link>
|
||||
<description><![CDATA[<!-- TMPL_VAR NAME="TITLE" --><!-- TMPL_IF NAME="AUTHOR" --> by <!-- TMPL_VAR NAME="AUTHOR" --><!-- /TMPL_IF -->
|
||||
<br><!-- TMPL_VAR NAME="place" --> <!-- TMPL_VAR NAME="publishercode" --> <!-- TMPL_VAR NAME="publicationyear" -->
|
||||
<br><!-- TMPL_VAR NAME="pages" --><!-- TMPL_VAR NAME="illus" --><!-- TMPL_VAR NAME="size" -->
|
||||
<!-- TMPL_IF NAME="notes" --><br><br><!-- TMPL_VAR NAME="notes" --><!-- /TMPL_IF --><br>
|
||||
<a href="http://opac.library.org.nz/cgi-bin/koha/opac-detail.pl?bib=<!-- TMPL_VAR NAME="bibid" -->">View Details</a> | <a href="http://opac.library.org.nz/cgi-bin/koha/opac-reserve.pl?bib=<!-- TMPL_VAR NAME="bibid" -->">Reserve this Item</a><!-- TMPL_IF NAME="author" --> | <a href="http://opac.library.org.nz/cgi-bin/koha/opac-search.pl?marclist=biblio.author&and_or=and&excluding=&operator=contains&value=<!-- TMPL_VAR NAME="author" -->&resultsperpage=20&orderby=biblio.title&op=do_search">More by this Author</a><!-- /TMPL_IF -->
|
||||
]]></description>
|
||||
</item>
|
||||
<!-- /TMPL_LOOP -->
|
||||
</rdf:RDF>
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
channel
|
||||
title=Recent Acquisitions
|
||||
link=http://www.koha.org
|
||||
desc=The library's 15 most recent acquisitions
|
||||
lang=en
|
||||
image
|
||||
title=Koha, the worlds best Open Source Library System
|
||||
url=http://www.koha.org/images/foo.jpg
|
||||
link=http://www.koha.org
|
||||
description=Koha, the worlds best Open Source Library System
|
||||
width=88
|
||||
height=31
|
||||
config
|
||||
tmpl=lastAcquired-2.0.tmpl
|
||||
output=lastAcquired-2.0.xml
|
||||
query=select biblio.title as title, biblio.author as author, biblio.biblionumber as bibid, biblio.notes as notes, biblioitems.place as place, biblioitems.publishercode as publishercode, biblioitems.publicationyear as publicationyear, biblioitems.pages as pages, biblioitems.illus as illus, biblioitems.size as size from biblio, biblioitems, items where biblioitems.biblionumber = items.biblionumber and biblio.biblionumber = items.biblionumber and items.dateaccessioned is not NULL order by items.dateaccessioned desc
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
<?xml version="1.0"?>
|
||||
<rss version="2.0">
|
||||
<channel>
|
||||
<title><!-- TMPL_VAR NAME="CHANNELTITLE" --></title>
|
||||
<link><!-- TMPL_VAR NAME="CHANNELLINK" --></link>
|
||||
<description><!-- TMPL_VAR NAME="CHANNELDESC" --></description>
|
||||
<language><!-- TMPL_VAR NAME="CHANNELLANG" --></language>
|
||||
<lastBuildDate><!-- TMPL_VAR NAME="CHANNELLASTBUILD" --></lastBuildDate>
|
||||
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
|
||||
<generator>Koha</generator>
|
||||
<image>
|
||||
<title><!-- TMPL_VAR NAME="IMAGETITLE" --></title>
|
||||
<url><!-- TMPL_VAR NAME="IMAGEURL" --></url>
|
||||
<link><!-- TMPL_VAR NAME="IMAGELINK" --></link>
|
||||
<width><!-- TMPL_VAR NAME="IMAGEWIDTH" --></width>
|
||||
<height><!-- TMPL_VAR NAME="IMAGEHEIGHT" --></height>
|
||||
<description><!-- TMPL_VAR NAME="IMAGEDESCRIPTION" --></description>
|
||||
</image>
|
||||
|
||||
<!-- TMPL_LOOP NAME="ITEMS" -->
|
||||
<item>
|
||||
<title><!-- TMPL_VAR NAME="TITLE" --><!-- TMPL_IF NAME="AUTHOR" --> by <!-- TMPL_VAR NAME="AUTHOR" --><!-- /TMPL_IF --></title>
|
||||
<link>http://opac.library.org.nz/cgi-bin/koha/opac-detail.pl?bib=<!-- TMPL_VAR NAME="bibid" --></link>
|
||||
<description><![CDATA[<!-- TMPL_VAR NAME="TITLE" --><!-- TMPL_IF NAME="AUTHOR" --> by <!-- TMPL_VAR NAME="AUTHOR" --><!-- /TMPL_IF -->
|
||||
<br><!-- TMPL_IF NAME="publishercode" --><!-- TMPL_VAR NAME="place" --> <!-- TMPL_VAR NAME="publishercode" --> <!-- TMPL_VAR NAME="publicationyear" --><br><!-- /TMPL_IF -->
|
||||
<!-- TMPL_IF NAME="pages" --><!-- TMPL_VAR NAME="pages" --><!-- TMPL_VAR NAME="illus" --><!-- TMPL_VAR NAME="size" --><!-- /TMPL_IF -->
|
||||
<!-- TMPL_IF NAME="notes" --><p><!-- TMPL_VAR NAME="notes" --></p><!-- /TMPL_IF --><br>
|
||||
<a href="http://opac.library.org.nz/cgi-bin/koha/opac-detail.pl?bib=<!-- TMPL_VAR NAME="bibid" -->">View Details</a> | <a href="http://opac.library.org.nz/cgi-bin/koha/opac-reserve.pl?bib=<!-- TMPL_VAR NAME="bibid" -->">Reserve this Item</a><!-- TMPL_IF NAME="author" --> | <a href="http://opac.library.org.nz/cgi-bin/koha/opac-search.pl?marclist=biblio.author&and_or=and&excluding=&operator=contains&value=<!-- TMPL_VAR NAME="author" -->&resultsperpage=20&orderby=biblio.title&op=do_search">More by this Author</a><!-- /TMPL_IF -->
|
||||
]]></description>
|
||||
</item>
|
||||
<!-- /TMPL_LOOP -->
|
||||
|
||||
</channel>
|
||||
</rss>
|
||||
Loading…
Reference in New Issue