diff --git a/lib/adiwg/mdtranslator/readers/fgdc/modules/module_dataQuality.rb b/lib/adiwg/mdtranslator/readers/fgdc/modules/module_dataQuality.rb index 42ceca19..2318da97 100644 --- a/lib/adiwg/mdtranslator/readers/fgdc/modules/module_dataQuality.rb +++ b/lib/adiwg/mdtranslator/readers/fgdc/modules/module_dataQuality.rb @@ -68,7 +68,7 @@ def self.unpack(xDataQual, hMetadata, hDataQuality, hResponseObj) else complete = xComplete.text report = intMetadataClass.newDataQualityReport - report[:type] = 'Omission' + report[:type] = 'CompletenessOmission' descriptiveResult = intMetadataClass.newDescriptiveResult descriptiveResult[:statement] = complete report[:descriptiveResult] << descriptiveResult diff --git a/lib/adiwg/mdtranslator/version.rb b/lib/adiwg/mdtranslator/version.rb index 8ca23216..0579396f 100644 --- a/lib/adiwg/mdtranslator/version.rb +++ b/lib/adiwg/mdtranslator/version.rb @@ -109,7 +109,7 @@ module ADIWG module Mdtranslator # current mdtranslator version - VERSION = "2.19.0-beta.14" + VERSION = "2.19.0-beta.15" end end diff --git a/lib/adiwg/mdtranslator/writers/fgdc/classes/class_dataQuality.rb b/lib/adiwg/mdtranslator/writers/fgdc/classes/class_dataQuality.rb index 6c6db635..0bb00c35 100644 --- a/lib/adiwg/mdtranslator/writers/fgdc/classes/class_dataQuality.rb +++ b/lib/adiwg/mdtranslator/writers/fgdc/classes/class_dataQuality.rb @@ -56,7 +56,7 @@ def writeXML(intObj) # data quality 2.3 (complete) - completion report (not implemented) (required) completeness_report = hDataQuality[:report].find do |report| - report[:type] == 'Omission' && + report[:type] == 'CompletenessOmission' && !report.dig(:descriptiveResult, 0, :statement).nil? end