Ignore:
Timestamp:
2011-08-31T13:39:11+12:00 (13 years ago)
Author:
sjm84
Message:

The expanding classifers will now remain open if you press back to revisit the page, also adding xsltParams to the gs variable, also changed Document Maker to Document Basket in the pref.xsl file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/oran/transform/javascript-global-setup.xsl

    r24510 r24520  
    1111            gs = new Array();
    1212            gs.cgiParams = new Array();
     13            gs.xsltParams = new Array();
    1314            gs.siteMetadata = new Array();
    1415            gs.collectionMetadata = new Array();
     
    1819        </script>
    1920        <xsl:call-template name="populate-cgi-param-values"/>
     21        <xsl:call-template name="populate-xslt-param-values"/>
    2022        <xsl:call-template name="populate-image-url-values"/>
    2123        <xsl:call-template name="populate-metadata-values"/>
     
    3234                gs.cgiParams[name] = value;
    3335            </xsl:for-each>
     36        </script>
     37    </xsl:template>
     38   
     39    <xsl:template name="populate-xslt-param-values">
     40        <script type="text/javascript">
     41            <xsl:text disable-output-escaping="yes">gs.xsltParams.library_name = "</xsl:text><xsl:value-of select="$library_name"/><xsl:text disable-output-escaping="yes">";</xsl:text>
     42            <xsl:text disable-output-escaping="yes">gs.xsltParams.interface_name = "</xsl:text><xsl:value-of select="$interface_name"/><xsl:text disable-output-escaping="yes">";</xsl:text>
    3443        </script>
    3544    </xsl:template>
Note: See TracChangeset for help on using the changeset viewer.