Ignore:
Timestamp:
2010-11-10T16:01:41+13:00 (14 years ago)
Author:
sjb48
Message:

Working on saving a modified format statement. Traversing the DOM using JS was unsuccessful so need to figure out how to get the HTML describing the format statement back to the server so it can be processed by Java or XSLT.

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

Legend:

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

    r23298 r23312  
    173173
    174174    <td width="75%">
     175
     176    <button id="updateFormatStatement" type="button" onclick="createFormatStatement()">Update Format Statement</button>
    175177
    176178    <div id="formatStatement">
     
    239241<!-- *************************************************************************************** -->
    240242<H2>Preview</H2>
     243
     244                    <div id="my_categories"><xsl:text> </xsl:text></div>
     245
    241246                    <iframe name="preview" id="iframe" width="98%" height="300">Your browser does not support iframes</iframe>
    242247
  • main/trunk/greenstone3/web/interfaces/oran/transform/layouts/xml-to-gui.xsl

    r23255 r23312  
    236236            <xsl:variable name="mode">
    237237                <xsl:choose>
    238                     <xsl:when test="not(@mode)"> <!-- parameter has not been supplied -->
    239                     </xsl:when>
    240                     <xsl:otherwise>MODE=<input type="text" name="rawtextinput" size="10" value="{@mode}"/></xsl:otherwise>
     238                    <xsl:when test="not(@mode)">MODE=<input class="mode" type="text" name="rawtextinput" size="10" value="vertical"/></xsl:when>
     239                    <xsl:otherwise>MODE=<input class="mode" type="text" name="rawtextinput" size="10" value="{@mode}"/></xsl:otherwise>
    241240                </xsl:choose>
    242241            </xsl:variable>
    243242   
    244             <table class="header"><tbody><tr><td class="header">MATCH=<input type="text" name="rawtextinput" size="10" value="{@match}"/></td><td class="header"><xsl:copy-of select="$mode"/></td><td class="header"><a href="#" class="minmax ui-icon ui-icon-plusthick" title="Click me to expand">[+]</a></td><td class="header"><a href="#" class="remove ui-icon ui-icon-closethick" title="Click me to remove"/></td></tr></tbody></table>
     243            <table class="header"><tbody><tr><td class="header">MATCH=<input class="match" type="text" name="rawtextinput" size="10" value="{@match}"/></td><td class="header"><xsl:copy-of select="$mode"/></td><td class="header"><a href="#" class="minmax ui-icon ui-icon-plusthick" title="Click me to expand">[+]</a></td><td class="header"><a href="#" class="remove ui-icon ui-icon-closethick" title="Click me to remove"/></td></tr></tbody></table>
    245244
    246245                <table class="table" border="1">
Note: See TracChangeset for help on using the changeset viewer.