Ignore:
Timestamp:
2011-06-03T22:44:28+12:00 (13 years ago)
Author:
ak19
Message:

Now GS2 works out the earliestDatestamp of the repository in the manner GS3 does it (read each OAI-enabled collection's build.cfg to get the collection's earliestDatestamp field and choose the oldest such date among the OAI collections). Previously GS2 used to always set the earliestDatestamp to the unix epoch of 1970, which, while it would validate, wasn't the right thing to do as it wouldn't help with resumptiontokens and other date based things. Checked that the GS server still validates.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/runtime-src/src/colservr/collectserver.cpp

    r23492 r24114  
    291291    else if ((key == "auth_group") || (key == "auth_groups")) joinchar(cfgline,',',collectinfo.auth_group);
    292292
     293    // build.cfg, earliestDatestamp of this collection needed for
     294    // OAIServer to work out earliestDatestamp of this repository
     295    else if (key == "earliestdatestamp") {
     296        collectinfo.earliestDatestamp = cfgline[0]; // get it from build.cfg
     297    }
     298   
    293299    // store all the mappings for use when collection meta is read later
    294300    // (build.cfg read before collect.cfg)
Note: See TracChangeset for help on using the changeset viewer.