Changeset 18889
- Timestamp:
- 2009-04-06T11:49:09+12:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/runtime-src/src/oaiservr/recordaction.cpp
r18861 r18889 8 8 9 9 10 recordaction::recordaction( ) : oaiaction("GetRecord") {10 recordaction::recordaction(text_tset &metadataset) : oaiaction("GetRecord") { 11 11 metaformatptr fptr; 12 12 13 fptr.set_class(new dublin_core()); 14 this->formatMap[fptr.get_class()->formatName()] = fptr; 15 16 fptr.set_class(new qualified_dublin_core()); 17 this->formatMap[fptr.get_class()->formatName()] = fptr; 18 19 fptr.set_class(new rfc1807()); 20 this->formatMap[fptr.get_class()->formatName()] = fptr; 13 if (metadataset.count("oai_dc") > 0) { 14 fptr.set_class(new dublin_core()); 15 this->formatMap[fptr.get_class()->formatName()] = fptr; 16 } 17 18 if (metadataset.count("gsdl_qdc") > 0) { 19 fptr.set_class(new qualified_dublin_core()); 20 this->formatMap[fptr.get_class()->formatName()] = fptr; 21 } 22 23 if (metadataset.count("rfc1807") > 0) { 24 25 fptr.set_class(new rfc1807()); 26 this->formatMap[fptr.get_class()->formatName()] = fptr; 27 } 21 28 } 22 29
Note:
See TracChangeset
for help on using the changeset viewer.