[Koha-patches] [PATCH] Fix for Bug 6458 - incorrect parsing result in translation processing

Owen Leonard oleonard at myacpl.org
Thu Sep 1 16:38:02 CEST 2011


Fixing improperly nested template logic inside HTML tags in spine
label print template.
---
 .../prog/en/modules/labels/spinelabel-print.tt     |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/spinelabel-print.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/spinelabel-print.tt
index eb39405..598eed8 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/spinelabel-print.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/spinelabel-print.tt
@@ -1,6 +1,10 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD Xhtml 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html lang="[% lang %]" xml:lang="[% lang %]" [% IF ( bidi ) %]dir="[% bidi %]"[% END %] xmlns="http://www.w3.org/1999/xhtml">
+[% IF ( bidi ) %]
+<html lang="[% lang %]" xml:lang="[% lang %]" dir="[% bidi %]" xmlns="http://www.w3.org/1999/xhtml">
+[% ELSE %]
+<html lang="[% lang %]" xml:lang="[% lang %]" xmlns="http://www.w3.org/1999/xhtml">
+[% END %]
 <head>
 	<title>Koha &rsaquo; Tools &rsaquo; Spine Labels</title>
 	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-- 
1.7.3



More information about the Koha-patches mailing list