Bug 9000 [2] - Update included examples
authorKyle M Hall <kyle@bywatersolutions.com>
Mon, 28 Jul 2014 14:06:28 +0000 (10:06 -0400)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Tue, 29 Jul 2014 19:25:28 +0000 (16:25 -0300)
Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
15 files changed:
misc/cronjobs/rss/lastAcquired-1.0.conf
misc/cronjobs/rss/lastAcquired-1.0.tmpl [deleted file]
misc/cronjobs/rss/lastAcquired-1.0.tt [new file with mode: 0644]
misc/cronjobs/rss/lastAcquired-2.0.conf
misc/cronjobs/rss/lastAcquired-2.0.tmpl [deleted file]
misc/cronjobs/rss/lastAcquired-2.0.tt [new file with mode: 0644]
misc/cronjobs/rss/lastAcquired.conf
misc/cronjobs/rss/lastAcquired.tmpl [deleted file]
misc/cronjobs/rss/lastAcquired.tt [new file with mode: 0644]
misc/cronjobs/rss/longestUnseen.conf
misc/cronjobs/rss/longestUnseen.tmpl [deleted file]
misc/cronjobs/rss/longestUnseen.tt [new file with mode: 0644]
misc/cronjobs/rss/mostReserved.conf
misc/cronjobs/rss/mostReserved.tmpl [deleted file]
misc/cronjobs/rss/mostReserved.tt [new file with mode: 0644]

index d70cf71..9f7eb31 100644 (file)
@@ -9,6 +9,6 @@ url=http://www.koha-community.org/images/foo.jpg
 link=http://www.koha-community.org
 description=Koha, the worlds best Open Source Library System
 config
-tmpl=lastAcquired-1.0.tmpl
+tmpl=lastAcquired-1.0.tt
 output=lastAcquired-1.0.xml
 query=select biblio.title as title, biblio.author as author, biblio.biblionumber, 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
diff --git a/misc/cronjobs/rss/lastAcquired-1.0.tmpl b/misc/cronjobs/rss/lastAcquired-1.0.tmpl
deleted file mode 100644 (file)
index 6bd4780..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-<?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?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"/>
-        <!-- /TMPL_LOOP -->
-      </rdf:Seq>
-    </items>
-</channel>
-
-  <!-- TMPL_LOOP NAME="ITEMS" -->
-  <item rdf:about="http://opac.library.org.nz/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">
-  <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?biblionumber=<!-- TMPL_VAR NAME="biblionumber" --></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?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">View Details</a> | <a href="http://opac.library.org.nz/cgi-bin/koha/opac-reserve.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">Reserve this Item</a><!-- TMPL_IF NAME="author" --> | <a href="http://opac.library.org.nz/cgi-bin/koha/opac-search.pl?marclist=biblio.author&amp;and_or=and&amp;excluding=&amp;operator=contains&amp;value=<!-- TMPL_VAR NAME="author" -->&amp;resultsperpage=20&amp;orderby=biblio.title&amp;op=do_search">More by this Author</a><!-- /TMPL_IF -->
-]]></description>
- </item>
-<!-- /TMPL_LOOP -->
-</rdf:RDF>
diff --git a/misc/cronjobs/rss/lastAcquired-1.0.tt b/misc/cronjobs/rss/lastAcquired-1.0.tt
new file mode 100644 (file)
index 0000000..0c137f4
--- /dev/null
@@ -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="[% CHANNELLINK %]">
+       <title>[% CHANNELTITLE %]</title>
+       <link>[% CHANNELLINK %]</link>
+       <description>[% CHANNELDESC %]</description>
+       <language>[% CHANNELLANG %]</language>
+       <lastBuildDate>[% CHANNELLASTBUILD %]</lastBuildDate>
+        <image rdf:about="[% IMAGEURL %]">
+         <title>[% IMAGETITLE %]</title>
+         <url>[% IMAGEURL %]</url>
+         <link>[% IMAGELINK %]</link>
+        </image>
+    <items>
+      <rdf:Seq>
+         [% FOREACH i IN ITEMS %]
+        <rdf:li resource="http://opac.library.org.nz/cgi-bin/koha/opac-detail.pl?biblionumber=[% ibiblionumber %]"/>
+         [% END %]
+      </rdf:Seq>
+    </items>
+</channel>
+
+  [% FOREACH i IN ITEMS %]
+  <item rdf:about="http://opac.library.org.nz/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber %]">
+  <title>[% i.TITLE %][% IF i.AUTHOR %] by [% i.AUTHOR %][% END %]</title>
+  <link>http://opac.library.org.nz/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber %]</link>
+<description><![CDATA[[% TITLE %][% IF i.AUTHOR %] by [% i.AUTHOR %][% END %]
+<br>[% place %] [% i.publishercode %] [% i.publicationyear %]
+<br>[% pages %] [% i.illus %] [% i.size %]
+[% IF i.notes %]<br><br>[% i.notes %][% END %]<br>
+<a href="http://opac.library.org.nz/cgi-bin/koha/opac-detail.pl?biblionumber=[% i.biblionumber %]">View Details</a> | <a href="http://opac.library.org.nz/cgi-bin/koha/opac-reserve.pl?biblionumber=[% i.biblionumber %]">Reserve this Item</a>[% IF i.author %] | <a href="http://opac.library.org.nz/cgi-bin/koha/opac-search.pl?marclist=biblio.author&amp;and_or=and&amp;excluding=&amp;operator=contains&amp;value=[% i.author %]&amp;resultsperpage=20&amp;orderby=biblio.title&amp;op=do_search">More by this Author</a>[% END %]
+]]></description>
+ </item>
+[% END %]
+</rdf:RDF>
index 0a03937..01b6f97 100644 (file)
@@ -11,6 +11,6 @@ description=Koha, the worlds best Open Source Library System
 width=88
 height=31
 config
-tmpl=lastAcquired-2.0.tmpl
+tmpl=lastAcquired-2.0.tt
 output=lastAcquired-2.0.xml
 query=select biblio.title as title, biblio.author as author, biblio.biblionumber, 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
diff --git a/misc/cronjobs/rss/lastAcquired-2.0.tmpl b/misc/cronjobs/rss/lastAcquired-2.0.tmpl
deleted file mode 100644 (file)
index f90942f..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-<?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?biblionumber=<!-- TMPL_VAR NAME="biblionumber" --></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?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">View Details</a> | <a href="http://opac.library.org.nz/cgi-bin/koha/opac-reserve.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">Reserve this Item</a><!-- TMPL_IF NAME="author" --> | <a href="http://opac.library.org.nz/cgi-bin/koha/opac-search.pl?marclist=biblio.author&amp;and_or=and&amp;excluding=&amp;operator=contains&amp;value=<!-- TMPL_VAR NAME="author" -->&amp;resultsperpage=20&amp;orderby=biblio.title&amp;op=do_search">More by this Author</a><!-- /TMPL_IF -->
-]]></description>
- </item>
-<!-- /TMPL_LOOP -->
-
-</channel>
-</rss>
diff --git a/misc/cronjobs/rss/lastAcquired-2.0.tt b/misc/cronjobs/rss/lastAcquired-2.0.tt
new file mode 100644 (file)
index 0000000..85cded6
--- /dev/null
@@ -0,0 +1,34 @@
+<?xml version="1.0"?>
+<rss version="2.0">
+       <channel>
+               <title>[% CHANNELTITLE %]</title>
+               <link>[% CHANNELLINK %]</link>
+               <description>[% CHANNELDESC %]</description>
+               <language>[% CHANNELLANG %]</language>
+               <lastBuildDate>[% CHANNELLASTBUILD %]</lastBuildDate>
+               <docs>http://blogs.law.harvard.edu/tech/rss</docs>
+               <generator>Koha</generator>
+               <image>
+                       <title>[% IMAGETITLE %]</title>
+                       <url>[% IMAGEURL %]</url>
+                       <link>[% IMAGELINK %]</link>
+                       <width>[% IMAGEWIDTH %]</width>
+                       <height>[% IMAGEHEIGHT %]</height>
+                       <description>[% IMAGEDESCRIPTION %]</description>
+               </image>
+
+[% FOREACH i IN ITEMS %]
+ <item>
+  <title>[% i.TITLE %][% IF i.AUTHOR %] by [% i.AUTHOR %][% END %]</title>
+  <link>http://opac.library.org.nz/cgi-bin/koha/opac-detail.pl?biblionumber=[% i.biblionumber %]</link>
+<description><![CDATA[[% i.TITLE %][% IF i.AUTHOR %] by [%  i.AUTHOR %][% END %]
+<br>[% IF i.publishercode %][% i.place %] [%  i.publishercode %] [%  publicationyear %]<br>[% END %]
+[% IF i.pages %][% i.pages %][% i.illus %][% i.size %][% END %]
+[% IF i.notes %]<p>[% i.notes %]</p>[% END %]<br>
+<a href="http://opac.library.org.nz/cgi-bin/koha/opac-detail.pl?biblionumber=[% i.biblionumber %]">View Details</a> | <a href="http://opac.library.org.nz/cgi-bin/koha/opac-reserve.pl?biblionumber=[% i.biblionumber %]">Reserve this Item</a>[% IF i.author %] | <a href="http://opac.library.org.nz/cgi-bin/koha/opac-search.pl?marclist=biblio.author&amp;and_or=and&amp;excluding=&amp;operator=contains&amp;value=[% i.author %]&amp;resultsperpage=20&amp;orderby=biblio.title&amp;op=do_search">More by this Author</a>[% END %]
+]]></description>
+ </item>
+[% END %]
+
+</channel>
+</rss>
index 1147d94..4a6abaa 100644 (file)
@@ -9,7 +9,7 @@ title=Koha, the world's best Open Source Library System
 url=http://www.koha-community.org/images/foo.jpg
 link=http://www.koha-community.org
 config
-tmpl=lastAcquired.tmpl
+tmpl=lastAcquired.tt
 output=lastAcquired.xml
 query=select biblio.title as title, biblio.author as author, biblio.biblionumber 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
 
diff --git a/misc/cronjobs/rss/lastAcquired.tmpl b/misc/cronjobs/rss/lastAcquired.tmpl
deleted file mode 100644 (file)
index b47cd18..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!DOCTYPE rss PUBLIC "-//Netscape Communications/DTD RSS 0.91/EN"
-         "http://my.netscape.com/publish/formats/rss-0.91.dtd">
-
-<rss version="0.91">
-
-<channel>
- <title><TMPL_VAR CHANNELTITLE></title>
- <link><TMPL_VAR CHANNELLINK></link>
- <description><TMPL_VAR CHANNELDESC></description>
- <language><TMPL_VAR CHANNELLANG></language>
- <lastBuildDate><TMPL_VAR CHANNELLASTBUILD></lastBuildDate>
-
- <image>
-  <title><TMPL_VAR IMAGETITLE></title>
-  <url><TMPL_VAR IMAGEURL></url>
-  <link><TMPL_VAR IMAGELINK></link>
- </image>
-
-<TMPL_LOOP NAME=ITEMS>
- <item>
-  <title><TMPL_VAR TITLE>, by <TMPL_VAR AUTHOR></title>
-  <link>http://opac.library.org.nz/cgi-bin/koha/opac-detail.pl?biblionumber=<TMPL_VAR NAME="biblionumber"></link>
-
- </item>
-</TMPL_LOOP>
-
-</channel>
-</rss>
diff --git a/misc/cronjobs/rss/lastAcquired.tt b/misc/cronjobs/rss/lastAcquired.tt
new file mode 100644 (file)
index 0000000..6e92e2f
--- /dev/null
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE rss PUBLIC "-//Netscape Communications/DTD RSS 0.91/EN"
+         "http://my.netscape.com/publish/formats/rss-0.91.dtd">
+
+<rss version="0.91">
+
+<channel>
+ <title>[% CHANNELTITLE %]</title>
+ <link>[% CHANNELLINK %]</link>
+ <description>[% CHANNELDESC %]</description>
+ <language>[% CHANNELLANG %]</language>
+ <lastBuildDate>[% CHANNELLASTBUILD %]</lastBuildDate>
+
+ <image>
+  <title>[% IMAGETITLE %]</title>
+  <url>[% IMAGEURL %]</url>
+  <link>[% IMAGELINK %]</link>
+ </image>
+
+[% FOREACH i IN ITEMS %]
+ <item>
+  <title>[% i.TITLE %], by [% i.AUTHOR %]</title>
+  <link>http://opac.library.org.nz/cgi-bin/koha/opac-detail.pl?biblionumber=[% i.biblionumber %]</link>
+
+ </item>
+[% END %]
+
+</channel>
+</rss>
index 7c0218c..7268556 100644 (file)
@@ -8,7 +8,7 @@ title=Koha, the worlds best Open Source Library System
 url=http://www.koha-community.org/images/foo.jpg
 link=http://www.koha-community.org
 config
-tmpl=longestUnseen.tmpl
+tmpl=longestUnseen.tt
 output=longestUnseen.xml
 query=select biblioitems.isbn as isbn, biblio.title as title, biblio.author as author from biblio, biblioitems, items where biblioitems.biblionumber = items.biblionumber and biblio.biblionumber = items.biblionumber and items.datelastseen is not NULL and items.datelastseen != items.datelastborrowed order by items.datelastseen
 
diff --git a/misc/cronjobs/rss/longestUnseen.tmpl b/misc/cronjobs/rss/longestUnseen.tmpl
deleted file mode 100644 (file)
index 99893bc..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!DOCTYPE rss PUBLIC "-//Netscape Communications/DTD RSS 0.91/EN"
-         "http://my.netscape.com/publish/formats/rss-0.91.dtd">
-
-<rss version="0.91">
-
-<channel>
- <title><TMPL_VAR CHANNELTITLE></title>
- <link><TMPL_VAR CHANNELLINK></link>
- <description><TMPL_VAR CHANNELDESC></description>
- <language><TMPL_VAR CHANNELLANG></language>
- <lastBuildDate><TMPL_VAR CHANNELLASTBUILD></lastBuildDate>
-
- <image>
-  <title><TMPL_VAR IMAGETITLE></title>
-  <url><TMPL_VAR IMAGEURL></url>
-  <link><TMPL_VAR IMAGELINK></link>
- </image>
-
-<TMPL_LOOP NAME=ITEMS>
- <item>
-  <title><TMPL_VAR TITLE>, by <TMPL_VAR AUTHOR></title>
-  <link>http://opac.library.org.nz/cgi-bin/koha/opac-searchresults.pl?isbn=<TMPL_VAR ISBN></link>
-
- </item>
-</TMPL_LOOP>
-
-</channel>
-</rss>
diff --git a/misc/cronjobs/rss/longestUnseen.tt b/misc/cronjobs/rss/longestUnseen.tt
new file mode 100644 (file)
index 0000000..12f6061
--- /dev/null
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE rss PUBLIC "-//Netscape Communications/DTD RSS 0.91/EN"
+         "http://my.netscape.com/publish/formats/rss-0.91.dtd">
+
+<rss version="0.91">
+
+<channel>
+ <title>[% CHANNELTITLE></title>
+ <link>[% CHANNELLINK %]</link>
+ <description>[% CHANNELDESC %]</description>
+ <language>[% CHANNELLANG %]</language>
+ <lastBuildDate>[% CHANNELLASTBUILD %]</lastBuildDate>
+
+ <image>
+  <title>[% IMAGETITLE %]</title>
+  <url>[% IMAGEURL %]</url>
+  <link>[% IMAGELINK %]</link>
+ </image>
+
+[% FOREACH i IN ITEMS %]
+ <item>
+  <title>[% i.TITLE %], by [% i.AUTHOR %]</title>
+  <link>http://opac.library.org.nz/cgi-bin/koha/opac-searchresults.pl?isbn=[% i.ISBN %]</link>
+
+ </item>
+[% END %]
+
+</channel>
+</rss>
index f6c44ad..9ef65a3 100644 (file)
@@ -8,7 +8,7 @@ title=Koha, the worlds best Open Source Library System
 url=http://www.koha-community.org/images/foo.jpg
 link=http://www.koha-community.org
 config
-tmpl=mostReserved.tmpl
+tmpl=mostReserved.tt
 output=mostReserved.xml
 query=select biblioitems.isbn as isbn, biblio.title as title, biblio.author as author from biblio, biblioitems, items where biblioitems.biblionumber = items.biblionumber and biblio.biblionumber = items.biblionumber and items.reserves is not NULL order by items.reserves desc
 
diff --git a/misc/cronjobs/rss/mostReserved.tmpl b/misc/cronjobs/rss/mostReserved.tmpl
deleted file mode 100644 (file)
index 99893bc..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!DOCTYPE rss PUBLIC "-//Netscape Communications/DTD RSS 0.91/EN"
-         "http://my.netscape.com/publish/formats/rss-0.91.dtd">
-
-<rss version="0.91">
-
-<channel>
- <title><TMPL_VAR CHANNELTITLE></title>
- <link><TMPL_VAR CHANNELLINK></link>
- <description><TMPL_VAR CHANNELDESC></description>
- <language><TMPL_VAR CHANNELLANG></language>
- <lastBuildDate><TMPL_VAR CHANNELLASTBUILD></lastBuildDate>
-
- <image>
-  <title><TMPL_VAR IMAGETITLE></title>
-  <url><TMPL_VAR IMAGEURL></url>
-  <link><TMPL_VAR IMAGELINK></link>
- </image>
-
-<TMPL_LOOP NAME=ITEMS>
- <item>
-  <title><TMPL_VAR TITLE>, by <TMPL_VAR AUTHOR></title>
-  <link>http://opac.library.org.nz/cgi-bin/koha/opac-searchresults.pl?isbn=<TMPL_VAR ISBN></link>
-
- </item>
-</TMPL_LOOP>
-
-</channel>
-</rss>
diff --git a/misc/cronjobs/rss/mostReserved.tt b/misc/cronjobs/rss/mostReserved.tt
new file mode 100644 (file)
index 0000000..f69d135
--- /dev/null
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE rss PUBLIC "-//Netscape Communications/DTD RSS 0.91/EN"
+         "http://my.netscape.com/publish/formats/rss-0.91.dtd">
+
+<rss version="0.91">
+
+<channel>
+ <title>[% CHANNELTITLE %]</title>
+ <link>[% CHANNELLINK %]</link>
+ <description>[% CHANNELDESC %]</description>
+ <language>[% CHANNELLANG %]</language>
+ <lastBuildDate>[% CHANNELLASTBUILD %]</lastBuildDate>
+
+ <image>
+  <title>[% IMAGETITLE %]</title>
+  <url>[% IMAGEURL %]</url>
+  <link>[% IMAGELINK %]</link>
+ </image>
+
+[% FOREACH i IN ITEMS %]
+ <item>
+  <title>[% TITLE %], by [% AUTHOR %]</title>
+  <link>http://opac.library.org.nz/cgi-bin/koha/opac-searchresults.pl?isbn=[% ISBN %]</link>
+
+ </item>
+[% END %]
+
+</channel>
+</rss>