Sha256: 74651c248d3a663eba75b63ece955e630fae9cf39469e0bc68703cb2b013ab9e
Contents?: true
Size: 1.39 KB
Versions: 1
Compression:
Stored size: 1.39 KB
Contents
# FGDC <<Class>> Series # FGDC CSDGM writer output in XML # History: # 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 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? @hResponseObj[:writerPass] = false @hResponseObj[:writerMessages] << 'Series is missing name' 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? @hResponseObj[:writerPass] = false @hResponseObj[:writerMessages] << 'Series is missing issue' end end # writeXML end # Series end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
adiwg-mdtranslator-2.6.1 | lib/adiwg/mdtranslator/writers/fgdc/classes/class_series.rb |