Sha256: 26762189cdf8a0025538bdefa5aa197ef24ace1ae94f0a5c59cd4218904f0f24
Contents?: true
Size: 810 Bytes
Versions: 3
Compression:
Stored size: 810 Bytes
Contents
# ISO <<CodeLists>> gmd:CI_OnLineFunctionCode # from http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml # History: # Stan Smith 2013-09-26 original script class CI_OnLineFunctionCode def initialize(xml) @xml = xml end def writeXML(codeName) case(codeName) when 'download' then codeID = '001' when 'information' then codeID = '002' when 'offlineAccess' then codeID = '003' when 'order' then codeID = '004' when 'search' then codeID = '005' else codeName = 'INVALID ONLINE FUNCTION CODE' codeID = '999' end # write xml @xml.tag!('gmd:CI_OnLineFunctionCode',{:codeList=>'http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#CI_OnLineFunctionCode', :codeListValue=>"#{codeName}", :codeSpace=>"#{codeID}"}) end end
Version data entries
3 entries across 3 versions & 1 rubygems