AAGN#46028 -- Unica interface aanpassing

svn path=/Website/branches/v2017.2/; revision=35883
This commit is contained in:
Arthur Egberink
2017-11-02 13:00:21 +00:00
parent ef2c7e8078
commit 01c2a41c4d

View File

@@ -9,6 +9,23 @@
<xsl:value-of select="substring(translate('$Revision$', '$ ', ''), 10)"/>
</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>&#10;</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:param name="in"/>
<xsl:choose>
@@ -27,6 +44,18 @@
<facilitor>
<xsl:for-each select="Status">
<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:attribute name="key">
<xsl:call-template name="strip_prefix">
@@ -49,8 +78,8 @@
<xsl:value-of select="DateTime"/>
</mut_datum>
<opmerking>
<xsl:value-of select="DateTime"/>:<xsl:value-of select="Status"/>
<xsl:value-of select="DetailedRemarks"/>
<xsl:value-of select="DateTime"/>:<xsl:value-of select="Status"/><xsl:text>&#10;</xsl:text>
<xsl:value-of select="$remarks2"/>
</opmerking>
<xsl:element name="kenmerk">
<xsl:attribute name="naam">Ref. Nr. Leverancier</xsl:attribute>
@@ -66,4 +95,4 @@
<xsl:template match="/">
<xsl:apply-templates select="soap:Envelope/soap:Body"/>
</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. -->