Changeset 27152

Show
Ignore:
Timestamp:
28.03.2013 18:49:27 (7 years ago)
Author:
ak19
Message:

In collectionConfig.xml, the RSSRetrieve ServiceRack? is always active. header.xsl now tests for a gsf:option on RSS to determine whether to include an RSS feed link or not. The user can set a gsf:option with name attribute set to RSS and value set to true in any of the format elements of collectionConfig.xml to display an RSS feed link in the associated sections.

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

Legend:

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

    r27101 r27152  
    219219    <xsl:template name="home-help-preferences"> 
    220220        <ul id="bannerLinks"> 
    221           <xsl:if test="/page/pageResponse/collection/serviceList/service[@name='RSSFeed']"> 
     221 
     222          <!-- RSS feed link can appear in a global format statement (where it has no type attribute)  
     223               or in section specific format statements, such as browse, search, display.  
     224               If it's present in any format statement, display the RSS link in the bannerlinks section. --> 
     225          <xsl:if test="/page/pageResponse/format[@type='display' or @type='browse' or @type='search' or not(@type)]/gsf:option[@name='RSS']/@value = 'true'"> 
    222226            <li><gsf:link type="rss"><gsf:icon file="rssicon.png"/></gsf:link></li> 
    223227          </xsl:if> 
     228 
    224229            <!-- preferences --> 
    225230            <li class="ui-state-default ui-corner-all"> 
  • main/trunk/greenstone3/web/sites/localsite/collect/lucene-jdbm-demo/etc/collectionConfig.xml

    r27136 r27152  
    2424    <format> 
    2525      <!-- Define any global format statements here --> 
     26 
     27      <!-- Setting the RSS option to true here will display a link to the collection's RSS feed on all 
     28           pages of the collection. Can include the RSS feed link in section specific format statements 
     29           too, such as search, if wishing to display the link only in particular sections.--> 
     30      <gsf:option name="RSS" value="true"/> 
    2631    </format> 
    2732