Ignore:
Timestamp:
2013-03-28T18:49:27+13:00 (11 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.

File:
1 edited

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">
Note: See TracChangeset for help on using the changeset viewer.