Ignore:
Timestamp:
2017-08-21T18:30:53+12:00 (7 years ago)
Author:
ak19
Message:

Committing useful debug statement, but commented out.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/core/OAIReceptionist.java

    r31912 r31913  
    858858    return GSXML.nodeToElement(result_node);
    859859  }
    860  
    861    
    862 
    863860
    864861  private void copyNamedElementfromConfig(Element to_elem, String element_name) {
     
    10401037    // we get the earliestDatestamp among the collections
    10411038    for(int i=0; i<oai_coll_size; i++) {
    1042       long coll_earliestDatestamp = Long.parseLong(((Element)oai_coll.item(i)).getAttribute(OAIXML.EARLIEST_DATESTAMP));
     1039    String collName = collection_name_list.get(i);
     1040    long coll_earliestDatestamp = Long.parseLong(((Element)oai_coll.item(i)).getAttribute(OAIXML.EARLIEST_DATESTAMP)); // Taken from oai-inf db's OAI_EARLIEST_TIMESTAMP_OID entry, else falls back to earliest datestamp field in buildcfg
    10431041      if (coll_earliestDatestamp == 0) {
    10441042    // try last modified
    10451043    coll_earliestDatestamp = Long.parseLong(((Element)oai_coll.item(i)).getAttribute(OAIXML.LAST_MODIFIED));
     1044    //logger.info("@@@ Falling back to using collection " + collName + "'s lastmodified date as its earliest timestamp: " + coll_earliestDatestamp);
    10461045      }
    10471046      if (coll_earliestDatestamp > 0) {
Note: See TracChangeset for help on using the changeset viewer.