Changeset 33343

Show
Ignore:
Timestamp:
23.07.2019 12:38:00 (4 weeks ago)
Author:
kjdon
Message:

add in favourites langfrags (not just berry ones). Change the title depending on whether its favourites or berries

Files:
1 modified

Legend:

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

    r33285 r33343  
    1111    <!-- use the 'main' layout --> 
    1212    <xsl:include href="layouts/main.xsl"/> 
    13      
     13 
     14    <xsl:variable name="basketType"><xsl:choose><xsl:when test="/page/pageResponse/interfaceOptions/option[@name = 'favouriteBasket']/@value = 'true'">favourites</xsl:when><xsl:otherwise>berry</xsl:otherwise></xsl:choose></xsl:variable> 
     15    <xsl:variable name="basketType">favourites</xsl:variable> 
    1416    <!-- set page title --> 
    15     <xsl:template name="pageTitle"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'berry.title')"/></xsl:template> 
     17    <xsl:template name="pageTitle"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, concat($basketType, '.title'))"/></xsl:template> 
    1618 
    1719    <!-- set page breadcrumbs --> 
     
    2426 
    2527      <gslib:langfrag name="berry"/> 
     28      <gslib:langfrag name="favourites"/> 
    2629        <xsl:variable name="clusterName"><xsl:value-of select="/page/pageRequest/paramList/param[@name='c']/@value"/></xsl:variable> 
    2730        <script type="text/javascript" src="interfaces/{$interface_name}/js/berrybasket/berrycheckout.js"><xsl:text> </xsl:text></script>