diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2014-03-03 13:46:44 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2014-03-03 13:46:44 +0100 |
commit | 2e02da046d3e56cdf4744f644af35ad07424f48b (patch) | |
tree | f2dcf353aa2338eae1c2ff2c41af971c580c2762 /xslt/tellico2gcstar.xsl | |
parent | 3c13229d98167ae4ae0710d5eeef23fef5005bf0 (diff) | |
download | tellico-2e02da046d3e56cdf4744f644af35ad07424f48b.tar.gz tellico-2e02da046d3e56cdf4744f644af35ad07424f48b.zip |
Update to upstream version 1.3.6
Diffstat (limited to 'xslt/tellico2gcstar.xsl')
-rw-r--r-- | xslt/tellico2gcstar.xsl | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/xslt/tellico2gcstar.xsl b/xslt/tellico2gcstar.xsl index b4cf394..51c410a 100644 --- a/xslt/tellico2gcstar.xsl +++ b/xslt/tellico2gcstar.xsl @@ -65,6 +65,9 @@ <xsl:when test="tc:tellico/tc:collection/@type=4"> <xsl:text>GCmusics</xsl:text> </xsl:when> + <xsl:when test="tc:tellico/tc:collection/@type=8"> + <xsl:text>GCcoins</xsl:text> + </xsl:when> </xsl:choose> </xsl:variable> <!-- grab all the applicable attributes once --> @@ -80,7 +83,7 @@ <xsl:apply-templates select="tc:collection"/> </xsl:template> -<xsl:template match="tc:collection[@type<2 or @type>5]"> +<xsl:template match="tc:collection[@type<2 or @type>5 and not(@type=8)]"> <xsl:message terminate="yes"> <xsl:text>GCstar export is not supported for this collection type.</xsl:text> </xsl:message> @@ -147,6 +150,13 @@ </xsl:choose> </xsl:attribute> </xsl:if> + <!-- for coin grade, GCstar uses numbers only --> + <xsl:if test="tc:grade"> + <xsl:attribute name="condition"> + <!-- remove everything but numbers --> + <xsl:value-of select="translate(tc:grade,translate(tc:grade,'0123456789', ''),'')"/> + </xsl:attribute> + </xsl:if> <!-- for books --> <comments> |