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 <chrisc@catalyst.net.nz>
This commit is contained in:
parent
143e3e6541
commit
7e8381c78c
2 changed files with 7 additions and 3 deletions
|
@ -874,7 +874,7 @@ foreach my $thisframeworkcode ( keys %$frameworks ) {
|
|||
frameworktext => $frameworks->{$thisframeworkcode}->{'frameworktext'},
|
||||
);
|
||||
if ($frameworkcode eq $thisframeworkcode){
|
||||
$row{'selected'}="selected=\"selected\"";
|
||||
$row{'selected'} = 1;
|
||||
}
|
||||
push @frameworkcodeloop, \%row;
|
||||
}
|
||||
|
|
|
@ -778,8 +778,12 @@ function unHideSubfield(index,labelindex) { // FIXME :: is it used ?
|
|||
<li id="changeframework"><label for="Frameworks">Change framework: </label>
|
||||
<select name="Frameworks" id="Frameworks" onchange="Changefwk(this);">
|
||||
<option value="Default">Default</option>
|
||||
[% FOREACH frameworkcodeloo IN frameworkcodeloop %]
|
||||
<option value="[% frameworkcodeloo.value %]" [% frameworkcodeloo.selected %]>
|
||||
[% FOREACH frameworkcodeloo IN frameworkcodeloop %]
|
||||
[% IF ( frameworkcodeloo.selected ) %]
|
||||
<option value="[% frameworkcodeloo.value %]" selected="selected">
|
||||
[% ELSE %]
|
||||
<option value="[% frameworkcodeloo.value %]">
|
||||
[% END %]
|
||||
[% frameworkcodeloo.frameworktext %]
|
||||
</option>
|
||||
[% END %]
|
||||
|
|
Loading…
Reference in a new issue