Bugzilla – Attachment 30231 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]
[PASSED QA] Bug 9000 [3] - Change conf key from tmpl to template
PASSED-QA-Bug-9000-3---Change-conf-key-from-tmpl-t.patch (text/plain), 6.24 KB, created by
Martin Renvoize (ashimema)
on 2014-07-28 19:22:38 UTC
(
hide
)
Description:
[PASSED QA] Bug 9000 [3] - Change conf key from tmpl to template
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2014-07-28 19:22:38 UTC
Size:
6.24 KB
patch
obsolete
>From 661b5e8908e0447d1ade8759af870b6cfeff15c3 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Mon, 28 Jul 2014 10:10:08 -0400 >Subject: [PATCH] [PASSED QA] 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> >--- > 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: > > <?xml version="1.0" encoding="UTF-8"?> > >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.10.4
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