diff options
author | mr <mr@mrautenberg.de> | 2011-08-04 18:40:44 +0200 |
---|---|---|
committer | mr <mr@mrautenberg.de> | 2011-08-04 18:40:44 +0200 |
commit | 53ed9cb9ec537cc342079ca03f956d3541a11726 (patch) | |
tree | c8ea67c6cb9f6ce5d5ef0fed1264121a1bab0651 /report/report_format.rb | |
parent | 68f0e8a9b4ab9c6eda1da21423bda0186cfd01c6 (diff) | |
parent | 9ca1bfaecbbe8b2941cdc6cd8a907448b17eeb85 (diff) |
Merge branch 'release/v2.1.0'
Diffstat (limited to 'report/report_format.rb')
-rw-r--r-- | report/report_format.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/report/report_format.rb b/report/report_format.rb index 67abc1e..d64bf57 100644 --- a/report/report_format.rb +++ b/report/report_format.rb @@ -4,6 +4,8 @@ ENV['JAVA_HOME'] = "/usr/bin" unless ENV['JAVA_HOME'] ENV['PATH'] = ENV['JAVA_HOME']+":"+ENV['PATH'] unless ENV['PATH'].split(":").index(ENV['JAVA_HOME']) ENV['SAXON_JAR'] = "saxonhe9-2-0-3j/saxon9he.jar" unless ENV['SAXON_JAR'] +OT_STYLESHEET = File.join(CONFIG[:services]["opentox-validation"],"resources/simple_ot_stylesheet.css") + # = Reports::ReportFormat # # provides functions for converting reports from xml to other formats @@ -60,7 +62,7 @@ module Reports::ReportFormat end def self.format_report_to_html(directory, xml_filename, html_filename, css_style_sheet) - css_style_sheet = "http://opentox.informatik.uni-freiburg.de/simple_ot_stylesheet.css" unless css_style_sheet + css_style_sheet = OT_STYLESHEET unless css_style_sheet css = css_style_sheet ? "--stringparam html.stylesheet "+URI.encode(css_style_sheet.to_s) : nil cmd = "xsltproc "+css.to_s+" "+ENV['REPORT_XSL']+" "+File.join(directory,xml_filename.to_s)+" > "+File.join(directory,html_filename.to_s) |