diff --git a/.gitignore b/.gitignore index 1eb80ca1c..19e9a347e 100644 --- a/.gitignore +++ b/.gitignore @@ -23,3 +23,4 @@ mkmf.log /.idea /.rake_tasks~ vendor/ +*.DS_Store \ No newline at end of file diff --git a/adiwg-mdtranslator.gemspec b/adiwg-mdtranslator.gemspec index bb2829a78..19ad30744 100644 --- a/adiwg-mdtranslator.gemspec +++ b/adiwg-mdtranslator.gemspec @@ -34,8 +34,8 @@ Gem::Specification.new do |spec| spec.add_runtime_dependency "thor", "~> 0.19" spec.add_runtime_dependency "uuidtools", "~> 2.1" spec.add_runtime_dependency "json-schema", "~> 2.7" - spec.add_runtime_dependency "adiwg-mdjson_schemas", "~> 2.8" - spec.add_runtime_dependency "adiwg-mdcodes", "~> 2.8" + spec.add_runtime_dependency "adiwg-mdjson_schemas", "2.8.1" + spec.add_runtime_dependency "adiwg-mdcodes", "2.8.4" spec.add_runtime_dependency "jbuilder", "~> 2.5" spec.add_runtime_dependency "kramdown", "~> 1.13" spec.add_runtime_dependency "coderay", "~> 1.1" diff --git a/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_dataQuality.rb b/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_dataQuality.rb index 85024fa68..04f794bcd 100644 --- a/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_dataQuality.rb +++ b/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_dataQuality.rb @@ -17,12 +17,19 @@ def writeXML(hDataQuality) reportClass = DataQualityReport.new(@xml, @hResponseObj) citationClass = CI_Citation.new(@xml, @hResponseObj) + codeListValue = nil + unless hDataQuality[:scope].empty? + unless hDataQuality[:scope][:scopeCode].nil? + codeListValue = hDataQuality[:scope][:scopeCode] + end + end + @xml.tag!('mdq:DQ_DataQuality') do @xml.tag!('mdq:scope') do @xml.tag!('mcc:MD_Scope') do @xml.tag!('mcc:level') do - @xml.tag!('mcc:MD_ScopeCode', codeList: "http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#MD_ScopeCode", codeListValue: "series") + @xml.tag!('mcc:MD_ScopeCode', codeList: "http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#MD_ScopeCode", codeListValue: codeListValue) end end end