Changeset 10293
- Timestamp:
- 2005-07-25T16:12:09+12:00 (19 years ago)
- Location:
- trunk/gsdl3/src/java/org/greenstone/gsdl3/core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/src/java/org/greenstone/gsdl3/core/Receptionist.java
r9874 r10293 76 76 77 77 // find the config file containing a list of actions 78 File interface_config_file = new File(GSFile.interfaceConfigFile(GSFile.interfaceHome( (String)this.config_params.get(GSConstants.GSDL3_HOME), (String)this.config_params.get(GSConstants.INTERFACE_NAME))));78 File interface_config_file = new File(GSFile.interfaceConfigFile(GSFile.interfaceHome(GlobalProperties.getGSDL3Home(), (String)this.config_params.get(GSConstants.INTERFACE_NAME)))); 79 79 if (!interface_config_file.exists()) { 80 80 System.err.println("Receptionist: interface config file: "+interface_config_file.getPath()+" not found!"); … … 224 224 while (!base_interface.equals("")) { 225 225 // find the base interface config file 226 File base_interface_config_file = new File(GSFile.interfaceConfigFile(GSFile.interfaceHome( (String)this.config_params.get(GSConstants.GSDL3_HOME), base_interface)));226 File base_interface_config_file = new File(GSFile.interfaceConfigFile(GSFile.interfaceHome(GlobalProperties.getGSDL3Home(), base_interface))); 227 227 if (!base_interface_config_file.exists()) { 228 228 System.err.println("Receptionist: base interface config file: "+base_interface_config_file.getPath()+" not found!"); -
trunk/gsdl3/src/java/org/greenstone/gsdl3/core/TransformingReceptionist.java
r9874 r10293 47 47 48 48 // find the config file containing a list of actions 49 File interface_config_file = new File(GSFile.interfaceConfigFile(GSFile.interfaceHome( (String)this.config_params.get(GSConstants.GSDL3_HOME), (String)this.config_params.get(GSConstants.INTERFACE_NAME))));49 File interface_config_file = new File(GSFile.interfaceConfigFile(GSFile.interfaceHome(GlobalProperties.getGSDL3Home(), (String)this.config_params.get(GSConstants.INTERFACE_NAME)))); 50 50 if (!interface_config_file.exists()) { 51 51 System.err.println("TransformingReceptionist: interface config file: "+interface_config_file.getPath()+" not found!"); … … 174 174 ///ystem.err.println("format elem="+this.converter.getPrettyString(format_elem)); 175 175 // need to transform the format info 176 String stylesheet_file = GSFile.stylesheetFile( (String)this.config_params.get(GSConstants.GSDL3_HOME), (String)this.config_params.get(GSConstants.SITE_NAME), collection, (String)this.config_params.get(GSConstants.INTERFACE_NAME), base_interfaces, "config_format.xsl");176 String stylesheet_file = GSFile.stylesheetFile(GlobalProperties.getGSDL3Home(), (String)this.config_params.get(GSConstants.SITE_NAME), collection, (String)this.config_params.get(GSConstants.INTERFACE_NAME), base_interfaces, "config_format.xsl"); 177 177 Document stylesheet_doc = this.converter.getDOM(new File(stylesheet_file)); 178 178 if (stylesheet_doc != null) { … … 193 193 194 194 // there is a thing called a URIResolver which you can set for a transformer or transformer factory. may be able to use this instead of this absoluteIncludepaths hack 195 GSXSLT.absoluteIncludePaths(style_doc, (String)this.config_params.get(GSConstants.GSDL3_HOME), (String)this.config_params.get(GSConstants.SITE_NAME), collection, (String)this.config_params.get(GSConstants.INTERFACE_NAME), base_interfaces);195 GSXSLT.absoluteIncludePaths(style_doc, GlobalProperties.getGSDL3Home(), (String)this.config_params.get(GSConstants.SITE_NAME), collection, (String)this.config_params.get(GSConstants.INTERFACE_NAME), base_interfaces); 196 196 // put the page into a document - this is necessary for xslt to get the paths right if you have paths relative to the document root eg /page. 197 197 Document doc = this.converter.newDOM(); … … 213 213 } 214 214 // now find the absolute path 215 String stylesheet = GSFile.stylesheetFile( (String)this.config_params.get(GSConstants.GSDL3_HOME), (String)this.config_params.get(GSConstants.SITE_NAME), collection, (String)this.config_params.get(GSConstants.INTERFACE_NAME), base_interfaces, name);215 String stylesheet = GSFile.stylesheetFile(GlobalProperties.getGSDL3Home(), (String)this.config_params.get(GSConstants.SITE_NAME), collection, (String)this.config_params.get(GSConstants.INTERFACE_NAME), base_interfaces, name); 216 216 if (stylesheet==null) { 217 217 System.out.println("TransformingReceptionist: cant find stylesheet for "+name);
Note:
See TracChangeset
for help on using the changeset viewer.