Ignore:
Timestamp:
2019-03-05T15:30:27+13:00 (5 years ago)
Author:
davidb
Message:

Mostly code tidy-up. In IIIFServerBridge.java, edit to remove hard-wired path

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs3-extensions/iiif-servlet/trunk/src/gsdl-src/java/org/greenstone/gsdl3/collection/IIIFCollection.java

    r32843 r32860  
    5555public class IIIFCollection extends Collection
    5656{
    57 
    5857    static Logger logger = Logger.getLogger(org.greenstone.gsdl3.collection.IIIFCollection.class.getName());
    5958
    6059    /** does this collection provide the IIIF service */
    6160    protected boolean has_iiif = false;
    62 
    63     /** earliest datestamp of an OAI collection. Also used to work out the earliest datetimestamp of the entire OAI repository */
    64     /*
    65     protected long earliestOAIDatestamp = 0;
    66     */
    6761   
    6862    /** a reference to the IIIFPMH service rack */
     
    116110    }
    117111
    118     // NOTE:
    119     // Calling cleanUp() on IIIFPMH object iiif_service_rack will
    120     // close any open dbs handles on module deactivation by
    121     // MESSAGEROUTER (no deactivate yet called by
    122     // IIIFMessageRouter)
    123 
    124     // But the IIIFPMH object's cleanUp() is already called by
    125     // superclass ServiceCluster, which goes around calling
    126     // cleanUp() on all services/ServiceRacks.
    127 
    128112    /**
    129113     * whether this collection has IIIFPMH services
     
    134118    }
    135119
    136     /**
    137      * The earliesttimestamp entry in the oai-inf.db representing when the collection was created.
    138      * Used by the OAIReceptionist
    139     */
    140     /*
    141     public long getEarliestOAIDatestamp()
    142     {
    143         return earliestOAIDatestamp;
    144     }
    145     */
    146120   
    147121  /** add any extra info for collection from IIIFConfig.xml */
     
    154128    protected boolean configureServiceRackList(Element service_rack_list, Element extra_info)
    155129    {
    156 
     130        //logger.info("*** Away to call getNamedElement() for service_rack_list = " + XMLConverter.getPrettyString(service_rack_list));
     131       
    157132      // find the IIIFPMH service
    158133      Element iiif_service_xml = GSXML.getNamedElement(service_rack_list, GSXML.SERVICE_CLASS_ELEM, GSXML.NAME_ATT, "IIIFPMH");
     
    181156     
    182157      if (this.iiif_service_rack.configure(iiif_service_xml, extra_info)) {
    183 
    184           /*
    185           // once we've configured the IIIFPMH service, we can use the OAIPMH service to
    186           // retrieve the earliest timestamp of this OAI collection from the oai-inf db
    187           long earliestTimestamp = this.oai_service_rack.getEarliestTimestamp();
    188           if(earliestTimestamp == -1) {
    189           this.earliestOAIDatestamp = -1;
    190           logger.warn("No OAI timestamp for collection " + this.cluster_name);
    191           } else {
    192           this.earliestOAIDatestamp = earliestTimestamp; // milliseconds
    193           }
    194           */
    195        
     158   
    196159        // find out the supported service types for this service module
    197160        Node types = this.iiif_service_rack.process(message);
     
    224187      }
    225188     
    226 
    227189      return false;
    228190    }
    229 
    230191}
Note: See TracChangeset for help on using the changeset viewer.