Sha256: 93591bc6dfc3198e3180577a41577b7b6ed2e79bea350a6dd0045024c7f6f3fb
Contents?: true
Size: 816 Bytes
Versions: 3
Compression:
Stored size: 816 Bytes
Contents
# ISO <<CodeLists>> gmd:DS_InitiativeTypeCode # from http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml # History: # Stan Smith 2014-05-21 original script class DS_InitiativeTypeCode def initialize(xml) @xml = xml end def writeXML(codeName) case(codeName) when 'campaign' then codeID = '001' when 'collection' then codeID = '002' when 'exercise' then codeID = '003' when 'experiment' then codeID = '004' when 'investigation' then codeID = '005' else codeName = 'INVALID CLASSIFICATION CODE' codeID = '999' end # write xml @xml.tag!('gmd:DS_InitiativeTypeCode',{:codeList=>'http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#DS_InitiativeTypeCode', :codeListValue=>"#{codeName}", :codeSpace=>"#{codeID}"}) end end
Version data entries
3 entries across 3 versions & 1 rubygems