Ignore:
Timestamp:
04/12/12 15:47:24 (9 years ago)
Author:
ak19
Message:

Java method getInterfaceStringsAsJavascript outputs more of the javascript so that the XSLT has to output less of it.

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

Legend:

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

    r25360 r25378  
    407407    <xsl:template name="document-editor-language-fragments">
    408408      <!--<gslib:langfrag name="dse"/>-->
    409 
     409     
    410410      <script type="text/javascript">
    411       gs.text = new Array();
    412       gs.text.dse = new Array();
    413       <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceStringsAsJavascript($interface_name, /page/@lang, 'dse', 'gs.text')"/>
     411        <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceStringsAsJavascript($interface_name, /page/@lang, 'dse')"/>       
    414412      </script>
    415413    </xsl:template>
  • main/trunk/greenstone3/web/interfaces/oran/transform/util.xsl

    r25347 r25378  
    678678  </xsl:template>
    679679
    680   <!-- needs to be name=attrvalue else xsl:param -->
    681   <!-- call function with the name prefix (e.g. dse) and the file -->
     680  <!-- call function with the name prefix (e.g. dse) -->
    682681  <xsl:template name="langfrag">
    683682    <script type="text/javascript">     
    684       gs.text = new Array();
    685       gs.text.<xsl:value-of select="@name"/> = new Array();
    686       <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceStringsAsJavascript($interface_name, /page/@lang, @name, 'gs.text')"/>
     683      <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceStringsAsJavascript($interface_name, /page/@lang, @name)"/>
    687684    </script>
    688685  </xsl:template>
Note: See TracChangeset for help on using the changeset viewer.