- Timestamp:
- 2009-09-25T12:03:35+12:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/runtime-src/src/oaiservr/listsetsaction.cpp
r20629 r20708 151 151 bool listsetsaction::output_content_for_col(ostream &output, recptproto *protocol, oaiargs ¶ms, text_t collection) 152 152 { 153 utf8outconvertclass utf8convert; 153 154 text_t position = ""; 154 155 … … 184 185 if (position == "" || position == collection) 185 186 { 186 output << " <set>" << endl;187 output << " <setSpec>" << collection << "</setSpec>" << endl;187 output << utf8convert << " <set>\n"; 188 output << utf8convert << " <setSpec>" << collection << "</setSpec>\n"; 188 189 if (this->configuration->getSetName(collection) != "") 189 190 { 190 output << " <setName>" << this->configuration->getSetName(collection) << "</setName>" << endl;191 output << utf8convert << " <setName>" << this->configuration->getSetName(collection) << "</setName>\n"; 191 192 } 192 193 else 193 194 { 194 output << " <setName>" << collection << "</setName>" << endl;195 output << utf8convert << " <setName>" << collection << "</setName>\n"; 195 196 } 196 197 if (this->configuration->getSetDescription(collection) != "") 197 198 { 198 output << " <setDescription>" << this->configuration->getSetDescription(collection) << "</setDescription>" << endl;199 } 200 output << " </set>" << endl;199 output << utf8convert << " <setDescription>" << this->configuration->getSetDescription(collection) << "</setDescription>\n"; 200 } 201 output << utf8convert << " </set>\n"; 201 202 this->setsOutput++; 202 203 } … … 227 228 228 229 // Otherwise output this set and increment the count 229 output << " <set>" << endl;230 output << " <setSpec>" << collection << ":" << set << "</setSpec>" << endl;230 output << utf8convert << " <set>\n"; 231 output << utf8convert << " <setSpec>" << collection << ":" << set << "</setSpec>\n"; 231 232 if (this->configuration->getSetName(collection + ":" + set) != "") 232 233 { 233 output << " <setName>" << this->configuration->getSetName(collection + ":" + set) << "</setName>" << endl;234 output << utf8convert << " <setName>" << this->configuration->getSetName(collection + ":" + set) << "</setName>\n"; 234 235 } 235 236 else 236 237 { 237 output << " <setName>" << set_response.docInfo[0].metadata["Title"].values[0] << "</setName>" << endl;238 output << utf8convert << " <setName>" << set_response.docInfo[0].metadata["Title"].values[0] << "</setName>\n"; 238 239 } 239 240 if (this->configuration->getSetDescription(collection + ":" + set) != "") 240 241 { 241 output << " <setDescription>" << this->configuration->getSetDescription(collection + ":" + set) << "</setDescription>" << endl;242 } 243 output << " </set>" << endl;242 output << utf8convert << " <setDescription>" << this->configuration->getSetDescription(collection + ":" + set) << "</setDescription>\n"; 243 } 244 output << utf8convert << " </set>\n"; 244 245 this->setsOutput++; 245 246 }
Note:
See TracChangeset
for help on using the changeset viewer.