- Timestamp:
- 2002-10-04T11:37:17+12:00 (22 years ago)
- Location:
- trunk/gsdl3/src/java/org/greenstone/gsdl3
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/src/java/org/greenstone/gsdl3/action/AppletAction.java
r3385 r3441 17 17 18 18 // find the stylesheet 19 String stylesheet = GSFile.stylesheet Path(config_, "applet.xsl");19 String stylesheet = GSFile.stylesheetFile(config_, "applet.xsl"); 20 20 21 21 if (stylesheet==null) { … … 80 80 // add in the applet info 81 81 82 //page.appendChild(doc_.importNode(GSXML.getNodeByPath(mr_response, "response/service/applet"), true)); 82 83 page.appendChild(doc_.importNode(GSXML.getNodeByPath(mr_response, "response/service/applet"), true)); 83 84 84 return transformer_.transform(stylesheet, page); 85 85 } -
trunk/gsdl3/src/java/org/greenstone/gsdl3/action/PageAction.java
r3388 r3441 82 82 page.appendChild(doc_.importNode(GSXML.getChildByTagName(coll_list_response, "response"), true)); 83 83 84 String stylesheet = GSFile.stylesheet Path(config_, "home.xsl");84 String stylesheet = GSFile.stylesheetFile(config_, "home.xsl"); 85 85 String transformed_result = transformer_.transform(stylesheet, 86 86 page); … … 110 110 111 111 // process using the stylesheet 112 String stylesheet = GSFile.stylesheet Path(config_, "about.xsl");112 String stylesheet = GSFile.stylesheetFile(config_, "about.xsl"); 113 113 114 114 //System.out.println("response="+converter_.getString(page)); -
trunk/gsdl3/src/java/org/greenstone/gsdl3/action/QueryAction.java
r3388 r3441 53 53 54 54 // chack that the stylesheet is present - cant output a page without one. we may adapt this to use unknownquery stylesheet? - or ask for one from the MR 55 String stylesheet = GSFile.stylesheet Path(config_, "textquery.xsl");55 String stylesheet = GSFile.stylesheetFile(config_, "textquery.xsl"); 56 56 if (stylesheet==null) { 57 57 return GSHTML.errorPage("textquery stylesheet not found!"); -
trunk/gsdl3/src/java/org/greenstone/gsdl3/action/ResourceAction.java
r3363 r3441 17 17 18 18 // find the stylesheet 19 String stylesheet = GSFile.stylesheet Path(config_, "resource.xsl");19 String stylesheet = GSFile.stylesheetFile(config_, "resource.xsl"); 20 20 21 21 if (stylesheet==null) { -
trunk/gsdl3/src/java/org/greenstone/gsdl3/collection/Collection.java
r3235 r3441 109 109 } 110 110 // read the collection build configuration file 111 File config_file_ = GSFile.collectionBuildConfigFile(site_home_, collection_name_);111 File config_file_ = new File(GSFile.collectionBuildConfigFile(site_home_, collection_name_)); 112 112 113 113 if (!config_file_.exists()) { -
trunk/gsdl3/src/java/org/greenstone/gsdl3/core/MessageRouter.java
r3286 r3441 125 125 126 126 // read thru own config file - create services and connect to sites 127 File configFile = GSFile.siteConfigFile(site_home_);127 File configFile = new File(GSFile.siteConfigFile(site_home_)); 128 128 129 129 if (configFile.exists() ) { … … 137 137 138 138 // read thru the collect directory and create all the collections 139 File collectDir = GSFile.collectDirFile(site_home_);139 File collectDir = new File(GSFile.collectDir(site_home_)); 140 140 if (collectDir.exists()) { 141 141 System.out.println("Reading thru directory "+collectDir.getPath()+" to find collections."); -
trunk/gsdl3/src/java/org/greenstone/gsdl3/service/ServiceModule.java
r3363 r3441 117 117 if (collection_name_ !=null) { 118 118 119 config_file = GSFile.collectionBuildConfigFile(site_home_, collection_name_);119 config_file = new File(GSFile.collectionBuildConfigFile(site_home_, collection_name_)); 120 120 } 121 121 else { 122 config_file = GSFile.siteConfigFile(site_home_);122 config_file = new File(GSFile.siteConfigFile(site_home_)); 123 123 } 124 124 -
trunk/gsdl3/src/java/org/greenstone/gsdl3/util/Translate.java
r3388 r3441 41 41 } 42 42 43 File lang_file = GSFile.getLangFile(config_, lang);43 File lang_file = new File (GSFile.translateFile(config_, lang)); 44 44 if (!lang_file.exists()) { 45 45 System.out.println("file "+lang_file.getPath()+" doesn't exist");
Note:
See TracChangeset
for help on using the changeset viewer.