Changeset 26100

Show
Ignore:
Timestamp:
14.08.2012 12:10:11 (7 years ago)
Author:
ak19
Message:

Hierarchical documentNodes that are rootnotes need to be designated with a book icon instead of a page icon. This also needs to work for GS3 for the tutorial Enhanced Word document handling.

Files:
1 modified

Legend:

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

    r26093 r26100  
    131131            </xsl:when> 
    132132            <xsl:when test="not(@type) or @type='document'"> 
    133                 <img style="border:0px"><xslt:attribute name="id">documentBasketBook<xslt:value-of select="/page/pageResponse/collection/@name"/>:<xslt:value-of select="@nodeID"/></xslt:attribute><xslt:attribute name="src"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'page_icon_image')"/></xslt:attribute></img>  
     133                <img style="border:0px"><xslt:attribute name="id">documentBasketBook<xslt:value-of select="/page/pageResponse/collection/@name"/>:<xslt:value-of select="@nodeID"/></xslt:attribute><xslt:attribute name="src"> 
     134                    <xslt:choose> 
     135                        <xslt:when test="@docType='hierarchy' and @nodeType='root'"> 
     136                            <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'book_image')"/> 
     137                        </xslt:when> 
     138                        <xslt:otherwise> 
     139                            <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'page_icon_image')"/> 
     140                        </xslt:otherwise> 
     141                    </xslt:choose> 
     142                </xslt:attribute></img>  
    134143            </xsl:when> 
    135144        </xsl:choose>