Changeset 29323

Show
Ignore:
Timestamp:
22.09.2014 14:08:16 (5 years ago)
Author:
kjdon
Message:

adding in the documentbasket to search results page

Files:
1 modified

Legend:

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

    r29278 r29323  
    5353 
    5454    <xsl:template name="displayBaskets"> 
    55       <!-- add in document basket here??? see classifier.xsl --> 
    56       <xsl:if test="$berryBasketOn"> 
     55      <xsl:if test="$berryBasketOn or ($documentBasketOn 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)))"> 
    5756        <div id="rightSidebar"> 
    5857          <xsl:if test="$berryBasketOn"> 
    5958        <!-- show the berry basket if it's turned on --> 
    6059        <gslib:berryBasket/> 
     60        <xsl:text> </xsl:text> 
     61          </xsl:if> 
     62          <xsl:if test="$documentBasketOn 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)))"> 
     63        <gslib:documentBasket/> 
    6164        <xsl:text> </xsl:text> 
    6265          </xsl:if>