Changeset 33735

Show
Ignore:
Timestamp:
02.12.2019 13:44:48 (5 days ago)
Author:
kjdon
Message:

replaced text strings with dictionary lookups, and if the collectionList is empty, display a message instead of empty drop down list

Files:
1 modified

Legend:

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

    r33701 r33735  
    55    xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil" 
    66    xmlns:gslib="http://www.greenstone.org/skinning" 
     7    xmlns:gsf="http://www.greenstone.org/greenstone3/schema/ConfigFormat"  
    78    extension-element-prefixes="java util" 
    8     exclude-result-prefixes="java util"> 
     9    exclude-result-prefixes="java util gslib gsf"> 
    910 
    1011    <!-- use the 'main' layout --> 
     
    1213 
    1314    <!-- set page title --> 
    14     <xsl:template name="pageTitle">Depositor</xsl:template> 
     15    <xsl:template name="pageTitle"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'depositor.title')"/></xsl:template> 
    1516 
    1617    <!-- set page breadcrumbs --> 
     
    3132            </xsl:when> 
    3233        <xsl:otherwise> 
     34          <xsl:choose> 
     35        <xsl:when test="/page/pageResponse/depositorPage/collectionList/collection"> 
    3336        <div style="display:table; margin: 0 auto"> 
    34             Please select a collection: 
     37            <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'depositor.select_collection')"/><gsf:space/> 
    3538            <select id="colSelect"> 
    36                 <option>-- Select a collection --</option> 
     39                <option><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'depositor.select_collection_option')"/></option> 
    3740                <xsl:for-each select="/page/pageResponse/depositorPage/collectionList/collection"> 
    3841                    <option> 
     
    5558            </script> 
    5659        </div> 
     60        </xsl:when> 
     61        <xsl:otherwise> 
     62          <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'depositor.no_valid_collection')"/> 
     63        </xsl:otherwise> 
     64          </xsl:choose> 
    5765        </xsl:otherwise> 
    5866      </xsl:choose>