- Timestamp:
- 2009-09-25T10:31:05+12:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/runtime-src/src/oaiservr/identifyaction.cpp
r16711 r20707 55 55 bool identifyaction::output_content(ostream &output, recptproto *protocol, oaiargs ¶ms) 56 56 { 57 utf8outconvertclass utf8convert; 58 57 59 // Get the repository name (some human-readable name for the site, or superset of collections) 58 60 text_t repositoryName = this->configuration->getCollectionConfig("", "repositoryName"); … … 63 65 text_t baseURL = this->configuration->getCollectionConfig("", "baseURL"); 64 66 65 output << " <repositoryName>" << repositoryName << "</repositoryName>" << endl;66 output << " <baseURL>" << baseURL << "</baseURL>" << endl; // Tack on the app name67 output << " <protocolVersion>" << version << "</protocolVersion>" << endl;68 output << " <adminEmail>" << maintainer << "</adminEmail>" << endl;67 output << utf8convert << " <repositoryName>" << repositoryName << "</repositoryName>\n"; 68 output << utf8convert << " <baseURL>" << baseURL << "</baseURL>\n"; 69 output << utf8convert << " <protocolVersion>" << version << "</protocolVersion>\n"; 70 output << utf8convert << " <adminEmail>" << maintainer << "</adminEmail>\n"; 69 71 70 72 if(version == "2.0"){ … … 73 75 // not to be worth the effort of trolling through all the lastmodified dates (by others with more 74 76 // say than me) 75 output << " <earliestDatestamp>1970-01-01</earliestDatestamp>\n"76 << " <deletedRecord>no</deletedRecord>\n" 77 77 output << utf8convert << " <earliestDatestamp>1970-01-01</earliestDatestamp>\n"; 78 output << utf8convert << " <deletedRecord>no</deletedRecord>\n"; 79 output << utf8convert << " <granularity>YYYY-MM-DD</granularity>\n"; 78 80 } 79 81 // list all configuration information … … 81 83 text_tmap::iterator end = this->configuration->getInformation()->end(); 82 84 while (here != end) { 83 output << " <" << here->first << ">" << here->second;84 output << " </" << here->first << ">" << endl;85 output << utf8convert << " <" << here->first << ">" << here->second; 86 output << utf8convert << " </" << here->first << ">\n"; 85 87 ++here; 86 88 }
Note:
See TracChangeset
for help on using the changeset viewer.