Sha256: 5fb8b5d2b3317ad45b863c3be4be7de77dadb7972548b83bcad33bc86976bb51

Contents?: true

Size: 1.06 KB

Versions: 18

Compression:

Stored size: 1.06 KB

Contents

# Reader - fgdc to internal data structure
# unpack fgdc series

# History:
#  Stan Smith 2017-08-17 original script

require 'nokogiri'
require 'adiwg/mdtranslator/internal/internal_metadata_obj'

module ADIWG
   module Mdtranslator
      module Readers
         module Fgdc

            module Series

               def self.unpack(xSerInfo, hResponseObj)

                  # instance classes needed in script
                  intMetadataClass = InternalMetadata.new
                  hSeries = intMetadataClass.newSeries

                  # series 8.7.1 (sername) - series name
                  name = xSerInfo.xpath('./sername').text
                  unless name.empty?
                     hSeries[:seriesName] = name
                  end

                  # series 8.7.2 (issue) - series issue
                  issue = xSerInfo.xpath('./issue').text
                  unless issue.empty?
                     hSeries[:seriesIssue] = issue
                  end

                  return hSeries

               end

            end

         end
      end
   end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
adiwg-mdtranslator-2.9.2 lib/adiwg/mdtranslator/readers/fgdc/modules/module_series.rb
adiwg-mdtranslator-2.9.1 lib/adiwg/mdtranslator/readers/fgdc/modules/module_series.rb
adiwg-mdtranslator-2.9.0 lib/adiwg/mdtranslator/readers/fgdc/modules/module_series.rb
adiwg-mdtranslator-2.8.0 lib/adiwg/mdtranslator/readers/fgdc/modules/module_series.rb
adiwg-mdtranslator-2.7.0 lib/adiwg/mdtranslator/readers/fgdc/modules/module_series.rb
adiwg-mdtranslator-2.6.1 lib/adiwg/mdtranslator/readers/fgdc/modules/module_series.rb
adiwg-mdtranslator-2.6.0 lib/adiwg/mdtranslator/readers/fgdc/modules/module_series.rb
adiwg-mdtranslator-2.5.0 lib/adiwg/mdtranslator/readers/fgdc/modules/module_series.rb
adiwg-mdtranslator-2.4.0 lib/adiwg/mdtranslator/readers/fgdc/modules/module_series.rb
adiwg-mdtranslator-2.3.5 lib/adiwg/mdtranslator/readers/fgdc/modules/module_series.rb
adiwg-mdtranslator-2.3.4 lib/adiwg/mdtranslator/readers/fgdc/modules/module_series.rb
adiwg-mdtranslator-2.3.3 lib/adiwg/mdtranslator/readers/fgdc/modules/module_series.rb
adiwg-mdtranslator-2.3.2 lib/adiwg/mdtranslator/readers/fgdc/modules/module_series.rb
adiwg-mdtranslator-2.3.1 lib/adiwg/mdtranslator/readers/fgdc/modules/module_series.rb
adiwg-mdtranslator-2.3.0 lib/adiwg/mdtranslator/readers/fgdc/modules/module_series.rb
adiwg-mdtranslator-2.2.0 lib/adiwg/mdtranslator/readers/fgdc/modules/module_series.rb
adiwg-mdtranslator-2.1.2 lib/adiwg/mdtranslator/readers/fgdc/modules/module_series.rb
adiwg-mdtranslator-2.1.1 lib/adiwg/mdtranslator/readers/fgdc/modules/module_series.rb