- Timestamp:
- 2010-06-01T15:10:34+12:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/runtime-src/src/oaiservr/oaiconfig.h
r21455 r22212 6 6 #include <map> 7 7 8 // TODO: sort out the members of oaicollectconfig as private/public and add9 // corresponding set/get functions10 11 8 class oaicollectconfig { 12 9 public: 13 10 oaicollectconfig(const text_t &collectname) { this->collection = collectname; } 14 11 text_t collection; 15 text_t maintainer; 16 text_t repositoryName; 17 text_t baseURL; // URL of oaiserver.cgi 18 text_t baseDocRoot; // Base URL for gsdl directory 12 text_t setName; // A display name for the set (collection) 13 text_t setDescription; // A display description for the set (collection) 19 14 text_tmap fieldMap; // maps from OAI name to GSDL name 20 15 }; … … 28 23 virtual ~oaiconfig(); 29 24 virtual void configure(const text_t &key, const text_tarray &cfgline); 30 text_t getCollectionConfig(const text_t &collection, const text_t &field);31 25 text_tarray & getCollectionsList() { return this->collectList; } 32 26 text_tset & getMetadataSet() { return this->metadataSet; } … … 36 30 text_t getSetName(const text_t &setSpec); 37 31 text_t getSetDescription(const text_t &setSpec); 38 int getOAIVersion(); 39 int resumeAfter(); 32 int getOAIVersion(); 33 int resumeAfter(); 34 text_t getBaseURL(); 35 text_t getBaseLibraryURL(); 36 text_t getBaseDocRoot(); 37 text_t getRepositoryName(); 38 text_t getMaintainer(); 40 39 private: 41 40 bool configureCollection(const text_t &gsdlhome, const text_t &collection); 42 41 42 text_t repositoryName; 43 text_t baseURL; // URL of oaiserver.cgi 44 text_t baseLibraryURL; // URL of library.cgi (used for urls to greenstone documents ) 45 text_t baseDocRoot; // Base URL for gsdl directory (used for urls to source documents ) 46 text_t oaiVersion; // The version of OAI running 47 int resumptionSize; // The number of items to produce before spitting out a resumptionToken 48 text_t maintainer; 49 43 50 text_tarray collectList; // The list of collections to be taken in hand 44 51 text_tset metadataSet; // The list of metadata sets to be supported 45 52 text_tmap infoMap; // Holds the information to be given in the case 46 53 // of an OAI identify request 47 text_tmap setNameMap; // Holds user-defined names for the sets48 text_tmap setDescriptionMap; // Holds user-defined descriptions for the sets49 54 oaicollectmap collectMap; // The configuration of collections 50 55 text_t collection; // Used to track which collection is being configured 51 text_t oaiVersion; // The version of OAI running52 int resumptionSize; // The number of items to produce before spitting out a53 // resumptionToken54 56 55 57 };
Note:
See TracChangeset
for help on using the changeset viewer.