adiwg-mdtranslator 2.18.0rc4 → 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: 4bba7e5cbfb11e69e8f2539c9033c72a960aefa7d4f5ed33d796b7c9aff452f0
4
- data.tar.gz: ae8e40fb781e69671306c4ecb36f24ee9336eb31c6877342aa88421756e1e621
3
+ metadata.gz: 8a3f5fe99c20d7c62b29d9a94c86ce0ac908d0056d1de29742f70038a60ec6b7
4
+ data.tar.gz: 61f0bd460383e4c05d66d6e9fe825573c599c8365fdae4768f221dbfe5ec66ce
5
5
  SHA512:
6
- metadata.gz: 0d1bebfac93b1bf2756e4893396836ed63cc9b663477fae22bab7e5c0b9784fd85ffabe308f15d1d513c42e0ba0e4fbc92ab8cb9f9a7e1927def5769e47dc115
7
- data.tar.gz: cb25b0dc4553ff72738010a006daaf9e8e2894db099789793a57a805dd843e7896f7666c7f448ca7239988e57a90b5bd694a95f7bf1e4baecff821d895b6b5c5
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.0rc4"
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)
@@ -124,6 +124,9 @@ module ADIWG
124
124
  'xmlns:gmx' => 'http://www.isotc211.org/2005/gmx',
125
125
  'xmlns:gfc' => 'http://www.isotc211.org/2005/gfc',
126
126
  'xmlns:srv' => 'http://www.isotc211.org/2005/srv',
127
+ 'xmlns:mdb' => 'http://www.isotc211.org/2005/mdb',
128
+ 'xmlns:mdq' => 'http://www.isotc211.org/2005/mdq',
129
+ 'xmlns:mcc' => 'http://www.isotc211.org/2005/mcc',
127
130
  'xmlns:xlink' => 'http://www.w3.org/1999/xlink',
128
131
  'xmlns:xsi' => 'http://www.w3.org/2001/XMLSchema-instance',
129
132
  'xsi:schemaLocation' => "http://www.isotc211.org/2005/gmi #{remoteSchema}"}) do
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.0rc4
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