Changeset 26579 for main

Show
Ignore:
Timestamp:
13.12.2012 10:29:01 (7 years ago)
Author:
sjm84
Message:

Add a message to the home page when there is no collections

Location:
main/trunk/greenstone3/web
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/WEB-INF/classes/OAIConfig.xml

    r26033 r26579  
    88  TODO: this element should be determined and overriden dynamically given the osi request url in OAIServer.java.  
    99    WHAT'S DONE: when ant start is called, it writes out the default oaiserver URL to this file. --> 
    10   <baseURL>http://your-domain-name/greenstone3/oaiserver</baseURL> 
     10  <baseURL>http://localhost:8487/greenstone3/oaiserver</baseURL> 
    1111  <!-- The version of OAI specification this repository supports. Can be 2.0 or 1.0 --> 
    1212  <protocolVersion>2.0</protocolVersion> 
  • main/trunk/greenstone3/web/WEB-INF/classes/interface_default.properties

    r26489 r26579  
    4141home.librarian_interface=The Librarian Interface 
    4242home.select_a_collection=Select a collection 
     43home.no_collections=This library has no valid collections 
    4344 
    4445###################### 
  • main/trunk/greenstone3/web/interfaces/default/transform/pages/home.xsl

    r25276 r26579  
    2727 
    2828        <div id="collectionLinks"> 
     29            <xsl:if test="count(collectionList/collection) = 0"> 
     30                <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home.no_collections')"/> 
     31                <br/> 
     32            </xsl:if> 
    2933            <xsl:for-each select="collectionList/collection"> 
    3034                <gslib:collectionLinkWithImage/> 
     
    3236            <br class="clear"/> 
    3337        </div> 
    34  
    3538 
    3639        <gslib:serviceClusterList/>