Ignore:
Timestamp:
2016-04-20T22:56:11+12:00 (8 years ago)
Author:
davidb
Message:

Changes in the XSL and JS code to support the new approach taken to client-side XSLT (using Saxon-CE JS library in the browser). Also the reintroduction of the DirectEdit (Seaweed) template. Not on by default but a simple matter to call the re-instated template for projects that would like to make use of it, such as the digital music stand DL collection. Some white-space changes also occured. This was not deliberate, but would have been quite fiddly to tease out from other changes in the file, so consequently left in.

File:
1 edited

Legend:

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

    r30428 r30478  
    122122
    123123    <xsl:template name="init-direct-edit">
     124             <!-- might be worth moving loading the JS file to earlier, to give time to load  -->
     125         <script type="text/javascript" src="interfaces/{$interface_name}/js/direct-edit.js"><xsl:text> </xsl:text></script>   
    124126        <script type="text/javascript">
    125             <xsl:text disable-output-escaping="yes">
     127          <xsl:text disable-output-escaping="yes">
     128            $(document).ready(function() {         
    126129                de.onready(function()
    127130                {
     
    135138                    }
    136139                });
     140             });                       
    137141            </xsl:text>
    138142        </script>
     
    508512                            <nobr>
    509513                                <xsl:apply-templates select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/paramList/param[@name='query']">
    510                                     <xsl:with-param name="default" select="java:org.greenstone.gsdl3.util.XSLTUtil.tidyWhitespace($qs, /page/@lang)"/>
     514<!--
     515    <xsl:with-param name="default" select="java:org.greenstone.gsdl3.util.XSLTUtil.tidyWhitespace($qs, /page/@lang)"/>
     516    -->
     517                                  <xsl:with-param name="default" select="normalize-space($qs)"/>
     518                                 
    511519                                </xsl:apply-templates>
    512520                            </nobr>
Note: See TracChangeset for help on using the changeset viewer.