Changeset 33253 for main

Show
Ignore:
Timestamp:
28.06.2019 12:49:55 (8 weeks ago)
Author:
kjdon
Message:

now need to add in berryvariables.js if we are doing berry basket stuff. also, moved berry.png into a variable so that it is easier to customise

Files:
1 modified

Legend:

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

    r33093 r33253  
    2626  <xsl:param name="filepath"/> 
    2727  <xsl:param name="google_tracking_id"/> 
     28 
     29  <xsl:variable name="berry_icon">berry.png</xsl:variable> 
    2830  <!-- every pages ....................................................................... --> 
    2931 
     
    783785    <script type="text/javascript" src="interfaces/{$interface_name}/js/yui/cookie-min.js"><xsl:text> </xsl:text></script> 
    784786    <script type="text/javascript" src="interfaces/{$interface_name}/js/yui/animation-min.js"><xsl:text> </xsl:text></script> 
    785      
     787    <script type="text/javascript" src="interfaces/{$interface_name}/js/berrybasket/berryvariables.js"><xsl:text> </xsl:text></script> 
    786788    <script type="text/javascript" src="interfaces/{$interface_name}/js/berrybasket/ygDDPlayer.js"><xsl:text> </xsl:text></script> 
    787789    <script type="text/javascript" src="interfaces/{$interface_name}/js/berrybasket/ygDDOnTop.js"><xsl:text> </xsl:text></script> 
     
    812814  <xsl:template name="documentBerryForClassifierOrSearchPage"> 
    813815    <xsl:if test="$berryBasketOn"> 
    814       <img class="pick" src="interfaces/{$interface_name}/images/berry.png" alt="in basket" width="15" height="15" border="0"> 
     816      <img class="pick" src="interfaces/{$interface_name}/images/{$berry_icon}" alt="in basket" width="15" height="15" border="0"> 
    815817        <xsl:attribute name="id"><xsl:value-of select="/page/pageResponse/collection/@name"/>:<xsl:value-of select="@nodeID"/></xsl:attribute> 
    816818      </img> 
     
    831833    <xsl:if test="$berryBasketOn"> 
    832834      <div id="documentberries"> 
    833         <img class="pick" id="{/page/pageResponse/collection/@name}:{$rootNode}" src="interfaces/{$interface_name}/images/berry.png" alt="in basket" width="15" height="15" border="0"/> 
     835        <img class="pick" id="{/page/pageResponse/collection/@name}:{$rootNode}" src="interfaces/{$interface_name}/images/{$berry_icon}" alt="in basket" width="15" height="15" border="0"/> 
    834836        <span id="{/page/pageResponse/collection/@name}:{$rootNode}:root" class="documentberry">the whole document</span> 
    835837        <!--<xsl:if test="$selectedNode != $rootNode"> 
    836           <img class="pick" id="{/page/pageResponse/collection/@name}:{$selectedNode}" src="interfaces/{$interface_name}/images/berry.png" alt="in basket" width="15" height="15" border="0"/> 
     838          <img class="pick" id="{/page/pageResponse/collection/@name}:{$selectedNode}" src="interfaces/{$interface_name}/images/{$berry_icon}" alt="in basket" width="15" height="15" border="0"/> 
    837839          <span id="{/page/pageResponse/collection/@name}:{$selectedNode}:section" class="documentberry">the current section</span> 
    838840        </xsl:if>-->