Browse Source

Merge branch 'candidate-5.2.6' into candidate-5.4.0

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 10 years ago
parent
commit
f8d14275b4
2 changed files with 5 additions and 1 deletions
  1. 2 1
      esp/src/eclwatch/HelpersWidget.js
  2. 3 0
      esp/xslt/wsecl3_form.xsl

+ 2 - 1
esp/src/eclwatch/HelpersWidget.js

@@ -196,6 +196,7 @@ define([
                             break;
                         case "Workunit XML":
                         case "Archive Query":
+                        case "xml":
                             sourceMode = "xml";
                             break;
                     }
@@ -208,7 +209,7 @@ define([
                             params: {
                                 Wuid: Wuid,
                                 sourceMode: sourceMode,
-                                sourceURL: this._getURL(row)
+                                sourceURL: this._getURL(row, id)
                             }
                         }
                     });

+ 3 - 0
esp/xslt/wsecl3_form.xsl

@@ -669,6 +669,7 @@ function switchInputForm()
                 <xsl:choose>
                     <xsl:when test="count($ems)=1 and ($cpxType/xsd:sequence/@maxOccurs='unbounded' or $ems[1]/@maxOccurs='unbounded')">
                         <xsl:variable name="stype" select="$ems[1]/@type"/>
+                        <xsl:variable name="itemname" select="$ems[1]/@name"/>
                         <xsl:choose>
                             <xsl:when test="$ems/xsd:complexType">
                                 <xsl:variable name="btype" select="$ems/@name"/>
@@ -704,6 +705,8 @@ function switchInputForm()
                                     <xsl:text disable-output-escaping="yes"><![CDATA[[Enter one item per line]<br/>]]></xsl:text>
                                     <xsl:text disable-output-escaping="yes"><![CDATA[<textarea name=']]></xsl:text>
                                     <xsl:value-of select="$fieldId"/>
+                                    <xsl:text disable-output-escaping="yes"><![CDATA[.]]></xsl:text>
+                                    <xsl:value-of select="$itemname"/>
                                     <xsl:text disable-output-escaping="yes"><![CDATA[$' id=']]></xsl:text><!--Note $ at end of name not id marks field as array input via textarea-->
                                     <xsl:value-of select="$fieldId"/>
                                     <xsl:text disable-output-escaping="yes"><![CDATA[' cols=']]></xsl:text>