Changeset 16835 for gsdl/trunk/runtime-src
- Timestamp:
- 2008-08-15T17:05:08+12:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/runtime-src/src/oaiservr/abstractlistaction.cpp
r16722 r16835 73 73 { int startDoc = 0; 74 74 75 // get the collection information76 protocol->get_collectinfo(gsdlCollect, cinfo, err, *this->logout);77 78 75 text_t metadataPrefix = params["metadataPrefix"]; 79 76 … … 86 83 } 87 84 } 85 86 // Get the OAI nodes from the info db file 87 text_t oai_root_node = "oai"; 88 text_tset metadata; // Must be empty for efficiency 89 FilterResponse_t response; 90 get_children(oai_root_node, gsdlCollect, "", metadata, false, protocol, response, *this->logout); 88 91 89 92 // If numDocs is 0, do nothing - this->prevDocSeen will stay false if this is the only collection 90 93 // looked at, or will keep whatever value it had prior to this col (ensures that if the flag has 91 94 // been set to true by a previous collection that this won't overwrite it to be false). 92 if ( cinfo.numDocs> 0) {95 if (response.docInfo.size() > 0) { 93 96 int errorCount = 0; // Count the number of errors found in the given collection 94 97 95 for (long i = startDoc; i < cinfo.numDocs; ++i) {98 for (long i = startDoc; i < response.docInfo.size(); ++i) { 96 99 if (errorCount > 3) { // If num errors reaches the cut-off value, bail. 97 100 cerr << "Error: too many records(" << errorCount << ") in the " << gsdlCollect
Note:
See TracChangeset
for help on using the changeset viewer.