Changeset 8219
- Timestamp:
- 2004-10-06T05:34:24+13:00 (20 years ago)
- Location:
- trunk/gsdl/src/oaiservr
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/oaiservr/Makefile.in
r8182 r8219 194 194 195 195 install: 196 install -m 755 -s library../../cgi-bin196 install -m 755 -s oaimain ../../cgi-bin 197 197 198 198 depend: -
trunk/gsdl/src/oaiservr/abstractlistaction.cpp
r8182 r8219 4 4 #include "oaitools.h" 5 5 6 #define MAXRECORDS 10 6 // The following makes sure that we don't actually use ResumptionTokens 7 #define MAXRECORDS -1 7 8 8 9 bool abstractlistaction::validateAction(recptproto *protocol, oaiargs ¶ms, int &numArgs) … … 144 145 } 145 146 146 // do a resumption token if required 147 if (this->replyToken != NULL ) {147 // do a resumption token if required; errors cancel a token... 148 if (this->replyToken != NULL && this->errorType != "") { 148 149 output << "<resumptionToken>"; 149 150 output << this->replyToken->getToken(); -
trunk/gsdl/src/oaiservr/dublincore.cpp
r8182 r8219 1 1 2 #include "dublincore.h" 2 3 … … 6 7 7 8 const text_t dublin_core::formatPrefix() { 8 return "dc .";9 return "dc"; 9 10 } 10 11 -
trunk/gsdl/src/oaiservr/metaformat.cpp
r8182 r8219 27 27 28 28 for (int item = 0; item < values.size(); item ++) { 29 if ( (this->formatPrefix() == "dc.") && (this->oaiConfigure->getOAIVersion() >= 200)){30 output << " < dc:" << label << ">" << values[item] << "</dc:" << label << ">\n";29 if (this->oaiConfigure->getOAIVersion() >= 200) { // TODO: GRB: This code may need to be subclassed by dc for 200 and later... 30 output << " <" << this->formatPrefix() << ":" << label << ">" << values[item] << "</" << this->formatPrefix() << ":" << label << ">\n"; 31 31 } 32 32 else { … … 50 50 while (here != end) { 51 51 start = last = here->first.begin(); 52 last += this->formatPrefix().size(); // Move last so that it is one place beyond where the "." should be. 53 metaItem = substr(start, last); // Gets the substring starting at start and going up to (but 54 // not including) last. This should be "dc." (for example) 55 52 53 if (here->first.size() < this->formatPrefix().size() || 54 here->first[this->formatPrefix().size()] != '.') { 55 metaItem == ""; 56 } 57 else { 58 last += this->formatPrefix().size() + 1; // Move last so that it is one place beyond where the "." should be. 59 metaItem = substr(start, last); // Gets the substring starting at start and going up to (but 60 // not including) last. This should be "dc." (for example) 61 } 62 56 63 if (metaItem == this->formatPrefix()) { 57 64 metaItem = substr(last, here->first.end()); // Get the rest of the metadata tag (it's name) -
trunk/gsdl/src/oaiservr/oaiconfig.cpp
r8182 r8219 120 120 this->collectMap[this->collection]->fieldMap[index] = name; 121 121 122 // 122 // cerr << "Mapping " << index << " to " << name << " in " << this->collection << endl; 123 123 124 124 // TODO: check that the mapped field is actually in use -
trunk/gsdl/src/oaiservr/oaitools.cpp
r8182 r8219 19 19 gsdl_id = response.docInfo[0].OID; 20 20 } 21 else // Response.docInfo is empty, meaning the doc in question didn't have an oai_id number. 21 else { 22 // Response.docInfo is empty, meaning the doc in question didn't have an oai_id number. 22 23 return gsdl_id; // Return the empty string to indicate this. 24 } 23 25 } 24 26 -
trunk/gsdl/src/oaiservr/resumptiontoken.cpp
r8182 r8219 113 113 } 114 114 reply = reply + ","; 115 cout << "OK" << flush; 115 116 reply.append(this->startItem); 116 117 reply = reply + "-" + buildDate; -
trunk/gsdl/src/oaiservr/rfc1807.cpp
r8182 r8219 7 7 8 8 const text_t rfc1807::formatPrefix() { 9 return "rfc1807 .";9 return "rfc1807"; 10 10 } 11 11
Note:
See TracChangeset
for help on using the changeset viewer.