From 714c8b924ede922971086597e382364bf4d79312 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 2 Aug 2011 15:23:00 -0400 Subject: [PATCH] Fix for Bug 6640, Locations not showing in circ reports An invalid template syntax for defining a variable's default value is found in the circ report template and several others: [% DEFAULT LibraryNameTitle="Koha Online" %] Based on the T:T docs this appears to be the correct way of defining a default value: [% LibraryNameTitle or "Koha Online" %] Reference: http://template-toolkit.org/docs/manual/Syntax.html#section_Implicit_Directives_GET_and_SET Signed-off-by: Nicole Engard Signed-off-by: Chris Cormack --- .../intranet-tmpl/prog/en/modules/admin/preferences.tt | 6 +++--- .../intranet-tmpl/prog/en/modules/circ/overdue.tt | 4 ++-- .../prog/en/modules/circ/reserveratios.tt | 4 ++-- .../intranet-tmpl/prog/en/modules/circ/returns.tt | 2 +- .../prog/en/modules/circ/selectbranchprinter.tt | 8 ++++---- .../prog/en/modules/reports/guided_reports_start.tt | 4 ++-- .../prog/en/modules/reports/issues_stats.tt | 10 +++++++--- .../prog/en/modules/reports/reserves_stats.tt | 10 +++++++--- koha-tmpl/opac-tmpl/prog/en/modules/ilsdi.tt | 2 +- .../opac-tmpl/prog/en/modules/opac-readingrecord.tt | 2 +- koha-tmpl/opac-tmpl/prog/en/modules/opac-reserve.tt | 2 +- koha-tmpl/opac-tmpl/prog/en/modules/opac-review.tt | 2 +- koha-tmpl/opac-tmpl/prog/en/modules/opac-tags.tt | 2 +- .../opac-tmpl/prog/en/modules/opac-tags_subject.tt | 2 +- koha-tmpl/opac-tmpl/prog/en/modules/sco/sco-main.tt | 2 +- 15 files changed, 35 insertions(+), 27 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tt index ef7beccabf..6d49ca738c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tt @@ -83,9 +83,9 @@ [% IF ( CHUNK.type_text ) %] [% CHUNK.contents %] [% ELSIF ( CHUNK.type_input ) %] - [% IF ( CHUNK.dateinput ) %][% INCLUDE 'date-format.inc' %][% END %] + [% IF ( CHUNK.dateinput ) %][% INCLUDE 'date-format.inc' %][% END %] [% ELSIF ( CHUNK.type_select ) %] - [% FOREACH CHOICE IN CHUNK.CHOICES %] [% IF ( CHOICE.selected ) %]