mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
CSV export: support for new location management
Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
22cf98bbd7
commit
e8df3da9e3
1 changed files with 33 additions and 7 deletions
|
@ -108,6 +108,9 @@
|
||||||
<xsl:text>"</xsl:text>
|
<xsl:text>"</xsl:text>
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
|
<xsl:choose>
|
||||||
|
<!-- Old location format -->
|
||||||
|
<xsl:when test="location != ''">
|
||||||
<xsl:apply-templates select="location"/>
|
<xsl:apply-templates select="location"/>
|
||||||
<xsl:if test="string-length(location) = 0">
|
<xsl:if test="string-length(location) = 0">
|
||||||
<xsl:value-of select="$fs"/>
|
<xsl:value-of select="$fs"/>
|
||||||
|
@ -115,6 +118,29 @@
|
||||||
<xsl:value-of select="$fs"/>
|
<xsl:value-of select="$fs"/>
|
||||||
<xsl:text>""</xsl:text>
|
<xsl:text>""</xsl:text>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
|
</xsl:when>
|
||||||
|
<!-- Format with dive site managemenet -->
|
||||||
|
<xsl:otherwise>
|
||||||
|
<xsl:value-of select="$fs"/>
|
||||||
|
<xsl:text>"</xsl:text>
|
||||||
|
<xsl:if test="string-length(@divesiteid) > 0">
|
||||||
|
<xsl:variable name="uuid">
|
||||||
|
<xsl:value-of select="@divesiteid" />
|
||||||
|
</xsl:variable>
|
||||||
|
<xsl:value-of select="//divesites/site[@uuid = $uuid]/@name"/>
|
||||||
|
</xsl:if>
|
||||||
|
<xsl:text>"</xsl:text>
|
||||||
|
<xsl:value-of select="$fs"/>
|
||||||
|
<xsl:text>"</xsl:text>
|
||||||
|
<xsl:if test="string-length(@divesiteid) > 0">
|
||||||
|
<xsl:variable name="uuid">
|
||||||
|
<xsl:value-of select="@divesiteid" />
|
||||||
|
</xsl:variable>
|
||||||
|
<xsl:value-of select="//divesites/site[@uuid = $uuid]/@gps"/>
|
||||||
|
</xsl:if>
|
||||||
|
<xsl:text>"</xsl:text>
|
||||||
|
</xsl:otherwise>
|
||||||
|
</xsl:choose>
|
||||||
<xsl:apply-templates select="divemaster"/>
|
<xsl:apply-templates select="divemaster"/>
|
||||||
<xsl:if test="string-length(divemaster) = 0">
|
<xsl:if test="string-length(divemaster) = 0">
|
||||||
<xsl:value-of select="$fs"/>
|
<xsl:value-of select="$fs"/>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue