Changeset 37001


Ignore:
Timestamp:
2022-12-09T22:14:35+13:00 (17 months ago)
Author:
davidb
Message:

Fix for why the JS-based PagedImagePlugin TOC wasn't working. Turns out to be due to a change in documentNodeTOC which changed <ul> and <li> tags to <div>. This then caused the JS to fail as it was looking for the <li> items to turn into thumbnails

File:
1 edited

Legend:

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

    r36074 r37001  
    175175    <!-- This template is used to display the table of contents -->
    176176    <xsl:template name="documentNodeTOC">
     177      <ul>
    177178        <table>
    178179            <tr>
     
    246247        <!-- display any child items -->
    247248        <xsl:if test="documentNode">
    248             <div id="toc{@nodeID}">
     249            <li id="toc{@nodeID}">
    249250                <xsl:attribute name="style">
    250251                    <xsl:choose>
     
    260261                    <xsl:call-template name="documentNodeTOC"/>
    261262                </xsl:for-each>
    262             </div>
     263            </li>
    263264        </xsl:if>
     265      </ul>
    264266    </xsl:template>
    265267
Note: See TracChangeset for help on using the changeset viewer.