Changeset 38110 for gs3-installations
- Timestamp:
- 2023-09-13T16:19:24+12:00 (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gs3-installations/computing50/trunk/sites/computing50/ConnectProxyServlet/src/main/java/org/greenstone/tabletop/ConnectProxyServlet.java
r38026 r38110 182 182 throws MalformedURLException, IOException 183 183 { 184 URL dl_url = new URL("http://localhost:8383/greenstone3/library/collection/ staff-photos/browse/CL1?sa=tabletop&excerptid=classifiers");184 URL dl_url = new URL("http://localhost:8383/greenstone3/library/collection/computing-50-tabletop/browse/CL1?sa=tabletop&excerptid=classifiers"); 185 185 186 186 … … 257 257 if (export_filename.equals("Tbl_People.xml")) { 258 258 doTblPeople(request,response); 259 260 /* 261 export_filename = "Waikato_" + export_filename; 262 259 } 260 else { 261 262 String waikato_export_filename = "Waikato_" + export_filename; 263 File waikato_src_file = new File(__dirname + "/" + waikato_export_filename); 264 265 File srcFile = null; 266 if (waikato_src_file.exists()) { 267 logger.info("Detected Waikato version of: " + export_filename); 268 srcFile = waikato_src_file; 269 } 270 else { 271 srcFile = new File(__dirname + "/" + export_filename); 272 } 273 263 274 response.setHeader("Content-type", "text/xml"); 264 275 response.setCharacterEncoding("UTF-8"); 265 276 266 File srcFile = new File(__dirname + "/" + export_filename);267 FileUtils.copyFile(srcFile, response.getOutputStream());268 */269 }270 else {271 272 response.setHeader("Content-type", "text/xml");273 //response.setCharacterEncoding("UTF-8");274 275 File srcFile = new File(__dirname + "/" + export_filename);276 277 FileUtils.copyFile(srcFile, response.getOutputStream()); 277 278 }
Note:
See TracChangeset
for help on using the changeset viewer.