Changeset 31904


Ignore:
Timestamp:
08/18/17 19:51:51 (3 years ago)
Author:
ak19
Message:

The new record in oai-inf db containing the earliest timestamp of the collection now has 'OID' _earliesttimestamp (previously earliesttimestamp) as Dr Bainbridge said that at least an underscore prefix signifies something internal. Updating both perllib and runtime GS2 (C++) end, but have also rebuilt the oai-inf.gdb for the demo collection with the correct field now.

Location:
main/trunk/greenstone2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/oaiinfo.pm

    r31900 r31904  
    66use constant INFO_DATESTAMP_INDEX => 2;
    77
    8 my $OID_EARLIEST_TIMESTAMP = "earliesttimestamp";
     8my $OID_EARLIEST_TIMESTAMP = "_earliesttimestamp";
    99  # Declaring as my $OID_EARLIEST_TIMESTAMP rather than constant, because it's not straightforward
    1010  # to use string constant as hash key (need to concat with empty str).
     
    3131# This record has $OID_EARLIEST_TIMESTAMP for OID.
    3232# Its deletion status is maintained at NA, not applicable.
    33 # In cases of older oai-inf.db files where there's no earliesttimestamp field, this record
     33# In cases of older oai-inf.db files where there's no $OID_EARLIEST_TIMESTAMP record, this record
    3434# is also created but with timestamp set to the oldest lastmodified date in oai-inf.db.
    3535
  • main/trunk/greenstone2/runtime-src/src/colservr/comtypes.h

    r31903 r31904  
    4949
    5050
    51 const text_t OAI_EARLIESTTIMESTAMP_OID = "earliesttimestamp";
     51const text_t OAI_EARLIESTTIMESTAMP_OID = "_earliesttimestamp";
    5252         // https://www.tutorialspoint.com/cplusplus/cpp_constants_literals.htm
    5353
Note: See TracChangeset for help on using the changeset viewer.