AAGN#46028 -- Unica interface aanpassing
svn path=/Website/branches/v2017.2/; revision=35883
This commit is contained in:
@@ -9,6 +9,23 @@
|
|||||||
<xsl:value-of select="substring(translate('$Revision$', '$ ', ''), 10)"/>
|
<xsl:value-of select="substring(translate('$Revision$', '$ ', ''), 10)"/>
|
||||||
</xsl:variable>
|
</xsl:variable>
|
||||||
|
|
||||||
|
<xsl:template name="linebreaks">
|
||||||
|
<xsl:param name="string"/><xsl:param name="delimiter"/>
|
||||||
|
<xsl:choose>
|
||||||
|
<xsl:when test="contains($string, $delimiter)">
|
||||||
|
<xsl:value-of select="substring-before($string, $delimiter)"/>
|
||||||
|
<xsl:text> </xsl:text>
|
||||||
|
<xsl:call-template name="linebreaks">
|
||||||
|
<xsl:with-param name="string" select="substring-after($string, $delimiter)"/>
|
||||||
|
<xsl:with-param name="delimiter" select="$delimiter"/>
|
||||||
|
</xsl:call-template>
|
||||||
|
</xsl:when>
|
||||||
|
<xsl:otherwise>
|
||||||
|
<xsl:value-of select="$string"/>
|
||||||
|
</xsl:otherwise>
|
||||||
|
</xsl:choose>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template name="strip_prefix">
|
<xsl:template name="strip_prefix">
|
||||||
<xsl:param name="in"/>
|
<xsl:param name="in"/>
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
@@ -27,6 +44,18 @@
|
|||||||
<facilitor>
|
<facilitor>
|
||||||
<xsl:for-each select="Status">
|
<xsl:for-each select="Status">
|
||||||
<xsl:sort select="DateTime"/>
|
<xsl:sort select="DateTime"/>
|
||||||
|
<xsl:variable name="remarks">
|
||||||
|
<xsl:call-template name="linebreaks">
|
||||||
|
<xsl:with-param name="string" select="DetailedRemarks"/>
|
||||||
|
<xsl:with-param name="delimiter" select="';'"/>
|
||||||
|
</xsl:call-template>
|
||||||
|
</xsl:variable>
|
||||||
|
<xsl:variable name="remarks2">
|
||||||
|
<xsl:call-template name="linebreaks">
|
||||||
|
<xsl:with-param name="string" select="$remarks"/>
|
||||||
|
<xsl:with-param name="delimiter" select="'|'"/>
|
||||||
|
</xsl:call-template>
|
||||||
|
</xsl:variable>
|
||||||
<xsl:element name="opdracht">
|
<xsl:element name="opdracht">
|
||||||
<xsl:attribute name="key">
|
<xsl:attribute name="key">
|
||||||
<xsl:call-template name="strip_prefix">
|
<xsl:call-template name="strip_prefix">
|
||||||
@@ -49,8 +78,8 @@
|
|||||||
<xsl:value-of select="DateTime"/>
|
<xsl:value-of select="DateTime"/>
|
||||||
</mut_datum>
|
</mut_datum>
|
||||||
<opmerking>
|
<opmerking>
|
||||||
<xsl:value-of select="DateTime"/>:<xsl:value-of select="Status"/>
|
<xsl:value-of select="DateTime"/>:<xsl:value-of select="Status"/><xsl:text> </xsl:text>
|
||||||
<xsl:value-of select="DetailedRemarks"/>
|
<xsl:value-of select="$remarks2"/>
|
||||||
</opmerking>
|
</opmerking>
|
||||||
<xsl:element name="kenmerk">
|
<xsl:element name="kenmerk">
|
||||||
<xsl:attribute name="naam">Ref. Nr. Leverancier</xsl:attribute>
|
<xsl:attribute name="naam">Ref. Nr. Leverancier</xsl:attribute>
|
||||||
@@ -66,4 +95,4 @@
|
|||||||
<xsl:template match="/">
|
<xsl:template match="/">
|
||||||
<xsl:apply-templates select="soap:Envelope/soap:Body"/>
|
<xsl:apply-templates select="soap:Envelope/soap:Body"/>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
</xsl:stylesheet><!-- Stylesheet edited using Stylus Studio - (c) 2004-2007. Progress Software Corporation. All rights reserved. --><!-- Stylesheet edited using Stylus Studio - (c) 2004-2007. Progress Software Corporation. All rights reserved. --><!-- Stylesheet edited using Stylus Studio - (c) 2004-2007. Progress Software Corporation. All rights reserved. --><!-- Stylesheet edited using Stylus Studio - (c) 2004-2007. Progress Software Corporation. All rights reserved. --><!-- Stylesheet edited using Stylus Studio - (c) 2004-2007. Progress Software Corporation. All rights reserved. --><!-- Stylesheet edited using Stylus Studio - (c) 2004-2007. Progress Software Corporation. All rights reserved. -->
|
</xsl:stylesheet><!-- Stylesheet edited using Stylus Studio - (c) 2004-2007. Progress Software Corporation. All rights reserved. --><!-- Stylesheet edited using Stylus Studio - (c) 2004-2007. Progress Software Corporation. All rights reserved. --><!-- Stylesheet edited using Stylus Studio - (c) 2004-2007. Progress Software Corporation. All rights reserved. --><!-- Stylesheet edited using Stylus Studio - (c) 2004-2007. Progress Software Corporation. All rights reserved. --><!-- Stylesheet edited using Stylus Studio - (c) 2004-2007. Progress Software Corporation. All rights reserved. --><!-- Stylesheet edited using Stylus Studio - (c) 2004-2007. Progress Software Corporation. All rights reserved. --><!-- Stylesheet edited using Stylus Studio - (c) 2004-2009. Progress Software Corporation. All rights reserved. --><!-- Stylesheet edited using Stylus Studio - (c) 2004-2009. Progress Software Corporation. All rights reserved. -->
|
||||||
Reference in New Issue
Block a user