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/pages/document.xsl

    r30382 r30478  
    117117    <!-- If editing, be aware that the Document Basket looks for specific classes that this template bakes in (key points marked with ***) -->
    118118    <xsl:template name="wrapDocumentNodes">
     119            <xsl:variable name="nodeID" select="@nodeID"/>
    119120        <a name="{@nodeID}"><xsl:text> </xsl:text></a>
    120121       
     
    128129                        <xsl:attribute name="src">
    129130                            <xsl:choose>
    130                                 <xsl:when test="/page/pageRequest/paramList/param[@name = 'ed']/@value = '1' or util:oidIsMatchOrParent(@nodeID, /page/pageResponse/document/@selectedNode)">
     131                                <xsl:when test="/page/pageRequest/paramList/param[@name = 'ed']/@value = '1' or util:oidIsMatchOrParent($nodeID, /page/pageResponse/document/@selectedNode)">
    131132                                    <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'collapse_image')"/>
    132133                                </xsl:when>
     
    585586                    <xsl:choose>
    586587                        <xsl:when test="not(name())">
    587                             <xsl:value-of select="." disable-output-escaping="yes"/>
     588                          <xsl:value-of select="." disable-output-escaping="yes"/>
    588589                        </xsl:when>
    589590                        <xsl:when test="name() = 'annotation'">
Note: See TracChangeset for help on using the changeset viewer.