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
55
56
57
58
59
60
61
62
63
64
65
66
|
# File 'lib/adiwg/mdtranslator/readers/fgdc/modules/module_methodology.rb', line 19
def self.unpack(hLineage, axMethods, hResponseObj)
statement = ''
intObj = Fgdc.get_intObj
hResourceInfo = intObj[:metadata][:resourceInfo]
axMethods.each do |xMethod|
axKeywords = xMethod.xpath('./methodid')
unless axKeywords.empty?
axKeywords.each do |xKeyword|
Keyword.unpack(xKeyword, hResourceInfo, hResponseObj)
end
end
description = xMethod.xpath('./methdesc').text
unless description.empty?
statement += description + '; '
end
if description.empty?
hResponseObj[:readerExecutionMessages] << 'WARNING: FGDC reader: BIO lineage methodology description is missing'
end
axCitations = xMethod.xpath('./methcite')
unless axCitations.empty?
axCitations.each do |xCitation|
hReturn = Citation.unpack(xCitation, hResponseObj)
unless hReturn.nil?
hLineage[:lineageCitation] << hReturn
end
end
end
end
unless statement.empty?
statement.chomp!('; ')
hLineage[:statement] = statement
end
return hLineage
end
|