Changeset 18892
- Timestamp:
- 2009-04-06T11:52:19+12:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/runtime-src/src/oaiservr/oaiconfig.cpp
r18885 r18892 155 155 // first one. 156 156 // 157 // This configuration should only appear in main.cfg157 // This configuration should only appear in oai.cfg 158 158 // 159 159 if (this->collection != "") { 160 cerr << "Attempt to configure an oai collection outside of main.cfg" << endl;160 cerr << "Attempt to configure an oai collection outside of oai.cfg" << endl; 161 161 cerr << "Configuration attempted in " << this->collection << " collection." << endl; 162 162 exit(1); … … 164 164 for (int c = 0; c < cfgline.size(); ++c) { 165 165 this->collectList.push_back(cfgline[c]); 166 } 167 } 168 else if (key == "oaimetadata" && cfgline.size() >= 1) { 169 // List of metadata prefixes to suuport 170 // This line should read: 171 // 172 // oaicollection <metadataname> <metadataname>... 173 // 174 // 175 // This configuration should only appear in oai.cfg 176 // 177 if (this->collection != "") { 178 cerr << "Attempt to configure oai metadata outside of oai.cfg" << endl; 179 cerr << "Configuration attempted in " << this->collection << " collection." << endl; 180 exit(1); 181 } 182 for (int c = 0; c < cfgline.size(); ++c) { 183 // todo: check that the set name is valid 184 this->metadataSet.insert(cfgline[c]); 166 185 } 167 186 } … … 172 191 // oaiinfo <information field name> <value> 173 192 // 174 // This configuration should only be attempted in main.cfg193 // This configuration should only be attempted in oai.cfg 175 194 // 176 195 if (this->collection != "") { 177 cerr << "Attempt to set oai information outside of main.cfg" << endl;196 cerr << "Attempt to set oai information outside of oai.cfg" << endl; 178 197 cerr << "Configuration attempted in " << this->collection << " collection." << endl; 179 198 exit(1);
Note:
See TracChangeset
for help on using the changeset viewer.