From bd8732156944c246520264262a09ce208b598a97 Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Mon, 4 Apr 2011 16:47:20 +1200 Subject: [PATCH] Bug 5917 More wrongly scoped globals --- .../html-template-to-template-toolkit.pl | 2 +- .../opac-tmpl/prog/en/modules/opac-user.tt | 28 +++++++++---------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/installer/html-template-to-template-toolkit.pl b/installer/html-template-to-template-toolkit.pl index 347b0d0155..00607f2b65 100755 --- a/installer/html-template-to-template-toolkit.pl +++ b/installer/html-template-to-template-toolkit.pl @@ -29,7 +29,7 @@ my $tmpl_out_dir = 'koha-tt'; # template toolkit variables NOT to scope, in other words, variables that need to remain global (case sensitive) my @globals = ("themelang","JacketImages","OPACAmazonCoverImages","GoogleJackets","BakerTaylorEnabled", -"SyndeticsEnabled"); +"SyndeticsEnabled", "OpacRenewalAllowed", "item_level_itypes"); # Arguments: my $KOHA_ROOT; diff --git a/koha-tt/opac-tmpl/prog/en/modules/opac-user.tt b/koha-tt/opac-tmpl/prog/en/modules/opac-user.tt index 3c231e02e2..ac7b15d34d 100644 --- a/koha-tt/opac-tmpl/prog/en/modules/opac-user.tt +++ b/koha-tt/opac-tmpl/prog/en/modules/opac-user.tt @@ -119,17 +119,17 @@ $.tablesorter.addParser({
-[% IF ( BORROWER_INF.OPACFinesTab ) %] +[% IF ( OPACFinesTab ) %] [% IF ( BORROWER_INF.amountoverfive ) %]

Fines and Charges

@@ -222,15 +222,15 @@ $.tablesorter.addParser({ [% FOREACH ISSUE IN ISSUES %] [% IF ( ISSUE.overdue ) %][% ELSE %][% END %] -[% IF ( ISSUE.JacketImages ) %] +[% IF ( JacketImages ) %] -[% IF ( ISSUE.OPACAmazonCoverImages ) %][% IF ( ISSUE.normalized_isbn ) %]Cover Image[% ELSE %]No cover image available[% END %][% END %] +[% IF ( OPACAmazonCoverImages ) %][% IF ( ISSUE.normalized_isbn ) %]Cover Image[% ELSE %]No cover image available[% END %][% END %] -[% IF ( ISSUE.GoogleJackets ) %][% IF ( ISSUE.normalized_isbn ) %]
[% ELSE %]No cover image available[% END %][% END %] +[% IF ( GoogleJackets ) %][% IF ( ISSUE.normalized_isbn ) %]
[% ELSE %]No cover image available[% END %][% END %] -[% IF ( ISSUE.BakerTaylorEnabled ) %][% IF ( ISSUE.normalized_isbn ) %]See Baker & Taylor[% ELSE %]No cover image available[% END %][% END %] +[% IF ( BakerTaylorEnabled ) %][% IF ( ISSUE.normalized_isbn ) %]See Baker & Taylor[% ELSE %]No cover image available[% END %][% END %] -[% IF ( ISSUE.SyndeticsEnabled ) %][% IF ( ISSUE.SyndeticsCoverImages ) %][% IF ( ISSUE.using_https ) %] +[% IF ( SyndeticsEnabled ) %][% IF ( ISSUE.SyndeticsCoverImages ) %][% IF ( ISSUE.using_https ) %] [% ELSE %] [% END %][% END %][% END %] @@ -247,7 +247,7 @@ $.tablesorter.addParser({ [% ELSE %] [% ISSUE.date_due %] [% END %] - [% IF ( ISSUE.OpacRenewalAllowed ) %] + [% IF ( OpacRenewalAllowed ) %] [% UNLESS ( ISSUE.patron_flagged ) %] [% IF ( ISSUE.status ) %]Renew ([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining) [% ELSE %] -- 2.39.5