Ignore:
Timestamp:
2011-08-16T17:52:13+12:00 (10 years ago)
Author:
ak19
Message:

Fixed a new failure of the OAI validation test of GS2's OAI server: where list records is given an Until date that is earlier than the earliestDatestamp. Needs to return a noRecordsMatch. It does now. The calculation of the earliestDatestamp is now shifted to the oaiaction.cpp superclass and called by both identifyaction and listrecordsaction for the identify and listrecords OAI queries, since these tasks need to work with earliestDatestamp.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/runtime-src/src/oaiservr/oaiaction.h

    r22739 r24412  
    4949 public:
    5050  oaiaction(const text_t &name);
    51 
     51 
    5252  virtual void setConfiguration(oaiconfig *config) { this->configuration = config; }
    5353  text_t getName();
     54  virtual text_t calcEarliestDatestamp(recptproto *protocol, oaiargs &params);
    5455  text_t parseDatestamp(time_t &rawtime);// Convert date from raw time_t format to the string YYYY-MM-DD
    5556  void   getResponseDate(text_t &date);  // Get the response date in UTC (GMT) time, plus local offset
     
    8687  text_t     errorType;
    8788  ostream  * logout;
     89  text_t    mEarliestDatestamp;
    8890};
    8991#endif
Note: See TracChangeset for help on using the changeset viewer.