Ignore:
Timestamp:
2011-07-08T14:01:45+12:00 (13 years ago)
Author:
sjb48
Message:

Oran code for supporting format changes to document.

Location:
main/trunk/greenstone3/web/interfaces/oran/transform/layouts
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/oran/transform/layouts/formatmanager.xsl

    r24202 r24243  
    44    xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil"
    55    xmlns:gslib="http://www.greenstone.org/skinning"
     6    xmlns:gsf="http://www.greenstone.org/greenstone3/schema/ConfigFormat"
    67    extension-element-prefixes="java util"
    78    exclude-result-prefixes="java util">
     
    6162            .elementToolBox {position: fixed; top: 25%; right: 0px; background: none repeat scroll 0% 0% white; width: 250px; }
    6263
     64            .visible {display: block;}
     65            .hidden {display: none;}
    6366            <!-- .gsf_metadata { border: solid 2px #0000BB; background-color: #440077; } -->
    6467
     
    7780                        <!-- TOC on or off -->
    7881                        <xsl:choose>
    79                             <xsl:when test="/page/pageResponse/format[@type='display']/gsf:option[(@name='TOC') and (@value='true')]">
     82                            <xsl:when test="/page/pageResponse/format[@type='display']/gsf:option[@name='TOC']/@value='true'">
    8083                                <input type="checkbox" name="TOC" checked="checked" onclick="displayTOC(this)">Display Table of Contents (set to true)</input>
    8184                            </xsl:when>
     
    8790                        <!-- book cover image on or off -->
    8891                        <xsl:choose>
    89                             <xsl:when test="/page/pageResponse/format[@type='display']/gsf:option[(@name='coverImage') and (@value='true')]">
     92                            <xsl:when test="/page/pageResponse/format[@type='display']/gsf:option[@name='coverImage']/@value='true'">
    9093                                <input type="checkbox" name="bookCover" checked="checked" onclick="displayBookCover(this)">Display Book Cover Image (set to true)</input>
    9194                            </xsl:when>
  • main/trunk/greenstone3/web/interfaces/oran/transform/layouts/main.xsl

    r24149 r24243  
    1818    <xsl:include href="formatmanager.xsl"/>
    1919   
    20     <!--<xsl:include href="xml-to-gui.xsl"/>-->
    21     <!--<xsl:include href="xml-to-gui-templates.xsl"/>-->
    2220
    2321    <!-- put the URL or path of your site here site -->
     
    5250                    </div>
    5351                   
    54                     <xsl:if test="/page/pageRequest/paramList/param[(@name='formatedit') and (@value='1')]">
     52                    <xsl:if test="/page/pageRequest/paramList/param[(@name='formatedit') and (@value='on')]">
    5553                        <xsl:call-template name="formatmanagerpre"/>
    5654                    </xsl:if>
  • main/trunk/greenstone3/web/interfaces/oran/transform/layouts/xml-to-gui.xsl

    r24137 r24243  
    381381       
    382382
    383         <!-- <td class="td block resizable" title="td" valign="{@valign}" style='overflow: hidden;'> -->
    384383        <td class="column" valign="{@valign}" title="td">
    385384            <div class="td-div block" title="td-div">
    386385            <div class="neverempty block" style="height:50px">NEVER EMPTY</div>
    387386
    388             <!-- <xsl:text>&lt;td</xsl:text>valign=<xsl:value-of select="@valign"/><xsl:text>&gt;</xsl:text><a href="#" class="minmax">[-]</a><a href="#" class="remove">[x]</a> -->
    389387                <xsl:apply-templates mode="xml-to-gui">
    390388                    <xsl:with-param name="depth" select="$depth"/>
    391389                    <xsl:with-param name="metadataSets" select="$metadataSets"/>
    392390                </xsl:apply-templates>
    393                 <!-- <xsl:text>&lt;/td&gt;</xsl:text><br/><br/> -->
    394391            </div>
    395392        </td>
     
    403400        <xsl:param name="metadataSets"/>
    404401
    405         <!-- <xsl:text>&lt;br/&gt;</xsl:text> <br/> -->
    406402        <div class="block leaf gsf_text" title="gsf:text">
    407                 <!-- <xsl:variable name="rawtext"><xsl:text disable-output-escaping='no'>br/</xsl:text></xsl:variable> -->
    408403                <table class="header"><tbody><tr><td class="header">&lt;<input class="text" type="text" name="rawtextinput" size="10" value="br/"></input>&gt;</td><td class="header"><a href="[myhref]" class="ui-icon ui-icon-closethick"/></td></tr></tbody></table>
    409404        </div>
     
    420415        <xsl:param name="metadataSets"/>
    421416
    422         <!-- <xsl:text>&lt;br/&gt;</xsl:text> <br/> -->
    423417        <div class="block leaf gsf_text" title="gsf:text">
    424                 <!-- <xsl:variable name="rawtext"><xsl:text disable-output-escaping='no'>i</xsl:text></xsl:variable> -->
    425418                <table class="header"><tbody><tr><td class="header">&lt;<input class="text" type="text" name="rawtextinput" size="10" value="i"></input>&gt;</td><td class="header"><a href="[myhref]" class="ui-icon ui-icon-closethick"/></td></tr></tbody></table>
    426419        </div>
Note: See TracChangeset for help on using the changeset viewer.