mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Clean up MacDive location conversion
We got additional slashes in front of the site if country and/or location was missing. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
f7e86b5838
commit
95c2c06be4
1 changed files with 4 additions and 4 deletions
|
@ -89,10 +89,10 @@
|
|||
<location debug="true">
|
||||
<xsl:for-each select="site/country|site/location|site/name">
|
||||
<xsl:choose>
|
||||
<xsl:when test="following-sibling::location[1] != ''">
|
||||
<xsl:when test="following-sibling::location[1] != '' and . != ''">
|
||||
<xsl:value-of select="concat(., ' / ')"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="following-sibling::name[1] != ''">
|
||||
<xsl:when test="following-sibling::name[1] != '' and . != ''">
|
||||
<xsl:value-of select="concat(., ' / ')"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
|
@ -114,10 +114,10 @@
|
|||
<location>
|
||||
<xsl:for-each select="country|location|site">
|
||||
<xsl:choose>
|
||||
<xsl:when test="following-sibling::location[1] != ''">
|
||||
<xsl:when test="following-sibling::location[1] != '' and . != ''">
|
||||
<xsl:value-of select="concat(., ' / ')"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="following-sibling::site[1] != ''">
|
||||
<xsl:when test="following-sibling::site[1] != '' and . != ''">
|
||||
<xsl:value-of select="concat(., ' / ')"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
|
|
Loading…
Reference in a new issue