Changeset 27087


Ignore:
Timestamp:
2013-03-14T17:23:20+13:00 (11 years ago)
Author:
ak19
Message:

Implemented RSS support for GS3. At present, can see this with a=rss in the url, when a collection is built. Soon will have a button (at least for the GS3 demo collection).

Location:
main/trunk/greenstone3
Files:
4 added
5 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/collection/ServiceCluster.java

    r26446 r27087  
    470470            s.setSiteAddress(this.site_http_address);
    471471            s.setClusterName(this.cluster_name);
     472            s.setServiceCluster(this);
    472473            s.setMessageRouter(this.router);
    473474            // pass the xml node to the service for configuration
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service/ServiceRack.java

    r25990 r27087  
    2424
    2525import org.apache.log4j.Logger;
     26import org.greenstone.gsdl3.collection.ServiceCluster;
    2627import org.greenstone.gsdl3.core.MessageRouter;
    2728import org.greenstone.gsdl3.core.ModuleInterface;
     
    6768    protected MessageRouter router = null;
    6869
     70        /** Access to the collection/serviceCluster object for service subclasses */
     71        protected ServiceCluster serviceCluster = null;
     72
    6973    /** a converter class to create Documents etc */
    7074    protected XMLConverter converter = null;
     
    99103    {
    100104        this.cluster_name = cluster_name;
     105    }
     106
     107        /** sets the serviceCluster/Collection object */
     108    public void setServiceCluster(ServiceCluster serviceCluster)
     109    {
     110        this.serviceCluster = serviceCluster;
    101111    }
    102112
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/util/GSParams.java

    r27022 r27087  
    7878    // some standard arg values
    7979    public static final String SYSTEM_ACTION = "s";
     80
     81    // rss feeds
     82    public static final String RSS_ACTION = "rss";
    8083
    8184    public static final String EXTERNAL_LINK_TYPE_DIRECT = "direct";
  • main/trunk/greenstone3/web/interfaces/default/interfaceConfig.xml

    r26871 r27087  
    1212      <subaction name="html" xslt="html.xsl"/> <!-- use to put an external page into a frame with a collection header-->
    1313    </action>
     14    <action class="RSSAction" name="rss" xslt="pages/rss.xsl"/>
    1415    <action class="QueryAction" name="q" xslt="pages/query.xsl"/>
    1516    <action class="GS2BrowseAction" name="b" xslt="pages/classifier.xsl"/>
  • main/trunk/greenstone3/web/interfaces/default/transform/gslib.xsl

    r26501 r27087  
    99
    1010
    11 <xsl:output
    12     method="html"
    13     doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
    14     doctype-system="http://www.w3.org/TR/html4/loose.dtd"/>
    15 
    16     <xsl:include href="xml-to-string.xsl"/>
     11  <!-- force lower priority on xsl:output, so other files like rss.xsl can override with their own xsl:output stmt
     12    If other files don't specify any, gslib.xsl specifies html output as default and defines a loose DOCTYPE for it. -->
     13  <xsl:import href="html-output.xsl" />
     14
     15  <xsl:include href="xml-to-string.xsl"/>
    1716   
    1817  <!-- some global parameters - these are set by whoever is invoking the transformation -->
Note: See TracChangeset for help on using the changeset viewer.