Changeset 32111 for main/trunk
- Timestamp:
- 2018-02-01T13:28:54+13:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/action/DocumentAction.java
r32075 r32111 966 966 protected Element transformArchiveToDocument(Element section) { 967 967 968 String stylesheet_file = GSFile.stylesheetFile(GlobalProperties.getGSDL3Home(), (String) this.config_params.get(GSConstants.SITE_NAME), "", (String) this.config_params.get(GSConstants.INTERFACE_NAME), null, "archive2document.xsl"); 969 Document stylesheet_doc = XMLConverter.getDOM(new File(stylesheet_file)); 968 String stylesheet_filename = GSFile.stylesheetFile(GlobalProperties.getGSDL3Home(), (String) this.config_params.get(GSConstants.SITE_NAME), "", (String) this.config_params.get(GSConstants.INTERFACE_NAME), (ArrayList<String>) this.config_params.get(GSConstants.BASE_INTERFACES), "archive2document.xsl"); 969 if (stylesheet_filename == null) { 970 logger.error("Couldn't find stylesheet archive2document.xsl"); 971 return section; 972 } 973 974 Document stylesheet_doc = XMLConverter.getDOM(new File(stylesheet_filename)); 970 975 if (stylesheet_doc == null) { 971 logger.error("Couldn't load in stylesheet "+stylesheet_file );976 logger.error("Couldn't load in stylesheet "+stylesheet_filename); 972 977 return section; 973 978 }
Note:
See TracChangeset
for help on using the changeset viewer.