Index: main/trunk/greenstone2/runtime-src/src/oaiservr/identifyaction.cpp
===================================================================
--- main/trunk/greenstone2/runtime-src/src/oaiservr/identifyaction.cpp (revision 22286)
+++ main/trunk/greenstone2/runtime-src/src/oaiservr/identifyaction.cpp (revision 22287)
@@ -59,8 +59,10 @@
// Get the repository name (some human-readable name for the site, or superset of collections)
text_t repositoryName = this->configuration->getRepositoryName();
+ text_t repositoryId = this->configuration->getRepositoryId();
// Get admin's email address (i.e. the site maintainer)
text_t maintainer = this->configuration->getMaintainer();
text_t version = (this->configuration->getOAIVersion() <= 110) ? (text_t)"1.1":(text_t)"2.0";
-
+ text_t id_version = this->configuration->getRepositoryIdVersion();
+
text_t baseURL = this->configuration->getBaseURL();
@@ -79,4 +81,28 @@
output << utf8convert << " YYYY-MM-DD\n";
}
+ // list the oai identifier
+ output << " \n";
+ if (id_version == "1.1") {
+
+ output << " \n";
+ } else {
+
+ output << " \n";
+
+
+ }
+
+ output << " oai\n";
+ output << " "<< repositoryId <<"\n";
+ output << " :\n";
+ output << " oai:"<\n";
+ output << " \n";
+
+ output << utf8convert << " \n";
// list all configuration information
text_tmap::iterator here = this->configuration->getInformation()->begin();