Changeset 33595

Show
Ignore:
Timestamp:
22.10.2019 14:05:46 (3 weeks ago)
Author:
kjdon
Message:

new displayBaskets template - to avoid replicating code in query and classifier.xsl

Files:
1 modified

Legend:

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

    r33493 r33595  
    730730These get used on many different pages to add the 
    731731berry basket function to the site 
    732 --> 
     732  --> 
     733 
     734  <xsl:template name="displayBaskets"> 
     735    <xsl:if test="$berryBasketOn or $favouriteBasketOn 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)))"> 
     736<!--        <div id="float-anchor" style="position: absolute; width: 29%; min-width:180px; /*top: 105px;*/ right:20px; margin: 0 0 10px 20px;"> 
     737          <xsl:comment>Filler needed for div</xsl:comment>--> 
     738        <div id="rightSidebar"> 
     739          <xsl:if test="$berryBasketOn"> 
     740        <!-- show the berry basket if it's turned on --> 
     741        <gslib:berryBasket/> 
     742        <xsl:text> </xsl:text> 
     743          </xsl:if> 
     744 
     745          <xsl:if test="$favouriteBasketOn"> 
     746        <!-- show the favourites 'basket' if it's turned on --> 
     747        <gslib:gotoFavourites/> 
     748        <xsl:text> </xsl:text> 
     749          </xsl:if> 
     750 
     751          <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))"> 
     752        <!-- show the document basket if its turned on and the user has permission--> 
     753        <gslib:documentBasket/> 
     754        <xsl:text> </xsl:text> 
     755          </xsl:if> 
     756        </div> 
     757       <!-- </div>--> 
     758      </xsl:if> 
     759    </xsl:template> 
     760 
    733761  <!-- put the drag&drop berry basket on the page --> 
    734762  <xsl:template name="berryBasket">