Changeset 27067

Show
Ignore:
Timestamp:
12.03.2013 14:52:58 (7 years ago)
Author:
sjm84
Message:

Disable seaweed if we don't have docEdit on

Files:
1 modified

Legend:

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

    r26936 r27067  
    6363            </xsl:when> 
    6464            <xsl:otherwise> 
    65                 <link rel="stylesheet" href="interfaces/{$interface_name}/style/themes/main/jquery-ui-1.8.16.custom.css" type="text/css"/> 
     65                <link rel="stylesheet" href="interfaces/{$interface_name}/style/themes/main/jquery-ui-1.8.15.custom.css" type="text/css"/> 
    6666            </xsl:otherwise> 
    6767        </xsl:choose> 
     
    7575        <script type="text/javascript" src="interfaces/{$interface_name}/js/ace/ace.js"><xsl:text> </xsl:text></script> 
    7676         
    77         <script type="text/javascript" src="interfaces/{$interface_name}/js/direct-edit.js"><xsl:text> </xsl:text></script> 
    7877        <script type="text/javascript" src="interfaces/{$interface_name}/js/zoomer.js"><xsl:text> </xsl:text></script> 
    7978 
     
    9392         
    9493        <xsl:if test="/page/pageRequest/userInformation and (util:contains(/page/pageRequest/userInformation/@groups, 'administrator') or util:contains(/page/pageRequest/userInformation/@groups, 'all-collections-editor') or util:contains(/page/pageRequest/userInformation/@groups, $thisCollectionEditor))"> 
    95           <xsl:call-template name="init-direct-edit"/> 
    96           <script type="text/javascript" src="interfaces/{$interface_name}/js/debug_scripts.js"><xsl:text> </xsl:text></script> 
     94            <xsl:if test="/page/pageRequest/paramList/param[(@name='docEdit') and (@value='on' or @value='true' or @value='1')]"> 
     95                <script type="text/javascript" src="interfaces/{$interface_name}/js/direct-edit.js"><xsl:text> </xsl:text></script> 
     96                <xsl:call-template name="init-direct-edit"/> 
     97            </xsl:if> 
     98            <script type="text/javascript" src="interfaces/{$interface_name}/js/debug_scripts.js"><xsl:text> </xsl:text></script> 
    9799            <script type="text/javascript" src="interfaces/{$interface_name}/js/visual-xml-editor.js"><xsl:text> </xsl:text></script> 
    98100        </xsl:if>