Bugzilla – Attachment 30203 Details for
Bug 9000
misc/cronjobs/rss/rss.pl uses HTP
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9000 [2] - Update included examples
Bug-9000-2---Update-included-examples.patch (text/plain), 20.83 KB, created by
Kyle M Hall (khall)
on 2014-07-28 14:10:58 UTC
(
hide
)
Description:
Bug 9000 [2] - Update included examples
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2014-07-28 14:10:58 UTC
Size:
20.83 KB
patch
obsolete
>From efd3940c0272d944606ca7a2863d3894dfdb16e7 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Mon, 28 Jul 2014 10:06:28 -0400 >Subject: [PATCH] Bug 9000 [2] - Update included examples > >--- > misc/cronjobs/rss/lastAcquired-1.0.conf | 2 +- > misc/cronjobs/rss/lastAcquired-1.0.tmpl | 39 ------------------------------- > misc/cronjobs/rss/lastAcquired-1.0.tt | 39 +++++++++++++++++++++++++++++++ > misc/cronjobs/rss/lastAcquired-2.0.conf | 2 +- > misc/cronjobs/rss/lastAcquired-2.0.tmpl | 34 --------------------------- > misc/cronjobs/rss/lastAcquired-2.0.tt | 34 +++++++++++++++++++++++++++ > misc/cronjobs/rss/lastAcquired.conf | 2 +- > misc/cronjobs/rss/lastAcquired.tmpl | 30 ----------------------- > misc/cronjobs/rss/lastAcquired.tt | 30 +++++++++++++++++++++++ > misc/cronjobs/rss/longestUnseen.conf | 2 +- > misc/cronjobs/rss/longestUnseen.tmpl | 30 ----------------------- > misc/cronjobs/rss/longestUnseen.tt | 30 +++++++++++++++++++++++ > misc/cronjobs/rss/mostReserved.conf | 2 +- > misc/cronjobs/rss/mostReserved.tmpl | 30 ----------------------- > misc/cronjobs/rss/mostReserved.tt | 30 +++++++++++++++++++++++ > 15 files changed, 168 insertions(+), 168 deletions(-) > delete mode 100644 misc/cronjobs/rss/lastAcquired-1.0.tmpl > create mode 100644 misc/cronjobs/rss/lastAcquired-1.0.tt > delete mode 100644 misc/cronjobs/rss/lastAcquired-2.0.tmpl > create mode 100644 misc/cronjobs/rss/lastAcquired-2.0.tt > delete mode 100644 misc/cronjobs/rss/lastAcquired.tmpl > create mode 100644 misc/cronjobs/rss/lastAcquired.tt > delete mode 100644 misc/cronjobs/rss/longestUnseen.tmpl > create mode 100644 misc/cronjobs/rss/longestUnseen.tt > delete mode 100644 misc/cronjobs/rss/mostReserved.tmpl > create mode 100644 misc/cronjobs/rss/mostReserved.tt > >diff --git a/misc/cronjobs/rss/lastAcquired-1.0.conf b/misc/cronjobs/rss/lastAcquired-1.0.conf >index d70cf71..9f7eb31 100644 >--- a/misc/cronjobs/rss/lastAcquired-1.0.conf >+++ b/misc/cronjobs/rss/lastAcquired-1.0.conf >@@ -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 >index 6bd4780..0000000 >--- a/misc/cronjobs/rss/lastAcquired-1.0.tmpl >+++ /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&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> >diff --git a/misc/cronjobs/rss/lastAcquired-1.0.tt b/misc/cronjobs/rss/lastAcquired-1.0.tt >new file mode 100644 >index 0000000..d9f8468 >--- /dev/null >+++ b/misc/cronjobs/rss/lastAcquired-1.0.tt >@@ -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&and_or=and&excluding=&operator=contains&value=[% i.author %]&resultsperpage=20&orderby=biblio.title&op=do_search">More by this Author</a>[% END %] >+]]></description> >+ </item> >+[% END %] >+</rdf:RDF> >diff --git a/misc/cronjobs/rss/lastAcquired-2.0.conf b/misc/cronjobs/rss/lastAcquired-2.0.conf >index 0a03937..01b6f97 100644 >--- a/misc/cronjobs/rss/lastAcquired-2.0.conf >+++ b/misc/cronjobs/rss/lastAcquired-2.0.conf >@@ -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 >index f90942f..0000000 >--- a/misc/cronjobs/rss/lastAcquired-2.0.tmpl >+++ /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&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> >diff --git a/misc/cronjobs/rss/lastAcquired-2.0.tt b/misc/cronjobs/rss/lastAcquired-2.0.tt >new file mode 100644 >index 0000000..85cded6 >--- /dev/null >+++ b/misc/cronjobs/rss/lastAcquired-2.0.tt >@@ -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&and_or=and&excluding=&operator=contains&value=[% i.author %]&resultsperpage=20&orderby=biblio.title&op=do_search">More by this Author</a>[% END %] >+]]></description> >+ </item> >+[% END %] >+ >+</channel> >+</rss> >diff --git a/misc/cronjobs/rss/lastAcquired.conf b/misc/cronjobs/rss/lastAcquired.conf >index 1147d94..4a6abaa 100644 >--- a/misc/cronjobs/rss/lastAcquired.conf >+++ b/misc/cronjobs/rss/lastAcquired.conf >@@ -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 >index b47cd18..0000000 >--- a/misc/cronjobs/rss/lastAcquired.tmpl >+++ /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 >index 0000000..6e92e2f >--- /dev/null >+++ b/misc/cronjobs/rss/lastAcquired.tt >@@ -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> >diff --git a/misc/cronjobs/rss/longestUnseen.conf b/misc/cronjobs/rss/longestUnseen.conf >index 7c0218c..7268556 100644 >--- a/misc/cronjobs/rss/longestUnseen.conf >+++ b/misc/cronjobs/rss/longestUnseen.conf >@@ -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 >index 99893bc..0000000 >--- a/misc/cronjobs/rss/longestUnseen.tmpl >+++ /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 >index 0000000..12f6061 >--- /dev/null >+++ b/misc/cronjobs/rss/longestUnseen.tt >@@ -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> >diff --git a/misc/cronjobs/rss/mostReserved.conf b/misc/cronjobs/rss/mostReserved.conf >index f6c44ad..9ef65a3 100644 >--- a/misc/cronjobs/rss/mostReserved.conf >+++ b/misc/cronjobs/rss/mostReserved.conf >@@ -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 >index 99893bc..0000000 >--- a/misc/cronjobs/rss/mostReserved.tmpl >+++ /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 >index 0000000..f69d135 >--- /dev/null >+++ b/misc/cronjobs/rss/mostReserved.tt >@@ -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> >-- >1.7.2.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 9000
:
29088
|
29127
|
29134
|
30202
|
30203
|
30204
|
30205
|
30206
|
30207
|
30219
|
30220
|
30221
|
30222
|
30223
|
30229
|
30230
|
30231
|
30232
|
30233