Bug 21520: QA Follow-up: do not build html tags with TT conditions
authorMatthias Meusburger <matthias.meusburger@biblibre.com>
Fri, 3 Jan 2020 10:53:34 +0000 (10:53 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 15 Jan 2020 13:50:09 +0000 (13:50 +0000)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

koha-tmpl/intranet-tmpl/prog/en/modules/admin/oai_set_mappings.tt

index 6b9f995..758d4dc 100644 (file)
                 <tr>
                   <td>
                   <select name="rule_operator">
-                    <option value="and" [% IF (mapping.rule_operator == 'and') %] selected="selected" [% END %]>and</option>
-                    <option value="or" [% IF (mapping.rule_operator == 'or') %] selected="selected" [% END %]>or</option>
+                    [% IF (mapping.rule_operator == 'and') %]
+                    <option value="and" selected="selected">and</option>
+                    [% ELSE %]
+                    <option value="and">and</option>
+                    [% END %]
+                    [% IF (mapping.rule_operator == 'or') %]
+                    <option value="or" selected="selected">or</option>
+                    [% ELSE %]
+                    <option value="or">or</option>
+                    [% END %]
                   </select>
                   </td>
                   <td><input type="text" name="marcfield" size="3" value="[% mapping.marcfield | html %]" /></td>
               <tr>
                 <td>
                   <select name="rule_operator">
-                    <option value="and" [% IF (mapping.rule_operator == 'and') %] selected="selected" [% END %]>and</option>
-                    <option value="or" [% IF (mapping.rule_operator == 'or') %] selected="selected" [% END %]>or</option>
+                    [% IF (mapping.rule_operator == 'and') %]
+                    <option value="and" selected="selected">and</option>
+                    [% ELSE %]
+                    <option value="and">and</option>
+                    [% END %]
+                    [% IF (mapping.rule_operator == 'or') %]
+                    <option value="or" selected="selected">or</option>
+                    [% ELSE %]
+                    <option value="or">or</option>
+                    [% END %]
                   </select>
                 </td>
                 <td><input type="text" name="marcfield" size="3" /></td>