Sha256: b92507c70df870d8090983252ea99842f43a66cd54afbc583a5dd87f9e355603

Contents?: true

Size: 1.37 KB

Versions: 38

Compression:

Stored size: 1.37 KB

Contents

# FGDC <<Class>> Series
# FGDC CSDGM writer output in XML

# History:
#  Stan Smith 2018-03-23 refactored error and warning messaging
#  Stan Smith 2017-11-21 original script

module ADIWG
   module Mdtranslator
      module Writers
         module Fgdc

            class Series

               def initialize(xml, hResponseObj)
                  @xml = xml
                  @hResponseObj = hResponseObj
                  @NameSpace = ADIWG::Mdtranslator::Writers::Fgdc
               end

               def writeXML(hSeries)

                  # series 8.7.1 (sername) - series name
                  # <- hCitation[:series][:seriesName] (required)
                  unless hSeries[:seriesName].nil?
                     @xml.tag!('sername', hSeries[:seriesName])
                  end
                  if hSeries[:seriesName].nil?
                     @NameSpace.issueWarning(360, 'sername')
                  end

                  # series 8.7.2 (issue) - series issue
                  # <- hCitation[:series][:seriesIssue] (required)
                  unless hSeries[:seriesIssue].nil?
                     @xml.tag!('issue', hSeries[:seriesIssue])
                  end
                  if hSeries[:seriesIssue].nil?
                     @NameSpace.issueWarning(361, 'issue')
                  end

               end # writeXML
            end # Series

         end
      end
   end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
adiwg-mdtranslator-2.19.0.pre.beta.31 lib/adiwg/mdtranslator/writers/fgdc/classes/class_series.rb
adiwg-mdtranslator-2.19.0.pre.beta.30 lib/adiwg/mdtranslator/writers/fgdc/classes/class_series.rb
adiwg-mdtranslator-2.19.0.pre.beta.29 lib/adiwg/mdtranslator/writers/fgdc/classes/class_series.rb
adiwg-mdtranslator-2.19.0.pre.beta.28 lib/adiwg/mdtranslator/writers/fgdc/classes/class_series.rb
adiwg-mdtranslator-2.19.0.pre.beta.27 lib/adiwg/mdtranslator/writers/fgdc/classes/class_series.rb
adiwg-mdtranslator-2.19.0.pre.beta.26 lib/adiwg/mdtranslator/writers/fgdc/classes/class_series.rb
adiwg-mdtranslator-2.19.0.pre.beta.13 lib/adiwg/mdtranslator/writers/fgdc/classes/class_series.rb
adiwg-mdtranslator-2.19.0.pre.beta.12 lib/adiwg/mdtranslator/writers/fgdc/classes/class_series.rb
adiwg-mdtranslator-2.19.0.pre.beta.11 lib/adiwg/mdtranslator/writers/fgdc/classes/class_series.rb
adiwg-mdtranslator-2.19.0.pre.beta.10 lib/adiwg/mdtranslator/writers/fgdc/classes/class_series.rb
adiwg-mdtranslator-2.19.0.pre.beta.9 lib/adiwg/mdtranslator/writers/fgdc/classes/class_series.rb
adiwg-mdtranslator-2.19.0.pre.beta.8 lib/adiwg/mdtranslator/writers/fgdc/classes/class_series.rb
adiwg-mdtranslator-2.19.0.pre.beta.7 lib/adiwg/mdtranslator/writers/fgdc/classes/class_series.rb
adiwg-mdtranslator-2.18.4 lib/adiwg/mdtranslator/writers/fgdc/classes/class_series.rb
adiwg-mdtranslator-2.18.2 lib/adiwg/mdtranslator/writers/fgdc/classes/class_series.rb
adiwg-mdtranslator-2.18.1 lib/adiwg/mdtranslator/writers/fgdc/classes/class_series.rb
adiwg-mdtranslator-2.18.0 lib/adiwg/mdtranslator/writers/fgdc/classes/class_series.rb
adiwg-mdtranslator-2.18.0rc9 lib/adiwg/mdtranslator/writers/fgdc/classes/class_series.rb
adiwg-mdtranslator-2.18.0rc8 lib/adiwg/mdtranslator/writers/fgdc/classes/class_series.rb
adiwg-mdtranslator-2.18.0rc7 lib/adiwg/mdtranslator/writers/fgdc/classes/class_series.rb