Ignore:
Timestamp:
06/23/10 13:52:02 (11 years ago)
Author:
kjdon
Message:

new toOID takes an extra arg, repos_id, so its generates ids like oai:repos-id:collname:doc-id. old version is still used for set spec ids which remain like demo:CL5. another method to extrac the collection name from a full id

File:
1 edited

Legend:

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

    r15414 r22285  
    1111                ostream &logout);
    1212  static void   toOAI(const text_t &collection, text_t &classifier);
     13  static void   toOAI(const text_t repos_id, const text_t &collection, text_t &classifier);
    1314  static void   toGSDL(text_t &collection, text_t &classifier);
     15  static void  getCollectionFromOAIID(const text_t oai_id, text_t &collection_id);
    1416 private:
    1517  static void   swapColonsAndPeriods(text_t &classifier);
Note: See TracChangeset for help on using the changeset viewer.