Make temperature optional in csv import

This adds a checkbox to be able to import csv files without temperature.

Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Anton Lundin 2013-11-21 23:48:37 +01:00 committed by Dirk Hohndel
parent 1a0adea0cc
commit cf06f78892
4 changed files with 87 additions and 95 deletions

View file

@ -96,10 +96,14 @@
</xsl:attribute>
<xsl:attribute name="temp">
<xsl:call-template name="getFieldByIndex">
<xsl:with-param name="index" select="$tempField"/>
<xsl:with-param name="line" select="$line"/>
</xsl:call-template>
<xsl:choose>
<xsl:when test="$tempField >= 0">
<xsl:call-template name="getFieldByIndex">
<xsl:with-param name="index" select="$tempField"/>
<xsl:with-param name="line" select="$line"/>
</xsl:call-template>
</xsl:when>
</xsl:choose>
</xsl:attribute>
</sample>
</xsl:if>