[Tellico-users] [bug] Country field not process for comics in gcstar2tellico.xsl

Xavier Brochard xavier at alternatif.org
Mon Jun 1 19:58:34 UTC 2015


BUG in gcstar2tellico.xsl 

Tellico use Country field for Comics not Nationality
See below, current xsl is :
(coll 6 = comics, 7 = wines, 8 = coins)

<xsl:template match="country">
 <xsl:if test="$coll != 7 and $coll != 8">
  <tc:nationalitys>
   <xsl:for-each select="str:tokenize(., ',/;')">
    <tc:nationality i18n="true">
     <xsl:value-of select="normalize-space(.)"/>
    </tc:nationality>
   </xsl:for-each>
  </tc:nationalitys>
 </xsl:if>
 <xsl:if test="$coll = 7 or $coll = 8">
  <tc:country>
   <xsl:value-of select="."/>
  </tc:country>
 </xsl:if>
</xsl:template>

But it should be 
(added test on coll 6 = comics)

<xsl:template match="country">
 <xsl:if test="$coll != 6 and $coll != 7 and $coll != 8">
  <tc:nationalitys>
   <xsl:for-each select="str:tokenize(., ',/;')">
    <tc:nationality i18n="true">
     <xsl:value-of select="normalize-space(.)"/>
    </tc:nationality>
   </xsl:for-each>
  </tc:nationalitys>
 </xsl:if>
 <xsl:if test="$coll = 6 or $coll = 7 or $coll = 8">
  <tc:country>
   <xsl:value-of select="."/>
  </tc:country>
 </xsl:if>
</xsl:template>


-- 
Xavier Brochard
xavier at alternatif.org


More information about the tellico-users mailing list