Skip to content
Snippets Groups Projects

fix SELECT id ...

Merged Timm Fitschen requested to merge f-cql-update-filter into dev
Files
3
+ 22
9
@@ -223,15 +223,28 @@
<xsl:value-of select="$field-name"/>
</xsl:attribute>
<div class="caosdb-f-property-value caosdb-v-property-value">
<xsl:apply-templates select="/Response/*[@id=$entity-id and Version/@id=$version-id]" mode="walk-select-segments">
<!--<xsl:apply-templates select="/Response/*[@id=$entity-id]" mode="walk-select-segments">-->
<xsl:with-param name="first-segment">
<xsl:value-of select="substring-before(concat($field-name, '.'), '.')"/>
</xsl:with-param>
<xsl:with-param name="next-segments">
<xsl:value-of select="substring-after($field-name, '.')"/>
</xsl:with-param>
</xsl:apply-templates>
<xsl:choose>
<xsl:when test="$version-id!=''">
<xsl:apply-templates select="/Response/*[@id=$entity-id and Version/@id=$version-id]" mode="walk-select-segments">
<xsl:with-param name="first-segment">
<xsl:value-of select="substring-before(concat($field-name, '.'), '.')"/>
</xsl:with-param>
<xsl:with-param name="next-segments">
<xsl:value-of select="substring-after($field-name, '.')"/>
</xsl:with-param>
</xsl:apply-templates>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="/Response/*[@id=$entity-id]" mode="walk-select-segments">
<xsl:with-param name="first-segment">
<xsl:value-of select="substring-before(concat($field-name, '.'), '.')"/>
</xsl:with-param>
<xsl:with-param name="next-segments">
<xsl:value-of select="substring-after($field-name, '.')"/>
</xsl:with-param>
</xsl:apply-templates>
</xsl:otherwise>
</xsl:choose>
</div>
</td>
</xsl:template>
Loading