lib/adiwg/mdtranslator/writers/iso/classes/class_dataQuality.rb in adiwg-mdtranslator-1.1.1 vs lib/adiwg/mdtranslator/writers/iso/classes/class_dataQuality.rb in adiwg-mdtranslator-1.2.0
- old
+ new
@@ -4,12 +4,13 @@
# History:
# Stan Smith 2013-11-20 original script
# Stan Smith 2014-07-09 modify require statements to function in RubyGem structure
# Stan Smith 2014-12-12 refactored to handle namespacing readers and writers
# Stan Smith 2014-12-12 refactored to handle namespacing readers and writers
+# Stan Smith 2015-06-11 change all codelists to use 'class_codelist' method
-require 'code_scope'
+require 'class_codelist'
require 'class_lineage'
module ADIWG
module Mdtranslator
module Writers
@@ -22,11 +23,11 @@
end
def writeXML(hDataQ)
# classes used
- scopeCode = $IsoNS::MD_ScopeCode.new(@xml)
+ codelistClass = $IsoNS::MD_Codelist.new(@xml)
lineClass = $IsoNS::LI_Lineage.new(@xml)
@xml.tag!('gmd:DQ_DataQuality') do
# data quality - scope - required
@@ -35,10 +36,10 @@
@xml.tag!('gmd:scope', {'gco:nilReason' => 'missing'})
else
@xml.tag!('gmd:scope') do
@xml.tag!('gmd:DQ_Scope') do
@xml.tag!('gmd:level') do
- scopeCode.writeXML(s)
+ codelistClass.writeXML('iso_scope',s)
end
end
end
end