mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Use country for divelogs.de export
This will use only the country name for the location field in divelogs.de export. The old version concatenated all the fields together. This is inline with Rainer's new import functionality. Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
This commit is contained in:
parent
5a8d7617ce
commit
2936aa6aa0
1 changed files with 11 additions and 11 deletions
|
@ -42,6 +42,17 @@
|
|||
<xsl:value-of select="//site[@uuid = $uuid]/@name"/>
|
||||
</xsl:variable>
|
||||
<xsl:choose>
|
||||
<xsl:when test="/divelog/divesites/site[@uuid = $uuid]/geo/@value != ''">
|
||||
<LOCATION>
|
||||
<xsl:for-each select="/divelog/divesites/site[@uuid = $uuid]/geo/@value">
|
||||
<xsl:if test="position() != 1"> / </xsl:if>
|
||||
<xsl:value-of select="."/>
|
||||
</xsl:for-each>
|
||||
</LOCATION>
|
||||
<SITE>
|
||||
<xsl:value-of select="$location"/>
|
||||
</SITE>
|
||||
</xsl:when>
|
||||
<xsl:when test="contains($location, '/')">
|
||||
<xsl:variable name="site">
|
||||
<xsl:call-template name="basename">
|
||||
|
@ -56,17 +67,6 @@
|
|||
</LOCATION>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:if test="/divelog/divesites/site[@uuid = $uuid]/geo/@value != ''">
|
||||
<LOCATION>
|
||||
<xsl:for-each select="/divelog/divesites/site[@uuid = $uuid]/geo/@value">
|
||||
<xsl:if test="position() != 1"> / </xsl:if>
|
||||
<xsl:value-of select="."/>
|
||||
</xsl:for-each>
|
||||
</LOCATION>
|
||||
</xsl:if>
|
||||
<SITE>
|
||||
<xsl:value-of select="$location"/>
|
||||
</SITE>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue