Add suit field for CSV import

Fixes #853

[Dirk Hohndel: fixed test compile]

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Miika Turkia 2015-04-24 08:39:20 -04:00 committed by Dirk Hohndel
parent 415abeea66
commit c80d1879b7
5 changed files with 22 additions and 7 deletions

View file

@ -17,6 +17,7 @@
<xsl:param name="meanDepthField" select="meanDepthField"/>
<xsl:param name="divemasterField" select="divemasterField"/>
<xsl:param name="buddyField" select="buddyField"/>
<xsl:param name="suitField" select="suitField"/>
<xsl:param name="notesField" select="notesField"/>
<xsl:param name="weightField" select="weightField"/>
<xsl:param name="dateformat" select="dateformat"/>
@ -343,6 +344,15 @@
</buddy>
</xsl:if>
<xsl:if test="$suitField >= 0">
<suit>
<xsl:call-template name="getFieldByIndex">
<xsl:with-param name="index" select="$suitField"/>
<xsl:with-param name="line" select="$line"/>
</xsl:call-template>
</suit>
</xsl:if>
<xsl:if test="$notesField >= 0">
<notes>
<xsl:call-template name="getFieldByIndex">