Changeset 33382

Show
Ignore:
Timestamp:
05.08.2019 12:14:28 (2 weeks ago)
Author:
kjdon
Message:

don't add collection/collname to pref and help link if collname is empty

Files:
1 modified

Legend:

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

    r33140 r33382  
    352352   
    353353  <xsl:template name="PrefsLink"> 
    354     <a href="{$library_name}/collection/{$collNameChecked}/page/pref"> 
     354    <a><xsl:attribute name="href"><xsl:value-of select="$library_name"/>/<xsl:if test="not($collNameChecked = '')">collection/<xsl:value-of select="$collNameChecked"/>/</xsl:if>page/pref</xsl:attribute> 
    355355      <xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref_tip')"/></xsl:attribute> 
    356356      <span id="preferencesButton"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref_b')"/></span> 
     
    359359   
    360360  <xsl:template name="HelpLink"> 
    361     <a href="{$library_name}/collection/{$collNameChecked}/page/help"> 
     361    <a><xsl:attribute name="href"><xsl:value-of select="$library_name"/>/<xsl:if test="not($collNameChecked = '')">collection/<xsl:value-of select="$collNameChecked"/>/</xsl:if>page/help</xsl:attribute> 
    362362      <xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_tip')"/></xsl:attribute> 
    363363      <span id="helpButton"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_b')"/></span>