Changeset 30345

Show
Ignore:
Timestamp:
07.12.2015 12:46:20 (4 years ago)
Author:
kjdon
Message:

adding in a new template to allow for easy cutomisation of document view javascript

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/transform/pages/document.xsl

    r30097 r30345  
    236236    </xsl:template> 
    237237 
     238    <xsl:template name="javascriptForDocumentView"> 
     239        <script type="text/javascript" src="interfaces/{$interface_name}/js/document_scripts.js"><xsl:text> </xsl:text></script> 
     240        </xsl:template> 
    238241    <xsl:template name="javascriptForDocumentEditing"> 
    239242            <script type="text/javascript" src="interfaces/{$interface_name}/js/documentmaker_scripts.js"><xsl:text> </xsl:text></script> 
     
    256259    <xsl:template match="/page/pageResponse/document"> 
    257260      <xsl:if test="$bookswitch = 'off'"> 
    258         <script type="text/javascript" src="interfaces/{$interface_name}/js/document_scripts.js"><xsl:text> </xsl:text></script> 
    259              
     261      <xsl:call-template name="javascriptForDocumentView"/> 
    260262        <xsl:if test="/page/pageResponse/collection[@name = $collName]/metadataList/metadata[@name = 'tidyoption'] = 'tidy'"> 
    261263          <script type="text/javascript">