Changeset 27101

Show
Ignore:
Timestamp:
19.03.2013 19:47:17 (7 years ago)
Author:
ak19
Message:

Final commit for GS3 RSS support: if a GS3 collection is built by activating (uncommenting) its RSSRetrieve ServiceRack? in its collectionConfig.xml, then an RSS icon will now be added to the button bar of the collection's pages that links to the collection's RSS feed.

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

Legend:

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

    r26504 r27101  
    225225            <xsl:when test="@type='equivdoc'"> 
    226226                <xsl:call-template name="gsf:equivlinkgs3"/> 
     227            </xsl:when> 
     228            <xsl:when test="@type='rss'"> 
     229                <a>                     
     230                    <xslt:attribute name='href'> 
     231                        <xslt:value-of select='$library_name'/> 
     232                        <xsl:text>?a=rss&amp;l=en&amp;site=</xsl:text> 
     233                        <xslt:value-of select="$site_name"/> 
     234                        <xsl:text>&amp;c=</xsl:text> 
     235                        <xslt:value-of select='/page/pageResponse/collection/@name'/> 
     236                    </xslt:attribute> 
     237                    <xsl:apply-templates/> 
     238                </a>     
    227239            </xsl:when> 
    228240            <xsl:otherwise> 
  • main/trunk/greenstone3/web/interfaces/default/transform/layouts/header.xsl

    r27083 r27101  
    219219    <xsl:template name="home-help-preferences"> 
    220220        <ul id="bannerLinks"> 
     221          <xsl:if test="/page/pageResponse/collection/serviceList/service[@name='RSSFeed']"> 
     222            <li><gsf:link type="rss"><gsf:icon file="rssicon.png"/></gsf:link></li> 
     223          </xsl:if> 
    221224            <!-- preferences --> 
    222225            <li class="ui-state-default ui-corner-all"> 
  • main/trunk/greenstone3/web/sites/localsite/collect/lucene-jdbm-demo/etc/collectionConfig.xml

    r27031 r27101  
    206206    <replaceListRef id="gs2-standard"/> 
    207207    <serviceRackList> 
     208        <serviceRack name="RSSRetrieve"/> 
    208209        <!-- comment out the following serviceRack if you want to disable OAI for this collection --> 
    209210        <serviceRack name="OAIPMH">