mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Import UDDF location without GPS data
Fixes #376 Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
This commit is contained in:
parent
6897c38fec
commit
fe927139ec
1 changed files with 7 additions and 2 deletions
|
@ -173,12 +173,17 @@
|
|||
</xsl:variable>
|
||||
<xsl:if test="//u:divesite/u:site[@id = $ref]/u:name">
|
||||
<location>
|
||||
<xsl:if test="//u:divesite/u:site[@id=$ref]/u:geography/u:longitude != ''">
|
||||
<xsl:choose>
|
||||
<xsl:when test="//u:divesite/u:site[@id=$ref]/u:geography/u:longitude != ''">
|
||||
<xsl:attribute name="gps">
|
||||
<xsl:value-of select="concat(//u:divesite/u:site[@id=$ref]/u:geography/u:latitude, ' ', //u:divesite/u:site[@id=$ref]/u:geography/u:longitude)"/>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="//u:divesite/u:site[@id=$ref]/u:name"/>
|
||||
</xsl:if>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="//u:divesite/u:site[@id=$ref]/u:name"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</location>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
|
|
Loading…
Reference in a new issue