Changeset 30776

Show
Ignore:
Timestamp:
01.09.2016 14:27:03 (3 years ago)
Author:
kjdon
Message:

removing hard coded text fragments from xsl/js files

Files:
1 modified

Legend:

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

    r30740 r30776  
    615615   
    616616  <!-- query page ............................................................................ --> 
    617   <xsl:template name="indexName"> 
     617<!--  <xsl:template name="indexName"> 
    618618    <xsl:value-of select="/page/pageResponse/service/displayItem[@name='name']"/> 
    619619  </xsl:template> 
     620 
    620621  <xsl:template name="queryPageCollectionName"> 
    621622    <xsl:choose> 
     
    625626      <xsl:otherwise>Cross-Collection</xsl:otherwise> 
    626627    </xsl:choose> 
    627   </xsl:template> 
     628  </xsl:template>--> 
    628629   
    629630  <!-- 
     
    636637    <xsl:if test="$berryBasketOn"> 
    637638      <div id="berrybasket" class="hide"> 
    638         <span>Berry Basket</span> 
     639        <span><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'berry.title')"/><xsl:text> </xsl:text></span> 
    639640        <span id="berryBasketExpandCollapseLinks" style="display: none;"> 
    640           <a id="berryBasketExpandLink" href="javascript:showBasket()">Expand</a> 
    641           <a id="berryBasketCollapseLink" style="display: none;" href="javascript:hideBasket()">Collapse</a> 
     641          <a id="berryBasketExpandLink" href="javascript:showBasket()"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'basket.expand')"/></a> 
     642          <a id="berryBasketCollapseLink" style="display: none;" href="javascript:hideBasket()"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'basket.collapse')"/></a> 
    642643        </span> 
    643644        <div id="baskethandle"> 
     
    650651            <xsl:text> </xsl:text> 
    651652          </span> 
     653    </div> 
     654    <div><a id="berryFullViewLink" style="display: none;"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'berry.full')"/></a></div> 
     655    <div id="berryHelpMsg"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'berry.help')"/></div> 
    652656        </div> 
    653       </div> 
     657      
    654658    </xsl:if> 
    655659  </xsl:template> 
     
    659663        <xsl:if test="$documentBasketOn and /page/pageRequest/userInformation and /page/pageRequest/userInformation/@editEnabled = 'true' 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))"> 
    660664            <div id="documentbasket" class="hide"> 
    661                 <span>Document Basket</span> 
     665                <span><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'db.doc_basket')"/><xsl:text> </xsl:text></span> 
    662666                <span id="documentBasketExpandCollapseLinks" style="display: none;"> 
    663                     <a id="documentBasketExpandLink" href="javascript:showDocumentBox()">Expand</a> 
    664                     <a id="documentBasketCollapseLink" style="display: none;" href="javascript:hideDocumentBox()">Collapse</a> 
     667                    <a id="documentBasketExpandLink" href="javascript:showDocumentBox()"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'basket.expand')"/></a> 
     668                    <a id="documentBasketCollapseLink" style="display: none;" href="javascript:hideDocumentBox()"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'basket.collapse')"/></a> 
    665669                </span> 
    666670                <div id="documenthandle"> 
     
    675679                </div> 
    676680                <div> 
    677                     <a href="javascript:clearBasket();">Clear basket</a> 
     681                    <a href="javascript:clearBasket();"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'basket.clear')"/></a> 
    678682                </div> 
    679683            </div>