17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# File 'lib/adiwg/mdtranslator/readers/mdJson/modules/module_taxonomicSystem.rb', line 17
def self.unpack(hSystem, responseObj)
@MessagePath = ADIWG::Mdtranslator::Readers::MdJson::MdJson
if hSystem.empty?
@MessagePath.issueWarning(820, responseObj)
return nil
end
intMetadataClass = InternalMetadata.new
intSystem = intMetadataClass.newTaxonSystem
if hSystem.has_key?('citation')
hCitation = hSystem['citation']
unless hCitation.empty?
hReturn = Citation.unpack(hCitation, responseObj)
unless hReturn.nil?
intSystem[:citation] = hReturn
end
end
end
if intSystem[:citation].empty?
@MessagePath.issueError(821, responseObj)
end
if hSystem.has_key?('modifications')
unless hSystem['modifications'] == ''
intSystem[:modifications] = hSystem['modifications']
end
end
return intSystem
end
|