Changeset 33958


Ignore:
Timestamp:
2020-02-20T19:32:28+13:00 (4 years ago)
Author:
ak19
Message:

There were other xsl files using the original depositorTitleAndLink template, and so I shouldn't have changed that but introduced a new template in previous commits. It had caused a subtle issue in the top navigation link when on the depositor home page. This time, I've put the name of the original functionality back, and the new template has been named depositorTitleMainLink instead and is to be used where I introduced it for testing with Cher, in home.xsl.

Location:
main/trunk/greenstone3/web/interfaces/default/transform
Files:
3 edited

Legend:

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

    r33957 r33958  
    417417  </xsl:template>
    418418
    419   <xsl:template name="depositorTitleAndLink">
     419  <xsl:template name="depositorTitleMainLink">
    420420    <div class="paramLabel">
    421421      <a href="{$library_name}?a=de"><!-- HAS SIDE-EFFECT: <a href="{$library_name}/page/depositor_home">-->
     
    427427    </div>   
    428428  </xsl:template>
    429    
     429 
     430  <xsl:template name="depositorTitleAndLink">
     431    <a href="{$library_name}?a=de"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'depositor.title')"/></a>
     432  </xsl:template>
     433 
    430434  <xsl:template name="greenstoneLogoAlternateText">
    431435    <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'gsdl')"/>
  • main/trunk/greenstone3/web/interfaces/default/transform/pages/depositor_home.xsl

    r33957 r33958  
    1717    <!-- set page breadcrumbs -->
    1818    <xsl:template name="breadcrumbs">     
    19       <gslib:siteLink/><gslib:rightArrow/><a href="{$library_name}?a=de"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'depositor.title')"/>
    20       </a><gslib:rightArrow/>
     19      <gslib:siteLink/><gslib:rightArrow/><gslib:depositorTitleAndLink/><gslib:rightArrow/>
    2120      <xsl:if test="/page/pageResponse/collection">
    2221        <gslib:collectionNameLinked/><gslib:rightArrow/>
  • main/trunk/greenstone3/web/interfaces/default/transform/pages/home.xsl

    r33957 r33958  
    6161            <!--<gslib:libraryInterfaceLink/><br/><br/>-->
    6262            <gslib:authenticationLink/><br/><br/>
    63             <gslib:depositorTitleAndLink/><br/><br/>
     63            <gslib:depositorTitleMainLink/><br/><br/>
    6464            <gslib:registerLink/><br/><br/>
    6565        </xsl:for-each>
Note: See TracChangeset for help on using the changeset viewer.