From 22c13578c8811c78ca2d4429cc7f4ca9c15652b7 Mon Sep 17 00:00:00 2001 From: Johnathan Aspinwall Date: Wed, 8 Nov 2023 14:40:03 -0700 Subject: [PATCH 1/3] Enforce Specific Versions --- adiwg-mdtranslator.gemspec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" From 80f4dd231158a8ecb29f0fd43a875680bb52d717 Mon Sep 17 00:00:00 2001 From: Johnathan Aspinwall Date: Thu, 9 Nov 2023 11:32:11 -0700 Subject: [PATCH 2/3] Fix Code List Value Remove hardcoded series value. Replace with retrieved value from hDataQuality. --- .../writers/iso19115_1/classes/class_dataQuality.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 From 0a3c69bbc31398e8c7975a2e9ffb50b13061af94 Mon Sep 17 00:00:00 2001 From: Johnathan Aspinwall Date: Mon, 13 Nov 2023 10:45:01 -0700 Subject: [PATCH 3/3] Update .gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) 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