Changeset 32444

Show
Ignore:
Timestamp:
13.09.2018 10:46:14 (13 months ago)
Author:
kjdon
Message:

fixed a bug in a test path (missing first bracket), now test for root_hascover instead of hascover, which will work for sections as well as top level documents

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/transform/config_format.xsl

    r32442 r32444  
    137137                <xsl:when test="@type = 'screen'">Screen</xsl:when> 
    138138                <xsl:when test="@type = 'source'">SourceFile</xsl:when> 
    139                 <xsl:when test="@type = 'cover'">hascover</xsl:when> 
     139                <xsl:when test="@type = 'cover'">root_hascover</xsl:when> 
    140140            </xsl:choose> 
    141141        </xslt:variable> 
     
    154154            <xslt:otherwise> 
    155155              <xslt:choose> 
    156             <xslt:when test=".//metadataList)[last()]/metadata[@name='assocfilepath']"> 
     156            <xslt:when test="(.//metadataList)[last()]/metadata[@name='assocfilepath']"> 
    157157              <xslt:value-of disable-output-escaping="yes" select="(.//metadataList)[last()]/metadata[@name='assocfilepath']" /> 
    158158            </xslt:when> 
     
    170170                    <xsl:text>/index/assoc/</xsl:text><xslt:value-of disable-output-escaping="yes" select="$thisAssocfilepath" /><xsl:text>/</xsl:text> 
    171171                    <xslt:choose> 
    172                       <xslt:when test="$metaName = 'hascover'">cover.jpg</xslt:when> 
     172                      <xslt:when test="$metaName = 'root_hascover'">cover.jpg</xslt:when> 
    173173                      <xslt:otherwise> 
    174174                        <xslt:value-of disable-output-escaping="yes" select="./metadataList/metadata[@name = $metaName]"/>