Changeset 38087 for main/trunk


Ignore:
Timestamp:
2023-09-10T17:42:04+12:00 (10 months ago)
Author:
davidb
Message:

Variety of changes: (i) Using 'class' to make these <br>'s eaiser to identify, similar to other XSL files; (ii) relocation of ace.js script to be only used when editing (done to avoid seeing the warning message all the time that this file triggers in browsers such as Chrome; (iii) Some jquery-ui class name changes -- while I don't now recall the exact reason for this, I believe it was to bring these elements more into line with how this is done elsewhere in the banner; (iv) the CSS that gets deleted in this commit is now present in core.css

File:
1 edited

Legend:

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

    r37778 r38087  
    140140    <script type="text/javascript" src="interfaces/{$interface_name}/js/jquery-ui-1.13.0.custom/jquery-ui.min.js"><xsl:text> </xsl:text></script>
    141141    <script type="text/javascript" src="interfaces/{$interface_name}/js/jquery.blockUI.js"><xsl:text> </xsl:text></script>
    142     <script type="text/javascript" src="interfaces/{$interface_name}/js/ace/ace.js"><xsl:text> </xsl:text></script>
    143142
    144143    <xsl:call-template name="opt-google-maps-api"/>
     
    172171      <xsl:if test="/page/pageRequest/paramList/param[(@name='docEdit') and (@value='on' or @value='true' or @value='1')]">
    173172       
    174          
     173            <script type="text/javascript" src="interfaces/{$interface_name}/js/ace/ace.js"><xsl:text> </xsl:text></script>      
    175174        <script type="text/javascript" src="interfaces/{$interface_name}/js/ckeditor/ckeditor.js" defer="true"><xsl:text> </xsl:text></script> 
    176175        <!--            <xsl:call-template name="init-direct-edit"/>    -->
     
    361360   
    362361  </xsl:template>
     362
    363363  <!-- ***** BROWSING TABS ***** -->
    364364  <xsl:template name="browsing-tabs">
     
    463463
    464464  <xsl:template name="home-help-preferences-tab-alternative">
    465     <style>
    466       #bannerLinksTab {
    467         list-style: none outside none;
    468         padding: 0px;
    469         margin: 0 0 0 20px;
    470         font-size: 14px;
    471       }
    472 
    473       #bannerLinksTab li {
    474         float: right;
    475         display: inline;
    476         margin-right: 5px;
    477         padding: 3px 5px 5px 7px;
    478         text-transform: capitalize;
    479         text-align: center;
    480         border-bottom: 0px;
    481       }
    482      
    483       li.ui-tab-styling {
    484       }
    485     </style>   
    486465    <ul id="bannerLinksTab">
    487466      <xsl:if test="/page/pageResponse/format[@type='display' or @type='browse' or @type='search' or not(@type)]/gsf:option[@name='RSS']/@value = 'true'">
    488         <li class="ui-tab-styling"><xsl:call-template name="RSSLink"/></li>
    489       </xsl:if>
    490       <li class="ui-tab-styling"><xsl:call-template name="PrefsLink"/></li>
    491       <li class="ui-tab-styling"><xsl:call-template name="HelpLink"/></li>
    492       <li class="ui-tab-styling" id="userMenuButton"><xsl:call-template name="LoginoutLink"/></li>
     467        <li class="ui-state-default ui-corner-top"><xsl:call-template name="RSSLink"/></li>
     468      </xsl:if>
     469      <li class="ui-state-default ui-corner-top"><xsl:call-template name="PrefsLink"/></li>
     470      <li class="ui-state-default ui-corner-top"><xsl:call-template name="HelpLink"/></li>
     471      <li class="ui-state-default ui-corner-top" id="userMenuButton"><xsl:call-template name="LoginoutLink"/></li>
    493472      <xsl:if test="/page/pageRequest/paramList/param[(@name='debug') and (@value='on' or @value='true' or @value='1' or @value='yes')]">
    494         <li class="ui-tab-styling"><xsl:call-template name="DebugLink"/></li>
     473        <li class="ui-state-default ui-corner-top"><xsl:call-template name="DebugLink"/></li>
    495474      </xsl:if>
    496475      <!--
     
    698677   
    699678    <xsl:variable name="url" select="/page/pageRequest/@fullURL"/>
     679
    700680    <xsl:variable name="beforeLogout" select="substring-before($url, '&amp;amp;logout=')"/>
    701681    <xsl:variable name="tmpAfter" select="substring-after($url, '&amp;amp;logout=')"/>
     
    954934            </xsl:attribute>
    955935          </input>
    956           <br/>
     936          <br id="br-afterQuickSearchSubmitButton"/>
    957937        </xsl:if>
    958938          </form>
    959939        </xsl:when>
    960         <xsl:otherwise><br/></xsl:otherwise>
     940        <xsl:otherwise><br id="br-otherwiseQueryFormRelated"/></xsl:otherwise>
    961941      </xsl:choose>         
    962942    </xsl:if>
Note: See TracChangeset for help on using the changeset viewer.