adiwg-mdtranslator 2.3.4 → 2.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_distribution.rb +6 -1
- data/lib/adiwg/mdtranslator/version.rb +3 -1
- data/lib/adiwg/mdtranslator/writers/html/sections/html_citation.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/html/sections/html_contact.rb +6 -4
- data/lib/adiwg/mdtranslator/writers/html/sections/html_gridRepresentation.rb +6 -4
- data/lib/adiwg/mdtranslator/writers/html/sections/html_keyword.rb +3 -1
- data/lib/adiwg/mdtranslator/writers/html/sections/html_resourceFormat.rb +24 -23
- data/lib/adiwg/mdtranslator/writers/html/sections/html_resourceInfo.rb +5 -3
- data/lib/adiwg/mdtranslator/writers/html/sections/html_resourceType.rb +9 -7
- data/lib/adiwg/mdtranslator/writers/html/sections/html_securityConstraint.rb +11 -8
- data/lib/adiwg/mdtranslator/writers/html/sections/html_vectorRepresentation.rb +6 -3
- metadata +2 -3
- data/lib/adiwg/mdtranslator/writers/html/sections/html_sensorInfo.rb +0 -66
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 711b22c64a7c6acc742500ca82ceadfabfc979c3
|
4
|
+
data.tar.gz: 359f7b98507e8f2420f4c4cce21bff8719a55f28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f573f0909635e78ad98b365cdcb35c083ed9733617cc62575d64ed1c3b73413164fd1761bbb15782de42d4563c3f96a3d406e27c9da9655ddf811157de1ce4e8
|
7
|
+
data.tar.gz: 824d2cfc455565074996d874cff4f9b82f65d9ccb5b743dbb4d7daecfe5618aa88dd8c83a9d2c1ecf5df7e189532c54b94408989b7b5449fd42ba5efc16bbc15
|
@@ -2,6 +2,7 @@
|
|
2
2
|
# unpack fgdc distribution
|
3
3
|
|
4
4
|
# History:
|
5
|
+
# Stan Smith 2017-10-17 fixed problem with adding technical prerequisite to nil distribution description
|
5
6
|
# Stan Smith 2017-08-15 original script
|
6
7
|
|
7
8
|
require 'nokogiri'
|
@@ -75,7 +76,11 @@ module ADIWG
|
|
75
76
|
# -> distribution.description {+=}
|
76
77
|
techPre = xDistribution.xpath('./techpreq').text
|
77
78
|
unless techPre.empty?
|
78
|
-
hDistribution[:description]
|
79
|
+
if hDistribution[:description].nil?
|
80
|
+
hDistribution[:description] = techPre
|
81
|
+
else
|
82
|
+
hDistribution[:description] += '\n\n Technical Prerequisites: ' + techPre
|
83
|
+
end
|
79
84
|
end
|
80
85
|
|
81
86
|
# distribution 6.7 (availabl) - available time period {time period}
|
@@ -1,6 +1,8 @@
|
|
1
1
|
# adiwg mdTranslator
|
2
2
|
|
3
3
|
# version 2 history
|
4
|
+
# 2.3.5 2017-10-17 fixed problem with adding technical prerequisite to nil distribution description
|
5
|
+
# 2.3.5 2017-10-13 trap missing topology level in html writer vectorRepresentation
|
4
6
|
# 2.3.4 2017-10-12 drop harvest set tag if repository citation is missing
|
5
7
|
# 2.3.3 2017-10-03 modify sbJson reader execution fail tests
|
6
8
|
# 2.3.2 2017-09-14 add associationType to sbJson relatedItems
|
@@ -30,7 +32,7 @@
|
|
30
32
|
module ADIWG
|
31
33
|
module Mdtranslator
|
32
34
|
# current mdtranslator version
|
33
|
-
VERSION = "2.3.
|
35
|
+
VERSION = "2.3.5"
|
34
36
|
end
|
35
37
|
end
|
36
38
|
|
@@ -28,13 +28,15 @@ module ADIWG
|
|
28
28
|
graphicClass = Html_Graphic.new(@html)
|
29
29
|
|
30
30
|
@html.details do
|
31
|
-
@html.summary(hContact[:name], {'id' => 'CID_'+hContact[:contactId], 'class' => 'h3'})
|
31
|
+
@html.summary(hContact[:name], {'id' => 'CID_' + hContact[:contactId], 'class' => 'h3'})
|
32
32
|
@html.section(:class => 'block') do
|
33
33
|
|
34
34
|
# contact - contact ID
|
35
|
-
|
36
|
-
|
37
|
-
|
35
|
+
unless hContact[:contactId].nil?
|
36
|
+
@html.em('Contact ID: ')
|
37
|
+
@html.text!(hContact[:contactId])
|
38
|
+
@html.br
|
39
|
+
end
|
38
40
|
|
39
41
|
# contact - isOrganization
|
40
42
|
@html.em('is Organization: ')
|
@@ -24,9 +24,11 @@ module ADIWG
|
|
24
24
|
dimensionClass = Html_Dimension.new(@html)
|
25
25
|
|
26
26
|
# grid representation - number of dimensions
|
27
|
-
|
28
|
-
|
29
|
-
|
27
|
+
unless hGrid[:numberOfDimensions].nil?
|
28
|
+
@html.em('Number of dimensions: ')
|
29
|
+
@html.text!(hGrid[:numberOfDimensions].to_s)
|
30
|
+
@html.br
|
31
|
+
end
|
30
32
|
|
31
33
|
# grid representation - dimension []
|
32
34
|
dimensionCount = 0
|
@@ -48,7 +50,7 @@ module ADIWG
|
|
48
50
|
@html.br
|
49
51
|
end
|
50
52
|
|
51
|
-
# grid representation - transformation parameters available
|
53
|
+
# grid representation - transformation parameters available {Boolean}
|
52
54
|
@html.em('Transformation parameters available: ')
|
53
55
|
@html.text!(hGrid[:transformationParameterAvailable].to_s)
|
54
56
|
|
@@ -5,35 +5,36 @@
|
|
5
5
|
# Stan Smith 2015-03-24 original script
|
6
6
|
|
7
7
|
module ADIWG
|
8
|
-
|
9
|
-
|
10
|
-
|
8
|
+
module Mdtranslator
|
9
|
+
module Writers
|
10
|
+
module Html
|
11
11
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
12
|
+
class MdHtmlResourceFormat
|
13
|
+
def initialize(html)
|
14
|
+
@html = html
|
15
|
+
end
|
16
16
|
|
17
|
-
|
17
|
+
def writeHtml(hResFormat)
|
18
18
|
|
19
|
-
|
20
|
-
|
21
|
-
|
19
|
+
# resource format - name - required
|
20
|
+
unless hResFormat[:formatName].nil?
|
21
|
+
@html.em('Resource Format: ')
|
22
|
+
@html.text!(hResFormat[:formatName])
|
23
|
+
end
|
22
24
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
end
|
25
|
+
# resource format - version
|
26
|
+
unless !hResFormat[:formatVersion].nil?
|
27
|
+
@html.em(' Version: ')
|
28
|
+
@html.text!(hResFormat[:formatVersion])
|
29
|
+
end
|
29
30
|
|
30
|
-
|
31
|
+
@html.br
|
31
32
|
|
32
|
-
|
33
|
+
end # writeHtml
|
33
34
|
|
34
|
-
|
35
|
+
end # class
|
35
36
|
|
36
|
-
|
37
|
-
|
38
|
-
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
39
40
|
end
|
@@ -97,9 +97,11 @@ module ADIWG
|
|
97
97
|
end
|
98
98
|
|
99
99
|
# full abstract
|
100
|
-
|
101
|
-
|
102
|
-
|
100
|
+
unless hResource[:abstract].nil?
|
101
|
+
@html.em('Full Abstract:')
|
102
|
+
@html.br
|
103
|
+
@html.text!(hResource[:abstract])
|
104
|
+
end
|
103
105
|
|
104
106
|
end
|
105
107
|
end
|
@@ -18,14 +18,16 @@ module ADIWG
|
|
18
18
|
|
19
19
|
def writeHtml(hType)
|
20
20
|
|
21
|
-
# resource type
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
21
|
+
# resource type - (required)
|
22
|
+
unless hType[:type].nil?
|
23
|
+
@html.em('Resource Type: ')
|
24
|
+
@html.text!(hType[:type])
|
25
|
+
unless hType[:name].nil?
|
26
|
+
@html.em(' Name: ')
|
27
|
+
@html.text!(hType[:name])
|
28
|
+
end
|
29
|
+
@html.br
|
27
30
|
end
|
28
|
-
@html.br
|
29
31
|
|
30
32
|
end # writeHtml
|
31
33
|
end # Html_ResourceType
|
@@ -18,16 +18,19 @@ module ADIWG
|
|
18
18
|
|
19
19
|
def writeHtml(hSecCon)
|
20
20
|
|
21
|
-
# security constraint - classification code {classification}
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
21
|
+
# security constraint - classification code {classification} (required)
|
22
|
+
unless hSecCon[:classCode].nil?
|
23
|
+
@html.em('Classification: ')
|
24
|
+
@html.text!(hSecCon[:classCode])
|
25
|
+
@html.br
|
26
|
+
end
|
26
27
|
|
27
28
|
# security constraint - classification system
|
28
|
-
|
29
|
-
|
30
|
-
|
29
|
+
unless hSecCon[:classSystem].nil?
|
30
|
+
@html.em('Classification System: ')
|
31
|
+
@html.text!(hSecCon[:classSystem])
|
32
|
+
@html.br
|
33
|
+
end
|
31
34
|
|
32
35
|
# security constraint - user note
|
33
36
|
unless hSecCon[:userNote].nil?
|
@@ -2,6 +2,7 @@
|
|
2
2
|
# vector representation
|
3
3
|
|
4
4
|
# History:
|
5
|
+
# Stan Smith 2017-10-13 trap missing topology level
|
5
6
|
# Stan Smith 2017-03-28 original script
|
6
7
|
|
7
8
|
require_relative 'html_vectorObject'
|
@@ -23,9 +24,11 @@ module ADIWG
|
|
23
24
|
objectClass = Html_VectorObject.new(@html)
|
24
25
|
|
25
26
|
# vector representation - topology level
|
26
|
-
|
27
|
-
|
28
|
-
|
27
|
+
unless hVector[:topologyLevel].nil?
|
28
|
+
@html.em('Topology Level: ')
|
29
|
+
@html.text!(hVector[:topologyLevel])
|
30
|
+
@html.br
|
31
|
+
end
|
29
32
|
|
30
33
|
# vector representation - vector object []
|
31
34
|
hVector[:vectorObject].each do |hObject|
|
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.3.
|
4
|
+
version: 2.3.5
|
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: 2017-10-
|
12
|
+
date: 2017-10-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -464,7 +464,6 @@ files:
|
|
464
464
|
- lib/adiwg/mdtranslator/writers/html/sections/html_scope.rb
|
465
465
|
- lib/adiwg/mdtranslator/writers/html/sections/html_scopeDescription.rb
|
466
466
|
- lib/adiwg/mdtranslator/writers/html/sections/html_securityConstraint.rb
|
467
|
-
- lib/adiwg/mdtranslator/writers/html/sections/html_sensorInfo.rb
|
468
467
|
- lib/adiwg/mdtranslator/writers/html/sections/html_source.rb
|
469
468
|
- lib/adiwg/mdtranslator/writers/html/sections/html_spatialReference.rb
|
470
469
|
- lib/adiwg/mdtranslator/writers/html/sections/html_spatialRepresentation.rb
|
@@ -1,66 +0,0 @@
|
|
1
|
-
# HTML writer
|
2
|
-
# sensor information
|
3
|
-
|
4
|
-
# History:
|
5
|
-
# Stan Smith 2015-08-21 original script
|
6
|
-
|
7
|
-
module ADIWG
|
8
|
-
module Mdtranslator
|
9
|
-
module Writers
|
10
|
-
module Html
|
11
|
-
|
12
|
-
class MdHtmlSensorInfo
|
13
|
-
def initialize(html)
|
14
|
-
@html = html
|
15
|
-
end
|
16
|
-
|
17
|
-
def writeHtml(hSensor)
|
18
|
-
|
19
|
-
# sensor information - tone gradations
|
20
|
-
s = hSensor[:toneGradations]
|
21
|
-
if !s.nil?
|
22
|
-
@html.em('Number of tone gradations: ')
|
23
|
-
@html.text!(s.to_s)
|
24
|
-
@html.br
|
25
|
-
end
|
26
|
-
|
27
|
-
# sensor information - sensor min
|
28
|
-
s = hSensor[:sensorMin]
|
29
|
-
if !s.nil?
|
30
|
-
@html.em('Sensor lower limit: ')
|
31
|
-
@html.text!(s.to_s)
|
32
|
-
@html.br
|
33
|
-
end
|
34
|
-
|
35
|
-
# sensor information - sensor max
|
36
|
-
s = hSensor[:sensorMax]
|
37
|
-
if !s.nil?
|
38
|
-
@html.em('Sensor upper limit: ')
|
39
|
-
@html.text!(s.to_s)
|
40
|
-
@html.br
|
41
|
-
end
|
42
|
-
|
43
|
-
# sensor information - units
|
44
|
-
s = hSensor[:sensorUnits]
|
45
|
-
if !s.nil?
|
46
|
-
@html.em('Sensor units: ')
|
47
|
-
@html.text!(s.to_s)
|
48
|
-
@html.br
|
49
|
-
end
|
50
|
-
|
51
|
-
# sensor information - peak response
|
52
|
-
s = hSensor[:sensorPeakResponse]
|
53
|
-
if !s.nil?
|
54
|
-
@html.em('Sensor peak response: ')
|
55
|
-
@html.text!(s.to_s)
|
56
|
-
@html.br
|
57
|
-
end
|
58
|
-
|
59
|
-
end # writeHtml
|
60
|
-
|
61
|
-
end # class
|
62
|
-
|
63
|
-
end
|
64
|
-
end
|
65
|
-
end
|
66
|
-
end
|