lib/adiwg/mdtranslator/writers/iso/classes/class_securityConstraints.rb in adiwg-mdtranslator-1.1.1 vs lib/adiwg/mdtranslator/writers/iso/classes/class_securityConstraints.rb in adiwg-mdtranslator-1.2.0
- old
+ new
@@ -3,12 +3,13 @@
# History:
# Stan Smith 2013-11-01 original script
# Stan Smith 2014-07-08 modify require statements to function in RubyGem structure
# 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_classification'
+require 'class_codelist'
module ADIWG
module Mdtranslator
module Writers
module Iso
@@ -20,20 +21,20 @@
end
def writeXML(hSecurityCons)
# classes used
- classCode = $IsoNS::MD_ClassificationCode.new(@xml)
+ codelistClass = $IsoNS::MD_Codelist.new(@xml)
@xml.tag!('gmd:MD_SecurityConstraints') do
# security constraints - classification code - required
s = hSecurityCons[:classCode]
if s.nil?
@xml.tag!('gmd:classification', {'gco:nilReason' => 'missing'})
else
@xml.tag!('gmd:classification') do
- classCode.writeXML(s)
+ codelistClass.writeXML('iso_classification',s)
end
end
# security constraints - user note
s = hSecurityCons[:userNote]