Ignore:
Timestamp:
2017-08-23T18:58:38+12:00 (7 years ago)
Author:
ak19
Message:

Dr Bainbridge thought about it and decided that the correct solution is that, since a collection will always have an oai-inf db from now on, the earliest datestamp of a collection should not fall back to either buildconfig's earliestdatestamp field or else buildconfig's lastmodified. However, the latter are used as the publishing date by the RSS service, and so still stored as Collection.java's earliestDatestamp. Now OAICollection has a new additional field, earliestOAIDatestamp which contains the earliest timestamp in oai-inf db. The OAIReceptionist now determines the earliestDatestamp of the entire OAIRepository solely based on the earliestOAIDatestamp values across all OAICollections, also with no fallbacks on Collections' earliestDatestamp or lastModified fields.

File:
1 edited

Legend:

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

    r30838 r31915  
    7373    /** time when this collection was built Used by RSS */
    7474    protected long lastmodified = 0;
    75     /** earliestDatestamp of this collection. Used by OAI/RSS */
     75    /** earliestDatestamp of this collection. Used by RSS and as fallback by OAI */
    7676        protected long earliestDatestamp = 0;
    7777
     
    187187    }
    188188
    189     // Used by OAI Receptionist and RSSRetrieve
     189    // Used by OAI Receptionist (as second fallback) and RSSRetrieve
    190190    public long getLastmodified()
    191191    {
     
    193193    }
    194194
    195     // used by the OAIReceptionist and RSSRetrieve
     195    // used by the OAIReceptionist (as fallback) and RSSRetrieve
    196196    public long getEarliestDatestamp()
    197197    {
Note: See TracChangeset for help on using the changeset viewer.