Last change
on this file since 22285 was 22285, checked in by kjdon, 14 years ago |
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
|
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
632 bytes
|
Line | |
---|
1 |
|
---|
2 | #ifndef _OAITOOLS_H_
|
---|
3 | #define _OAITOOLS_H_
|
---|
4 |
|
---|
5 | #include "text_t.h"
|
---|
6 | #include "receptionist.h"
|
---|
7 |
|
---|
8 | class oaiclassifier {
|
---|
9 | public:
|
---|
10 | static text_t getGSDL_OID(const text_t &collection, const text_t& oai_id, recptproto *protocol,
|
---|
11 | ostream &logout);
|
---|
12 | 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);
|
---|
14 | static void toGSDL(text_t &collection, text_t &classifier);
|
---|
15 | static void getCollectionFromOAIID(const text_t oai_id, text_t &collection_id);
|
---|
16 | private:
|
---|
17 | static void swapColonsAndPeriods(text_t &classifier);
|
---|
18 | };
|
---|
19 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.