Ignore:
Timestamp:
2023-07-07T14:36:46+12:00 (11 months ago)
Author:
anupama
Message:

Another instance where ??= needed replacing, this time in XSLT. Only the 32 bit linux could locate these as the GS3 installation's document view would fail to load the page pointing out such errors. I had assumed all ??= were generated by the XSLTUtil.java java code and had been fixed up with yesterday's commit.

File:
1 edited

Legend:

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

    r36914 r37805  
    1313                    gs={};
    1414                }
    15                 gs.cgiParams ??= {};
    16                 gs.xsltParams ??= {};
    17                 gs.siteMetadata ??= {};
    18                 gs.collectionMetadata ??= {};
    19                 gs.documentMetadata ??= {};
    20                 gs.imageURLs ??= {};
    21                 gs.variables ??= {};
    22                 gs.requestInformation ??= {};
     15                if(typeof gs.cgiParams==="undefined"){gs.cgiParams={};} //gs.cgiParams ??= {};
     16                if(typeof gs.xsltParams==="undefined"){gs.xsltParams={};} //gs.xsltParams ??= {};
     17                if(typeof gs.siteMetadata==="undefined"){gs.siteMetadata={};} //gs.siteMetadata ??= {};
     18                if(typeof gs.collectionMetadata==="undefined"){gs.collectionMetadata={};} //gs.collectionMetadata ??= {};
     19                if(typeof gs.documentMetadata==="undefined"){gs.documentMetadata={};} //gs.documentMetadata ??= {};
     20                if(typeof gs.imageURLs==="undefined"){gs.imageURLs={};} //gs.imageURLs ??= {};
     21                if(typeof gs.variables==="undefined"){gs.variables={};} //gs.variables ??= {};
     22                if(typeof gs.requestInformation==="undefined"){gs.requestInformation={};} //gs.requestInformation ??= {};
    2323            </xsl:text>
    2424        </script>
Note: See TracChangeset for help on using the changeset viewer.