diff options
author | rautenberg <rautenberg@in-silico.ch> | 2016-08-22 10:59:05 +0200 |
---|---|---|
committer | rautenberg <rautenberg@in-silico.ch> | 2016-08-22 10:59:05 +0200 |
commit | c8adcd3fb21de20c5d66bf069e8a11b41eeaaceb (patch) | |
tree | a6cd5965f9bcb146c089ed0139b7fa78260cd431 /lib/qmrf-report.rb | |
parent | 57786aab1d918f072fdc4aa5649f531307ef93e6 (diff) |
add License for qmrf.xsd file
Diffstat (limited to 'lib/qmrf-report.rb')
-rw-r--r-- | lib/qmrf-report.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/qmrf-report.rb b/lib/qmrf-report.rb index a5c1ddb..88c6c86 100644 --- a/lib/qmrf-report.rb +++ b/lib/qmrf-report.rb @@ -106,7 +106,7 @@ module OpenTox # get an attribute from a catalog entry # @param [String] catalog Name of the catalog - # @param [String] id entry id in the catalog + # @param [String] id entry id in the catalog # @param [String] key returns value of a key in a catalog node # @return [String, false] returns value of a key in a catalog node or false if catalog entry do not exists. def get_catalog_value catalog, id, key @@ -131,7 +131,8 @@ module OpenTox xsd = Nokogiri::XML::Schema(File.read(SCHEMA_FILE)) out = "" xsd.validate(@report).each do |error| - out << error.message unless error.message == "Element 'algorithm', attribute 'publication_ref': '' is not a valid value of the atomic type 'xs:IDREF'." || error.message == "Element 'descriptor', attribute 'publication_ref': '' is not a valid value of the atomic type 'xs:IDREF'." + out << error.message unless error.message == "Element 'algorithm', attribute 'publication_ref': '' is not a valid value of the atomic type 'xs:IDREF'." || error.message == "Element 'descriptor', attribute 'publication_ref': '' is not a valid value of the atomic type 'xs:IDREF'." + # @todo ignore case sensitivity error: error.message The value 'NO' is not an.Element of the set {'Yes', 'No'}. end return out end |