Sha256: 0a4d55dd16c57387b4b79152f45a8c85dcc3ea99a0b7924589e3d095523b45f3

Contents?: true

Size: 1.2 KB

Versions: 3

Compression:

Stored size: 1.2 KB

Contents

# ISO <<CodeLists>> gmd:CI_PresentationForm

# from http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml
# History:
# 	Stan Smith 2013-11-20 original script

class CI_PresentationFormCode
	def initialize(xml)
		@xml = xml
	end

	def writeXML(codeName)
		case(codeName)
			when 'documentDigital' then codeID = '001'
			when 'documentHardcopy' then codeID = '002'
			when 'imageDigital' then codeID = '003'
			when 'imageHardcopy' then codeID = '004'
			when 'mapDigital' then codeID = '005'
			when 'mapHardcopy' then codeID = '006'
			when 'modelDigital' then codeID = '007'
			when 'modelHardcopy' then codeID = '008'
			when 'profileDigital' then codeID = '009'
			when 'profileHardcopy' then codeID = '010'
			when 'tableDigital' then codeID = '011'
			when 'tableHardcopy' then codeID = '012'
			when 'videoDigital' then codeID = '013'
			when 'videoHardcopy' then codeID = '014'
			else
				codeName = 'INVALID PRESENTATION FORM SET'
				codeID = '999'
		end

		# write xml
		@xml.tag!('gmd:CI_PresentationFormCode',{:codeList=>'http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#CI_PresentationFormCode',
											 :codeListValue=>"#{codeName}",
											 :codeSpace=>"#{codeID}"})
	end

end





Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
adiwg-mdtranslator-0.8.2 lib/adiwg/mdtranslator/writers/iso19115_2/codelists/code_presentationForm.rb
adiwg-mdtranslator-0.8.1 lib/adiwg/mdtranslator/writers/iso19115_2/codelists/code_presentationForm.rb
adiwg-mdtranslator-0.8.0 lib/adiwg/mdtranslator/writers/iso19115_2/codelists/code_presentationForm.rb