From 8fc80fcec9d3d792167dc8b0047fae28d0cff5c7 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 1 Sep 2011 11:14:50 -0400 Subject: [PATCH] Fix for Bug 6458 - incorrect parsing result in translation processing Fixing improperly nested template logic inside HTML tags in MARC editor. Modifying script to stop tag attribute markup from being passed to the template directly in favor of using template logic. Signed-off-by: Chris Cormack (cherry picked from commit 7e8381c78c6ccffbe6d41d700fa46aa3ed8025ff) Signed-off-by: Chris Nighswonger --- cataloguing/addbiblio.pl | 2 +- .../prog/en/modules/cataloguing/addbiblio.tt | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/cataloguing/addbiblio.pl b/cataloguing/addbiblio.pl index 2d0a65f705..6cd9176dba 100755 --- a/cataloguing/addbiblio.pl +++ b/cataloguing/addbiblio.pl @@ -861,7 +861,7 @@ foreach my $thisframeworkcode ( keys %$frameworks ) { frameworktext => $frameworks->{$thisframeworkcode}->{'frameworktext'}, ); if ($frameworkcode eq $thisframeworkcode){ - $row{'selected'}="selected=\"selected\""; + $row{'selected'} = 1; } push @frameworkcodeloop, \%row; } diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt index 77e0aae4f1..3183d3e211 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt @@ -778,8 +778,12 @@ function unHideSubfield(index,labelindex) { // FIXME :: is it used ?