Sha256: 80037fa5186ad5274af5346105fd233a353a59fa1c59ad5a4df5b7ec7a3932ab
Contents?: true
Size: 735 Bytes
Versions: 4
Compression:
Stored size: 735 Bytes
Contents
# ISO <<CodeLists>> gmd:CI_DateTypeCode # from http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml # History: # Stan Smith 2013-08-09 original script # Stan Smith 2014-10-15 allow non-ISO codesNames to be rendered class CI_DateTypeCode def initialize(xml) @xml = xml end def writeXML(codeName) case(codeName) when 'creation' then codeID = '001' when 'publication' then codeID = '002' when 'revision' then codeID = '003' else codeID = 'non-ISO codeName' end # write xml @xml.tag!('gmd:CI_DateTypeCode',{:codeList=>'http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#CI_DateTypeCode', :codeListValue=>"#{codeName}", :codeSpace=>"#{codeID}"}) end end
Version data entries
4 entries across 4 versions & 1 rubygems