Ignore:
Timestamp:
2011-06-27T11:07:20+12:00 (13 years ago)
Author:
sjb48
Message:

Working on document-level format editting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/oran/transform/pages/document.xsl

    r24115 r24202  
    9090
    9191                        <!-- the book's cover image -->
    92                         <div id="coverImage"><gslib:coverImage/></div>
    93 
    94                         <!-- the contents -->
    95                         <div id="tableOfContents">
    96                             <xsl:apply-templates select="documentNode" mode="TOC"/>
    97                         </div>
     92                        <!-- COULD BE WORTH SETTING THE STYLE TO DISPLAY:BLOCK OR DISPLAY:NONE BASED ON WHETHER FLAG IS TRUE OR FALSE -->
     93                        <!-- OTHERWISE, IF FLAG IS FALSE AND WE WANT TO TURN BOOK COVER ON, NEED TO REQUEST THE NEW PAGE WITH FLAG SET -->
     94                        <xsl:if test="/page/pageResponse/format[@type='display']/gsf:option[@name='coverImage']/@value='true'">
     95                            <div id="coverImage"><gslib:coverImage/></div>
     96                        </xsl:if>
     97
     98                        <!-- the contents (if enabled) -->
     99                        <!-- VALUE=<xsl:value-of select="/page/pageResponse/format[@type='display']/gsf:option[@name='TOC']/@value"/> -->
     100                        <xsl:if test="/page/pageResponse/format[@type='display']/gsf:option[@name='TOC']/@value='true'">
     101                            <div id="tableOfContents">
     102                                <xsl:apply-templates select="documentNode" mode="TOC"/>
     103                            </div>
     104                        </xsl:if>
    98105                    </div>
    99106                </td></tr>
     
    142149        <a name="{@nodeID}"><xsl:text> </xsl:text></a>
    143150        <!-- Section header -->
    144         <table><tr>
     151        <table class="sectionHeader"><tr>
    145152            <!-- Expand/collapse button -->
    146153            <td class="headerTD">
     
    163170                        </span>
    164171                    </xsl:if>
    165                     <xsl:value-of disable-output-escaping="yes" select="metadataList/metadata[@name = 'Title']"/>
     172                    <!-- Display the title for the section regardless of whether automatic section numbering is turned on -->
     173                    <span class="sectionTitle"><xsl:value-of disable-output-escaping="yes" select="metadataList/metadata[@name = 'Title']"/></span>
    166174                </p>
    167175            </td>
Note: See TracChangeset for help on using the changeset viewer.