mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Include rating and visibility on uddf import
Adjust to UDDF 3.2 specification Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
b694e960b7
commit
a2bcbae4f3
1 changed files with 11 additions and 11 deletions
|
@ -100,19 +100,19 @@
|
|||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="condition/visibility|informationafterdive/visibility != '' and condition/visibility|informationafterdive/visibility != 0">
|
||||
<xsl:if test="condition/visibility|informationafterdive/visibility|u:informationafterdive/u:visibility != '' and condition/visibility|informationafterdive/visibility|u:informationafterdive/u:visibility != 0">
|
||||
<xsl:attribute name="visibility">
|
||||
<xsl:choose>
|
||||
<xsl:when test="condition/visibility|informationafterdive/visibility < 1">
|
||||
<xsl:when test="condition/visibility|informationafterdive/visibility|u:informationafterdive/u:visibility < 1">
|
||||
<xsl:value-of select="1"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="condition/visibility|informationafterdive/visibility <= 3">
|
||||
<xsl:when test="condition/visibility|informationafterdive/visibility|u:informationafterdive/u:visibility <= 3">
|
||||
<xsl:value-of select="2"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="condition/visibility|informationafterdive/visibility <= 5">
|
||||
<xsl:when test="condition/visibility|informationafterdive/visibility|u:informationafterdive/u:visibility <= 5">
|
||||
<xsl:value-of select="3"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="condition/visibility|informationafterdive/visibility <= 10">
|
||||
<xsl:when test="condition/visibility|informationafterdive/visibility|u:informationafterdive/u:visibility <= 10">
|
||||
<xsl:value-of select="4"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
|
@ -122,22 +122,22 @@
|
|||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="informationafterdive/rating/ratingvalue != '' and informationafterdive/rating/ratingvalue != 0">
|
||||
<xsl:if test="informationafterdive/rating/ratingvalue|u:informationafterdive/u:rating/u:ratingvalue != '' and informationafterdive/rating/ratingvalue|u:informationafterdive/u:rating/u:ratingvalue != 0">
|
||||
<xsl:attribute name="rating">
|
||||
<xsl:choose>
|
||||
<xsl:when test="informationafterdive/rating/ratingvalue < 2">
|
||||
<xsl:when test="informationafterdive/rating/ratingvalue|u:informationafterdive/u:rating/u:ratingvalue < 2">
|
||||
<xsl:value-of select="0"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="informationafterdive/rating/ratingvalue <= 2">
|
||||
<xsl:when test="informationafterdive/rating/ratingvalue|u:informationafterdive/u:rating/u:ratingvalue <= 2">
|
||||
<xsl:value-of select="1"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="informationafterdive/rating/ratingvalue <= 4">
|
||||
<xsl:when test="informationafterdive/rating/ratingvalue|u:informationafterdive/u:rating/u:ratingvalue <= 4">
|
||||
<xsl:value-of select="2"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="informationafterdive/rating/ratingvalue <= 6">
|
||||
<xsl:when test="informationafterdive/rating/ratingvalue|u:informationafterdive/u:rating/u:ratingvalue <= 6">
|
||||
<xsl:value-of select="3"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="informationafterdive/rating/ratingvalue <= 8">
|
||||
<xsl:when test="informationafterdive/rating/ratingvalue|u:informationafterdive/u:rating/u:ratingvalue <= 8">
|
||||
<xsl:value-of select="4"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
|
|
Loading…
Reference in a new issue