Changeset 23837 for main/trunk/greenstone3/src/java/org/greenstone/gsdl3/core/TransformingReceptionist.java
- Timestamp:
- 2011-03-30T16:01:27+13:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/core/TransformingReceptionist.java
r23794 r23837 287 287 boolean allowsClientXSLT = (Boolean)config_params.get(GSConstants.ALLOW_CLIENT_SIDE_XSLT); 288 288 //System.out.println("Client side transforms allowed? " + allowsClientXSLT); 289 290 String currentInterface = (String)config_params.get(GSConstants.INTERFACE_NAME); 289 291 290 292 // Force it back to traditional 291 if(!allowsClientXSLT )293 if(!allowsClientXSLT && currentInterface.equals("default")) 292 294 config_params.put(GSConstants.INTERFACE_NAME, "traditional"); 293 295 … … 295 297 String output = request.getAttribute(GSXML.OUTPUT_ATT); 296 298 297 String currentInterface = (String)config_params.get(GSConstants.INTERFACE_NAME);298 299 //System.out.println("Current output mode is: " + output + ", current interface name is: " + currentInterface); 299 300 … … 413 414 if (collection == null) collection = ""; 414 415 } 415 416 416 417 String xslt_file = getXSLTFileName(action, subaction, collection); 417 418 if (xslt_file==null) { … … 419 420 return fileNotFoundErrorPage(xslt_file); 420 421 } 421 422 422 423 Document style_doc = this.converter.getDOM(new File(xslt_file), "UTF-8"); 423 424 String errorPage = this.converter.getParseErrorMessage();
Note:
See TracChangeset
for help on using the changeset viewer.