mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
CSV import: include visibility and rating in import
Add support for visibility and rating to CSV import dialog. Fixes #1212 Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
This commit is contained in:
parent
c53442e37e
commit
12e4b6d62c
2 changed files with 30 additions and 2 deletions
|
@ -26,6 +26,8 @@
|
|||
<xsl:param name="cylindersizeField" select="cylindersizeField"/>
|
||||
<xsl:param name="startpressureField" select="startpressureField"/>
|
||||
<xsl:param name="endpressureField" select="endpressureField"/>
|
||||
<xsl:param name="visibilityField" select="visibilityField"/>
|
||||
<xsl:param name="ratingField" select="ratingField"/>
|
||||
<xsl:param name="o2Field" select="o2Field"/>
|
||||
<xsl:param name="heField" select="heField"/>
|
||||
<xsl:output method="xml" encoding="utf-8" indent="yes"/>
|
||||
|
@ -205,6 +207,24 @@
|
|||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="$visibilityField >= 0">
|
||||
<xsl:attribute name="visibility">
|
||||
<xsl:call-template name="getFieldByIndex">
|
||||
<xsl:with-param name="index" select="$visibilityField"/>
|
||||
<xsl:with-param name="line" select="$line"/>
|
||||
</xsl:call-template>
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="$ratingField >= 0">
|
||||
<xsl:attribute name="rating">
|
||||
<xsl:call-template name="getFieldByIndex">
|
||||
<xsl:with-param name="index" select="$ratingField"/>
|
||||
<xsl:with-param name="line" select="$line"/>
|
||||
</xsl:call-template>
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
|
||||
<divecomputer deviceid="ffffffff" model="csv" />
|
||||
|
||||
<xsl:if test="$locationField >= 0 or $gpsField >= 0">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue