- Timestamp:
- 2014-05-19T13:23:56+12:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/core/OAIMessageRouter.java
r28989 r29065 55 55 static Logger logger = Logger.getLogger(org.greenstone.gsdl3.core.MessageRouter.class.getName()); 56 56 57 57 public Element oai_config = null; 58 58 //*************************************************************** 59 59 // public methods … … 74 74 cleanUpModuleMapEntire(); 75 75 76 // for oai, we don't do anything with the site config file. But we'll read it in and keep it in case need it later, eg for replace elements when retrieving metadata - which I don't think has been implemented 76 77 File configFile = new File(GSFile.siteConfigFile(this.site_home)); 77 78 … … 91 92 this.config_info = config_doc.getDocumentElement(); 92 93 93 // for oai, we don't do anything with the config file. But we'll keep it in case need it later, eg for replace elements when retrieving metadata - which I don't think has been implemented 94 94 // this is the receptionists OAIConfig.xml. Need to rethink how the MR gets this this if we ever talk to remote site, and whether it should be using it anyway 95 this.oai_config = OAIXML.getOAIConfigXML(); 96 if (this.oai_config == null) 97 { 98 logger.error("Couldn't load in OAIConfig.xml"); 99 return false; 100 } 95 101 Document doc = XMLConverter.newDOM(); 96 102 // load up the collections … … 131 137 if (!c.hasOAI()) { 132 138 logger.info ("collection "+col_name+" has no OAI services. Not keeping it loaded"); 139 return false; 140 } 141 if (!c.configureOAI(this.oai_config)) { 142 logger.info("couldn't configure the collection : "+col_name +" with the oai config info"); 133 143 return false; 134 144 }
Note:
See TracChangeset
for help on using the changeset viewer.