adiwg-mdtranslator 2.18.0rc5 → 2.18.0rc6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 70d18c65bc7552c3d3f4adf0a85a36deba2fb425d55327502d4a71700fbba0ef
4
- data.tar.gz: 53c9ff21ea40c214891bff2642e41767299945a5dd2b59fe76bd48f6dbda4267
3
+ metadata.gz: 8a3f5fe99c20d7c62b29d9a94c86ce0ac908d0056d1de29742f70038a60ec6b7
4
+ data.tar.gz: 61f0bd460383e4c05d66d6e9fe825573c599c8365fdae4768f221dbfe5ec66ce
5
5
  SHA512:
6
- metadata.gz: f8442c94c4c98f9fd4d04c71231d61798181c1b17808cf36cab98df8b42d1b66bc382697e4997df998a973a133f096936305b0453cd204565fdab418bd1f3852
7
- data.tar.gz: 40b261d56d5d38560cd74185648436143a95e1f5d723a45d6019aeb0e66b890d52bbbcbd5ee0e388319548f0773921816ae8fbe0989809e46cd763d5ca2366da
6
+ metadata.gz: 8a9f0b0eb912f6cea243cad62e23e099ecce6e42cf7acd0b11375e9d4f6e9ff765b9ed933635b65a20b62d3761ed49217e8a39835c50e96d7d3da42e4be96bbf
7
+ data.tar.gz: 9be5d5cd6ae7882bc7837fc8fc4a1f3b25bf9f1b9e6f99957798ffbed0a339b1572bb6777371209c07d6f144ecd95993564b8464ef384bd86fbc29b4657bc243
@@ -109,7 +109,7 @@
109
109
  module ADIWG
110
110
  module Mdtranslator
111
111
  # current mdtranslator version
112
- VERSION = "2.18.0rc5"
112
+ VERSION = "2.18.0rc6"
113
113
  end
114
114
  end
115
115
 
@@ -27,78 +27,80 @@ module ADIWG
27
27
 
28
28
  hDataQuality = intObj.dig(:metadata, :dataQuality, 0)
29
29
 
30
- # data quality 2.1 (attracc) - attribute accuracy (not implemented)
31
- attribute_completeness_report = hDataQuality[:report].find do |report|
32
- report[:type] == 'DQ_NonQuantitativeAttributeCompleteness' &&
33
- !report.dig(:descriptiveResult, 0, :statement).nil?
34
- end
30
+ if hDataQuality && hDataQuality[:report]
31
+ # data quality 2.1 (attracc) - attribute accuracy (not implemented)
32
+ attribute_completeness_report = hDataQuality[:report].find do |report|
33
+ report[:type] == 'DQ_NonQuantitativeAttributeCompleteness' &&
34
+ !report.dig(:descriptiveResult, 0, :statement).nil?
35
+ end
35
36
 
36
- if attribute_completeness_report
37
- @xml.tag!('attracc') do
38
- @xml.tag!('attraccr', attribute_completeness_report[:descriptiveResult][0][:statement])
37
+ if attribute_completeness_report
38
+ @xml.tag!('attracc') do
39
+ @xml.tag!('attraccr', attribute_completeness_report[:descriptiveResult][0][:statement])
40
+ end
41
+ elsif @hResponseObj[:writerShowTags]
42
+ @xml.tag!('attracc', 'Not Reported')
39
43
  end
40
- elsif @hResponseObj[:writerShowTags]
41
- @xml.tag!('attracc', 'Not Reported')
42
- end
43
44
 
44
- # data quality 2.2 (logic) - logical consistency (not implemented) (required)
45
- logic_report = hDataQuality[:report].find do |report|
46
- report[:type] == 'DQ_ConceptualConsistency' &&
47
- !report.dig(:qualityMeasure, :description).nil?
48
- end
45
+ # data quality 2.2 (logic) - logical consistency (not implemented) (required)
46
+ logic_report = hDataQuality[:report].find do |report|
47
+ report[:type] == 'DQ_ConceptualConsistency' &&
48
+ !report.dig(:qualityMeasure, :description).nil?
49
+ end
49
50
 
50
- if logic = logic_report&.dig(:qualityMeasure, :decription)
51
- @xml.tag!('logic', logic)
52
- else
53
- @xml.tag!('logic', 'Not Reported')
54
- end
51
+ if logic = logic_report&.dig(:qualityMeasure, :decription)
52
+ @xml.tag!('logic', logic)
53
+ else
54
+ @xml.tag!('logic', 'Not Reported')
55
+ end
55
56
 
56
- # data quality 2.3 (complete) - completion report (not implemented) (required)
57
- completeness_report = hDataQuality[:report].find do |report|
58
- report[:type] == 'DQ_CompletenessOmission' &&
59
- !report.dig(:descriptiveResult, 0, :statement).nil?
60
- end
57
+ # data quality 2.3 (complete) - completion report (not implemented) (required)
58
+ completeness_report = hDataQuality[:report].find do |report|
59
+ report[:type] == 'DQ_CompletenessOmission' &&
60
+ !report.dig(:descriptiveResult, 0, :statement).nil?
61
+ end
61
62
 
62
- if complete = completeness_report&.dig(:descriptiveResult, 0, :statement)
63
- @xml.tag!('complete', complete)
64
- else
65
- @xml.tag!('complete', 'Not Reported')
66
- end
63
+ if complete = completeness_report&.dig(:descriptiveResult, 0, :statement)
64
+ @xml.tag!('complete', complete)
65
+ else
66
+ @xml.tag!('complete', 'Not Reported')
67
+ end
67
68
 
68
- # data quality 2.4 (position) - positional accuracy (not implemented)
69
+ # data quality 2.4 (position) - positional accuracy (not implemented)
69
70
 
70
71
 
71
- horizontal_positional_accuracy_report = hDataQuality[:report].find do |report|
72
- report[:type] == 'DQ_AbsoluteExternalPositionalAccuracy' &&
73
- report.dig(:qualityMeasure, :name) == 'Horizontal Positional Accuracy Report'
74
- end
72
+ horizontal_positional_accuracy_report = hDataQuality[:report].find do |report|
73
+ report[:type] == 'DQ_AbsoluteExternalPositionalAccuracy' &&
74
+ report.dig(:qualityMeasure, :name) == 'Horizontal Positional Accuracy Report'
75
+ end
75
76
 
76
- horizpar = horizontal_positional_accuracy_report&.dig(:evaluationMethod, :methodDescription)
77
+ horizpar = horizontal_positional_accuracy_report&.dig(:evaluationMethod, :methodDescription)
77
78
 
78
79
 
79
- vertical_positional_accuracy_report = hDataQuality[:report].find do |report|
80
- report[:type] == 'DQ_AbsoluteExternalPositionalAccuracy' &&
81
- report.dig(:qualityMeasure, :name) == 'Vertical Positional Accuracy Report'
82
- end
80
+ vertical_positional_accuracy_report = hDataQuality[:report].find do |report|
81
+ report[:type] == 'DQ_AbsoluteExternalPositionalAccuracy' &&
82
+ report.dig(:qualityMeasure, :name) == 'Vertical Positional Accuracy Report'
83
+ end
83
84
 
84
- vertaccr = vertical_positional_accuracy_report&.dig(:evaluationMethod, :methodDescription)
85
+ vertaccr = vertical_positional_accuracy_report&.dig(:evaluationMethod, :methodDescription)
85
86
 
86
- if horizpar || vertaccr
87
- @xml.tag!('posacc') do
88
- if horizpar
89
- @xml.tag!('horizpa') do
90
- @xml.tag!('horizpar', horizpar)
87
+ if horizpar || vertaccr
88
+ @xml.tag!('posacc') do
89
+ if horizpar
90
+ @xml.tag!('horizpa') do
91
+ @xml.tag!('horizpar', horizpar)
92
+ end
91
93
  end
92
- end
93
94
 
94
- if vertaccr
95
- @xml.tag!('vertacc') do
96
- @xml.tag!('vertaccr', vertaccr)
95
+ if vertaccr
96
+ @xml.tag!('vertacc') do
97
+ @xml.tag!('vertaccr', vertaccr)
98
+ end
97
99
  end
98
100
  end
101
+ elsif @hResponseObj[:writerShowTags]
102
+ @xml.tag!('position', 'Not Reported')
99
103
  end
100
- elsif @hResponseObj[:writerShowTags]
101
- @xml.tag!('position', 'Not Reported')
102
104
  end
103
105
 
104
106
  # data quality 2.5 (lineage) - lineage (required)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adiwg-mdtranslator
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.18.0rc5
4
+ version: 2.18.0rc6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stan Smith
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-01-27 00:00:00.000000000 Z
12
+ date: 2023-02-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler