Bug 9000 [3] - Change conf key from tmpl to template
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>
This commit is contained in:
parent
f159ad9b2b
commit
2da15b6435
7 changed files with 8 additions and 8 deletions
|
@ -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"?>
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in a new issue