Bug 9000 [3] - Change conf key from tmpl to template
authorKyle M Hall <kyle@bywatersolutions.com>
Mon, 28 Jul 2014 14:10:08 +0000 (10:10 -0400)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Tue, 29 Jul 2014 19:25:37 +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>
misc/cronjobs/rss/README
misc/cronjobs/rss/lastAcquired-1.0.conf
misc/cronjobs/rss/lastAcquired-2.0.conf
misc/cronjobs/rss/lastAcquired.conf
misc/cronjobs/rss/longestUnseen.conf
misc/cronjobs/rss/mostReserved.conf
misc/cronjobs/rss/rss.pl

index 6c4a70f..b3967d5 100644 (file)
@@ -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:
 
 <?xml version="1.0" encoding="UTF-8"?>
 
index 9f7eb31..43ac6a3 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.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
index 01b6f97..1ee6169 100644 (file)
@@ -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
index 4a6abaa..68fe4ac 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.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
 
index 7268556..8dffeb5 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.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
 
index 9ef65a3..b3771fc 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.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
 
index d87e342..2dbd2f9 100755 (executable)
@@ -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 );