Changeset 21978

Show
Ignore:
Timestamp:
28.04.2010 12:48:05 (9 years ago)
Author:
kjdon
Message:

for record datestamp, use gs.OAIDateStamp if available, otherwise use lastmodified

Location:
main/trunk/greenstone2/runtime-src/src/oaiservr
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/runtime-src/src/oaiservr/abstractlistaction.cpp

    r20628 r21978  
    202202  text_tset metadata; 
    203203  metadata.insert("lastmodified"); 
     204  metadata.insert("gs.OAIDateStamp"); 
    204205  FilterResponse_t response; 
    205206  if (!get_info(document_OID, collection, "", metadata, false, protocol, response, *this->logout)) 
  • main/trunk/greenstone2/runtime-src/src/oaiservr/oaiaction.cpp

    r21883 r21978  
    415415    lc(temp); 
    416416    if(temp == "gs.oaidatestamp"){ 
     417      // assume it is correct format 
    417418      lastModified = current->second.values[0]; 
    418419      return; 
     
    423424    time_t raw_time = (time_t)lastModified.getint(); 
    424425    lastModified = this->parseDatestamp(raw_time); 
    425     return; 
    426426      } 
    427427    }