diff --git a/src/core/webcaosdb.xsl b/src/core/webcaosdb.xsl index 96a09c928c38bf365bf989e4043ce4ee88f9cf7e..c990e322362f1e0709564fdd07df25985d1b0119 100644 --- a/src/core/webcaosdb.xsl +++ b/src/core/webcaosdb.xsl @@ -66,6 +66,14 @@ <xsl:call-template name="caosdb-head-js" /> </head> <body data-hidden-properties="false"> + <xsl:choose> + <xsl:when test="'${BUILD_MODULE_EXT_PROPERTY_DISPLAY}'='ENABLED'"> + <xsl:attribute name="data-hidden-properties">true</xsl:attribute> + </xsl:when> + <xsl:otherwise> + <xsl:attribute name="data-hidden-properties">false</xsl:attribute> + </xsl:otherwise> + </xsl:choose> <xsl:attribute name="data-response-count"> <xsl:value-of select="/Response/@count"/> </xsl:attribute> diff --git a/src/core/xsl/entity.xsl b/src/core/xsl/entity.xsl index bcb9aacd7adfb043a67f8c2df4ea64e0fcd0631d..264136f09828dce4e2ba7d324ff09fc14db5842c 100644 --- a/src/core/xsl/entity.xsl +++ b/src/core/xsl/entity.xsl @@ -232,8 +232,15 @@ </xsl:template> <!-- PROPERTIES --> <xsl:template match="Property" mode="entity-body"> - <!-- all properties are now hidden by default --> - <li class="list-group-item caosdb-v-property-row caosdb-f-entity-property caosdb-v-hidden-property"> + <li> + <xsl:choose> + <xsl:when test="'${BUILD_MODULE_EXT_PROPERTY_DISPLAY}'='ENABLED'"> + <xsl:attribute name="class">list-group-item caosdb-v-property-row caosdb-f-entity-property caosdb-v-hidden-property</xsl:attribute> + </xsl:when> + <xsl:otherwise> + <xsl:attribute name="class">list-group-item caosdb-v-property-row caosdb-f-entity-property</xsl:attribute> + </xsl:otherwise> + </xsl:choose> <xsl:attribute name="id"> <xsl:value-of select="generate-id()"/> </xsl:attribute>