Changeset 15403
- Timestamp:
- 2008-05-13T12:26:57+12:00 (16 years ago)
- Location:
- gsdl/trunk/src/oaiservr
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/src/oaiservr/Makefile.in
r13773 r15403 100 100 ../../src/recpt/nullproto.o ../../src/recpt/recptproto.o \ 101 101 ../../src/recpt/htmlutils.o ../../src/recpt/infodbclass.o \ 102 ../../src/recpt/recptconfig.o ../../src/recpt/cgiargs.o \ 103 ../../src/recpt/cgiutils.o 102 ../../src/recpt/cgiargs.o ../../src/recpt/cgiutils.o 104 103 105 104 COMMONOBJECTS = oaiargs.o oaiaction.o oaiconfig.o oaidispatcher.o \ -
gsdl/trunk/src/oaiservr/identityaction.cpp
r15198 r15403 1 1 #include "identityaction.h" 2 #include "recptconfig.h"3 2 4 3 bool identityaction::validateAction(recptproto *protocol, oaiargs ¶ms) … … 30 29 bool identityaction::output_content(ostream &output, recptproto *protocol, oaiargs ¶ms) 31 30 { 32 text_t gsdlhome, httpdomain, httpprefix;33 34 31 // Get the repository name (some human-readable name for the site, or superset of collections) 35 32 text_t repositoryName = this->configuration->getCollectionConfig("", "repositoryName"); 36 33 // Get admin's email address (i.e. the site maintainer) 37 34 text_t maintainer = this->configuration->getCollectionConfig("", "maintainer"); 38 // Get baseURL by extracting httpdomain from the gsdlsite.cfg file39 35 text_t version = (this->configuration->getOAIVersion() <= 110) ? (text_t)"1.1":(text_t)"2.0"; 40 36 41 //site_cfg_read(gsdlhome, httpdomain, httpprefix);42 37 text_t baseURL = this->configuration->getCollectionConfig("", "baseURL"); 43 38 -
gsdl/trunk/src/oaiservr/oaiaction.cpp
r15196 r15403 2 2 #include "oaitools.h" 3 3 #include "OIDtools.h" 4 #include "recptconfig.h"5 4 6 5 #include <string> … … 210 209 text_tmap::const_iterator end; 211 210 int numArgs = params.getSize(); 212 text_t gsdlhome, httpdomain, httpprefix;213 211 214 212 here = params.begin(); 215 213 end = params.end(); 216 214 217 // Read stuff from the gsdlsite.cfg file. We do this to get the base URL (httpdomain)218 //site_cfg_read(gsdlhome, httpdomain, httpprefix);219 215 text_t baseURL = this->configuration->getCollectionConfig("", "baseURL"); 220 216 -
gsdl/trunk/src/oaiservr/win32.mak
r13773 r15403 115 115 116 116 RECPTOBJECTS = "$(recptDir)\comtypes.obj" "$(recptDir)\OIDtools.obj" "$(recptDir)\nullproto.obj" "$(recptDir)\recptproto.obj" \ 117 "$(recptDir)\htmlutils.obj" "$(recptDir)\infodbclass.obj" "$(recptDir)\ recptconfig.obj" "$(recptDir)\cgiargs.obj" \117 "$(recptDir)\htmlutils.obj" "$(recptDir)\infodbclass.obj" "$(recptDir)\cgiargs.obj" \ 118 118 "$(recptDir)\cgiutils.obj" 119 119
Note:
See TracChangeset
for help on using the changeset viewer.