Ignore:
Timestamp:
2012-08-14T12:10:11+12:00 (12 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.

File:
1 edited

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>
Note: See TracChangeset for help on using the changeset viewer.