From 0dc0c3ff69ffe69f0cd6554737d9873ea0ec854c Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Mon, 28 Jul 2014 10:10:08 -0400 Subject: [PATCH] [SIGNED-OFF] Bug 9000 [3] - Change conf key from tmpl to template Signed-off-by: Bernardo Gonzalez Kriegel --- misc/cronjobs/rss/README | 4 ++-- misc/cronjobs/rss/lastAcquired-1.0.conf | 2 +- misc/cronjobs/rss/lastAcquired-2.0.conf | 2 +- misc/cronjobs/rss/lastAcquired.conf | 2 +- misc/cronjobs/rss/longestUnseen.conf | 2 +- misc/cronjobs/rss/mostReserved.conf | 2 +- misc/cronjobs/rss/rss.pl | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/misc/cronjobs/rss/README b/misc/cronjobs/rss/README index 6c4a70f..b3967d5 100644 --- a/misc/cronjobs/rss/README +++ b/misc/cronjobs/rss/README @@ -51,7 +51,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=lastAcquired.tt +template=lastAcquired.tt output=lastAcquired.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.dateaccessioned is not NULL order by items.dateaccessioned desc @@ -61,7 +61,7 @@ in the template. Most of the template is boilerplate and should not be edited. The section within the [% FOREACH i IN ITEMS %] ... [% END %] is the part which can be modified to create your own RSS content. -Here's the lastAcquired.tmpl file: +Here's the lastAcquired.tt file: diff --git a/misc/cronjobs/rss/lastAcquired-1.0.conf b/misc/cronjobs/rss/lastAcquired-1.0.conf index 9f7eb31..43ac6a3 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.tt +template=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-2.0.conf b/misc/cronjobs/rss/lastAcquired-2.0.conf index 01b6f97..1ee6169 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.tt +template=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.conf b/misc/cronjobs/rss/lastAcquired.conf index 4a6abaa..68fe4ac 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.tt +template=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/longestUnseen.conf b/misc/cronjobs/rss/longestUnseen.conf index 7268556..8dffeb5 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.tt +template=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/mostReserved.conf b/misc/cronjobs/rss/mostReserved.conf index 9ef65a3..b3771fc 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.tt +template=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/rss.pl b/misc/cronjobs/rss/rss.pl index d87e342..2dbd2f9 100755 --- a/misc/cronjobs/rss/rss.pl +++ b/misc/cronjobs/rss/rss.pl @@ -57,7 +57,7 @@ my $vars = { ITEMS => getItems( $config{'query'} ) }; -my $template_path = $config{"tmpl"}; +my $template_path = $config{"template"}; open( my $fh, "<", $template_path ) or die "cannot open $template_path : $!"; $feed->process( $fh, $vars, $outFile ); -- 1.7.9.5