Ignore:
Timestamp:
2012-05-31T11:57:46+12:00 (12 years ago)
Author:
sjm84
Message:

Fixing missing annotations from searching

File:
1 edited

Legend:

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

    r25660 r25720  
    8080                                    </xsl:choose>
    8181                                </xsl:attribute>
    82                                 <xsl:for-each select="documentNode"><!--xxx<xsl:apply-templates select="documentNode" mode="TOC"/>-->
     82                                <xsl:for-each select="documentNode">
    8383                                    <xsl:call-template name="documentNodeTOC"/>
    8484                                </xsl:for-each>
     
    9292   
    9393    <!-- This template is used to display the table of contents -->
    94     <xsl:template name="documentNodeTOC"><!--xxx<xsl:template match="documentNode" mode="TOC">-->
     94    <xsl:template name="documentNodeTOC">
    9595
    9696        <!-- check if this is the currently selected table of contents item -->
     
    164164                            <xsl:text> </xsl:text>
    165165                        </xsl:if>
    166                         <xsl:call-template name="sectionTitle"/><!--xxx<xsl:apply-templates select="." mode="sectionTitle"/>-->
     166                        <xsl:call-template name="sectionTitle"/>
    167167                    </a>
    168168                </td>
     
    182182                        </xsl:choose>
    183183                    </xsl:attribute>
    184                     <xsl:for-each select="documentNode"><!--xxx<xsl:apply-templates select="documentNode" mode="TOC"/>-->
     184                    <xsl:for-each select="documentNode">
    185185                        <xsl:call-template name="documentNodeTOC"/>
    186186                    </xsl:for-each>
     
    235235                        <xsl:attribute name="src"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'highlight_image')"/></xsl:attribute>
    236236                    </img>
    237                     <input id="highlightOption" type="checkbox" class="optionCheckBox">
    238                         <xsl:choose>
    239                             <xsl:when test="/page/pageRequest/paramList/param[@name = 'hl']/@value = 'on'">
    240                                 <xsl:attribute name="onclick">
    241                                     <xsl:text>removeHighlight();</xsl:text>
    242                                 </xsl:attribute>
    243                                 <xsl:attribute name="checked">true</xsl:attribute>
    244                             </xsl:when>
    245                             <xsl:otherwise>
    246                                 <xsl:attribute name="onclick">
    247                                     <xsl:text>addHighlight();</xsl:text>
    248                                 </xsl:attribute>
    249                             </xsl:otherwise>
    250                         </xsl:choose>
     237                    <input id="highlightOption" type="checkbox" class="optionCheckBox" onclick="swapHighlight();">
     238                        <xsl:if test="/page/pageRequest/paramList/param[@name = 'hl']/@value = 'on'">
     239                            <xsl:attribute name="checked">true</xsl:attribute>
     240                        </xsl:if>
    251241                    </input>
    252242                </td>
Note: See TracChangeset for help on using the changeset viewer.