adiwg-mdtranslator 2.18.4 → 2.19.0.pre.beta.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +14 -0
- data/Gemfile.lock +11 -9
- data/adiwg-mdtranslator.gemspec +3 -3
- data/lib/adiwg/mdtranslator/internal/internal_metadata_obj.rb +27 -11
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_dataQuality.rb +149 -0
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_fgdc.rb +2 -2
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_conformanceResult.rb +1 -1
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_coverageResult.rb +8 -7
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_dataQuality.rb +4 -4
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_dataQualityReport.rb +8 -16
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_evaluationMethod.rb +1 -1
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_legalConstraint.rb +8 -8
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_qualityMeasure.rb +34 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_qualityResultFile.rb +72 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_rangeElementDescription.rb +2 -2
- data/lib/adiwg/mdtranslator/readers/sbJson/modules/module_contact.rb +13 -0
- data/lib/adiwg/mdtranslator/version.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/fgdc/classes/{class_quality.rb → class_dataQuality.rb} +14 -10
- data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_fgdc.rb +3 -3
- data/lib/adiwg/mdtranslator/writers/html/sections/html_body.rb +5 -1
- data/lib/adiwg/mdtranslator/writers/html/sections/html_dataQuality.rb +39 -18
- data/lib/adiwg/mdtranslator/writers/html/sections/html_dataQualityReport.rb +385 -0
- data/lib/adiwg/mdtranslator/writers/html/sections/html_rangeElementDescription.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/html/sections/html_resultFile.rb +60 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_3/classes/class_dataQualityReport.rb +213 -39
- data/lib/adiwg/mdtranslator/writers/iso19115_3/classes/class_qualityResultFile.rb +55 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_3/classes/class_rangeElementDescription.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_allocation.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_coverageResult.rb +30 -0
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_dataQuality.rb +3 -1
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_dataQualityReport.rb +12 -10
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_descriptiveResult.rb +3 -3
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_funding.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_legalConstraint.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_metadata.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_qualityMeasure.rb +4 -3
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_qualityResultFile.rb +23 -0
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_standaloneQualityReport.rb +31 -0
- data/lib/adiwg/mdtranslator/writers/sbJson/sections/sbJson_contact.rb +10 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_additionalDocumentation.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_algorithm.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_allocation.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_associatedResource.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_attribute.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_attributeGroup.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_body.rb +12 -17
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_citation.rb +5 -5
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_classedData.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_constraint.rb +5 -5
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_contact.rb +37 -5
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_coverageInfo.rb +3 -3
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_dataDictionary.rb +5 -5
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_dataQuality.rb +31 -12
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_dataQualityReport.rb +385 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_distribution.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_distributor.rb +3 -3
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_domain.rb +3 -3
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_domainItem.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_entity.rb +5 -5
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_entityAttribute.rb +3 -3
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_extent.rb +3 -3
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_feature.rb +5 -5
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_featureCollection.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_featureProperties.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_format.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_funding.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_geodeticParameters.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_geographicElement.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_geographicExtent.rb +4 -14
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_geologicAge.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_geometryCollection.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_geometryObject.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_georectifiedRepresentation.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_georeferenceableRepresentation.rb +3 -3
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_graphic.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_gridRepresentation.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_identifier.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_imageInfo.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_keyword.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_metadataInfo.rb +9 -9
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_metadataRepository.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_processStep.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_processing.rb +3 -3
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_rangeElementDescription.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_resourceInfo.rb +17 -17
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_responsibility.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_resultFile.rb +60 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_scope.rb +12 -12
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_source.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_taxonomy.rb +1 -1
- metadata +23 -13
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_quality.rb +0 -181
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_bodyScript.js +0 -317
@@ -25,7 +25,7 @@ module ADIWG
|
|
25
25
|
# geodetic parameters - datum identifier
|
26
26
|
unless hGeodetic[:datumIdentifier].empty?
|
27
27
|
@html.div do
|
28
|
-
@html.
|
28
|
+
@html.h5('Datum Identifier', {'id' => 'datum-identifier', 'class' => 'h5'})
|
29
29
|
@html.div(:class => 'block') do
|
30
30
|
identifierClass.writeHtml(hGeodetic[:datumIdentifier])
|
31
31
|
end
|
@@ -35,7 +35,7 @@ module ADIWG
|
|
35
35
|
# geodetic parameters - ellipsoid identifier
|
36
36
|
unless hGeodetic[:ellipsoidIdentifier].empty?
|
37
37
|
@html.div do
|
38
|
-
@html.
|
38
|
+
@html.h5('Ellipsoid Identifier', {'id' => 'ellipsoid-identifier', 'class' => 'h5'})
|
39
39
|
@html.div(:class => 'block') do
|
40
40
|
identifierClass.writeHtml(hGeodetic[:ellipsoidIdentifier])
|
41
41
|
end
|
@@ -32,7 +32,7 @@ module ADIWG
|
|
32
32
|
case hElement[:type]
|
33
33
|
when 'Point', 'LineString', 'Polygon', 'MultiPoint', 'MultiLineString', 'MultiPolygon'
|
34
34
|
@html.div do
|
35
|
-
@html.
|
35
|
+
@html.h5(hElement[:type], 'class' => 'h5')
|
36
36
|
@html.div(:class => 'block') do
|
37
37
|
geometryClass.writeHtml(hElement)
|
38
38
|
end
|
@@ -40,7 +40,7 @@ module ADIWG
|
|
40
40
|
|
41
41
|
when 'GeometryCollection'
|
42
42
|
@html.div do
|
43
|
-
@html.
|
43
|
+
@html.h5('Geometry Collection', 'class' => 'h5')
|
44
44
|
@html.div(:class => 'block') do
|
45
45
|
geoCollectionClass.writeHtml(hElement)
|
46
46
|
end
|
@@ -52,7 +52,7 @@ module ADIWG
|
|
52
52
|
unless hElement[:id].nil?
|
53
53
|
title += ': '+hElement[:id].to_s
|
54
54
|
end
|
55
|
-
@html.
|
55
|
+
@html.h5(title, 'class' => 'h5')
|
56
56
|
@html.div(:class => 'block') do
|
57
57
|
featureClass.writeHtml(hElement)
|
58
58
|
end
|
@@ -60,7 +60,7 @@ module ADIWG
|
|
60
60
|
|
61
61
|
when 'FeatureCollection'
|
62
62
|
@html.div do
|
63
|
-
@html.
|
63
|
+
@html.h5(hElement[:type], 'class' => 'h5')
|
64
64
|
@html.div(:class => 'block') do
|
65
65
|
featCollectionClass.writeHtml(hElement)
|
66
66
|
end
|
@@ -41,20 +41,10 @@ module ADIWG
|
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
44
|
-
# geographic extent - map {div}
|
45
|
-
@html.div do
|
46
|
-
@html.div('Map', 'class' => 'h5 map-summary')
|
47
|
-
@html.div(:class => 'block') do
|
48
|
-
@html.div('class' => 'map', 'id' => 'map') do
|
49
|
-
# map drawn by html_bodyScript.js
|
50
|
-
end
|
51
|
-
end
|
52
|
-
end
|
53
|
-
|
54
44
|
# geographic extent - geographic element [] {geographicElement}
|
55
45
|
unless hExtent[:geographicElements].empty?
|
56
46
|
@html.div do
|
57
|
-
@html.
|
47
|
+
@html.h5('Elements', 'class' => 'h5')
|
58
48
|
@html.div(:class => 'block') do
|
59
49
|
hExtent[:geographicElements].each do |hElement|
|
60
50
|
geographicClass.writeHtml(hElement)
|
@@ -66,7 +56,7 @@ module ADIWG
|
|
66
56
|
# geographic extent - user bounding box
|
67
57
|
unless hExtent[:boundingBox].empty?
|
68
58
|
@html.div do
|
69
|
-
@html.
|
59
|
+
@html.h5('User Provided Bounding Box', 'class' => 'h5')
|
70
60
|
@html.div(:class => 'block') do
|
71
61
|
boundingClass.writeHtml(hExtent[:boundingBox])
|
72
62
|
@html.div(:class =>'userBBox hidden') do
|
@@ -79,7 +69,7 @@ module ADIWG
|
|
79
69
|
# computed bounding box - {boundingBox}
|
80
70
|
unless hExtent[:computedBbox].empty?
|
81
71
|
@html.div do
|
82
|
-
@html.
|
72
|
+
@html.h5('Computed Bounding Box', 'class' => 'h5')
|
83
73
|
@html.div(:class => 'block') do
|
84
74
|
boundingClass.writeHtml(hExtent[:computedBbox])
|
85
75
|
@html.div(:class =>'computedBBox hidden') do
|
@@ -102,7 +92,7 @@ module ADIWG
|
|
102
92
|
# geographic extent - native GeoJson
|
103
93
|
unless hExtent[:nativeGeoJson].empty?
|
104
94
|
@html.div do
|
105
|
-
@html.
|
95
|
+
@html.h5('GeoJson', 'class' => 'h5')
|
106
96
|
@html.div(:class => 'block') do
|
107
97
|
@html.div(:class =>'geojson', :dataPopup => 'fill in popData') do
|
108
98
|
@html.text!(hExtent[:nativeGeoJson].to_json)
|
@@ -55,7 +55,7 @@ module ADIWG
|
|
55
55
|
# geologic age - age references [] {citation}
|
56
56
|
hGeoAge[:ageReferences].each do |hCitation|
|
57
57
|
@html.div do
|
58
|
-
@html.
|
58
|
+
@html.h5('Age Reference', {'class' => 'h5'})
|
59
59
|
@html.div(:class => 'block') do
|
60
60
|
citationClass.writeHtml(hCitation)
|
61
61
|
end
|
@@ -27,7 +27,7 @@ module ADIWG
|
|
27
27
|
# geometry collection - objects
|
28
28
|
hCollection[:geometryObjects].each do |hObject|
|
29
29
|
@html.div do
|
30
|
-
@html.
|
30
|
+
@html.h5(hObject[:type], 'class' => 'h5')
|
31
31
|
@html.div(:class => 'block') do
|
32
32
|
geometryClass.writeHtml(hObject)
|
33
33
|
end
|
@@ -37,7 +37,7 @@ module ADIWG
|
|
37
37
|
# geometry collection - user bounding box
|
38
38
|
unless hCollection[:bbox].empty?
|
39
39
|
@html.div do
|
40
|
-
@html.
|
40
|
+
@html.h5('User Provided Bounding Box', 'class' => 'h5')
|
41
41
|
@html.div(:class => 'block') do
|
42
42
|
bbox = {}
|
43
43
|
bbox[:westLongitude] = hCollection[:bbox][0]
|
@@ -52,7 +52,7 @@ module ADIWG
|
|
52
52
|
# geometry collection - computed bounding box
|
53
53
|
unless hCollection[:computedBbox].empty?
|
54
54
|
@html.div do
|
55
|
-
@html.
|
55
|
+
@html.h5('Computed Bounding Box', 'class' => 'h5')
|
56
56
|
@html.div(:class => 'block') do
|
57
57
|
boxClass.writeHtml(hCollection[:computedBbox])
|
58
58
|
end
|
@@ -62,7 +62,7 @@ module ADIWG
|
|
62
62
|
# geographic element - native GeoJson
|
63
63
|
unless hCollection[:nativeGeoJson].empty?
|
64
64
|
@html.div do
|
65
|
-
@html.
|
65
|
+
@html.h5('GeoJson', 'class' => 'h5')
|
66
66
|
@html.div(:class => 'block') do
|
67
67
|
@html.text!(hCollection[:nativeGeoJson].to_json)
|
68
68
|
end
|
@@ -20,7 +20,7 @@ module ADIWG
|
|
20
20
|
# geometry object - coordinates
|
21
21
|
unless hObject[:coordinates].nil?
|
22
22
|
@html.div do
|
23
|
-
@html.
|
23
|
+
@html.h5('Coordinates', 'class' => 'h5')
|
24
24
|
@html.div(:class => 'block') do
|
25
25
|
@html.text!(hObject[:coordinates].to_s)
|
26
26
|
end
|
@@ -30,7 +30,7 @@ module ADIWG
|
|
30
30
|
# geographic element - native GeoJson
|
31
31
|
unless hObject[:nativeGeoJson].empty?
|
32
32
|
@html.div do
|
33
|
-
@html.
|
33
|
+
@html.h5('GeoJson', 'class' => 'h5')
|
34
34
|
@html.div(:class => 'block') do
|
35
35
|
@html.text!(hObject[:nativeGeoJson].to_json)
|
36
36
|
end
|
@@ -27,7 +27,7 @@ module ADIWG
|
|
27
27
|
# georectified representation - scope
|
28
28
|
hGeorectified[:scope].each do |scope|
|
29
29
|
@html.div do
|
30
|
-
@html.
|
30
|
+
@html.h5('Scope ', 'class' => 'h5')
|
31
31
|
@html.div(:class => 'block') do
|
32
32
|
scopeClass.writeHtml(hGeorectified[:scope])
|
33
33
|
end
|
@@ -37,7 +37,7 @@ module ADIWG
|
|
37
37
|
# georectified representation - grid {gridRepresentation}
|
38
38
|
unless hGeorectified[:gridRepresentation].empty?
|
39
39
|
@html.div do
|
40
|
-
@html.
|
40
|
+
@html.h5('Grid Information ', 'class' => 'h5')
|
41
41
|
@html.div(:class => 'block') do
|
42
42
|
gridClass.writeHtml(hGeorectified[:gridRepresentation])
|
43
43
|
end
|
data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_georeferenceableRepresentation.rb
CHANGED
@@ -29,7 +29,7 @@ module ADIWG
|
|
29
29
|
# georeferenceable representation - scope
|
30
30
|
hGeoreferenceable[:scope].each do |scope|
|
31
31
|
@html.div do
|
32
|
-
@html.
|
32
|
+
@html.h5('Scope ', 'class' => 'h5')
|
33
33
|
@html.div(:class => 'block') do
|
34
34
|
scopeClass.writeHtml(hGeoreferenceable[:scope])
|
35
35
|
end
|
@@ -40,7 +40,7 @@ module ADIWG
|
|
40
40
|
# georeferenceable representation - grid {gridRepresentation}
|
41
41
|
unless hGeoreferenceable[:gridRepresentation].empty?
|
42
42
|
@html.div do
|
43
|
-
@html.
|
43
|
+
@html.h5('Grid Information ', 'class' => 'h5')
|
44
44
|
@html.div(:class => 'block') do
|
45
45
|
gridClass.writeHtml(hGeoreferenceable[:gridRepresentation])
|
46
46
|
end
|
@@ -75,7 +75,7 @@ module ADIWG
|
|
75
75
|
# georeferenceable representation - parameter citation {citation}
|
76
76
|
hGeoreferenceable[:parameterCitation].each do |hCitation|
|
77
77
|
@html.div do
|
78
|
-
@html.
|
78
|
+
@html.h5('Parameter Citation ', 'class' => 'h5')
|
79
79
|
@html.div(:class => 'block') do
|
80
80
|
citationClass.writeHtml(hCitation)
|
81
81
|
end
|
@@ -49,7 +49,7 @@ module ADIWG
|
|
49
49
|
# graphic - uri [] {onlineResource}
|
50
50
|
hGraphic[:graphicURI].each do |hOnline|
|
51
51
|
@html.div do
|
52
|
-
@html.
|
52
|
+
@html.h5('Online Link ', {'class' => 'h5'})
|
53
53
|
@html.div(:class => 'block') do
|
54
54
|
onlineClass.writeHtml(hOnline)
|
55
55
|
end
|
@@ -59,7 +59,7 @@ module ADIWG
|
|
59
59
|
# graphic - constraint [] {constraint}
|
60
60
|
hGraphic[:graphicConstraints].each do |hConstraint|
|
61
61
|
@html.div do
|
62
|
-
@html.
|
62
|
+
@html.h5('Constraint', {'class' => 'h5'})
|
63
63
|
@html.div(:class => 'block') do
|
64
64
|
constraintClass.writeHtml(hConstraint)
|
65
65
|
end
|
@@ -28,7 +28,7 @@ module ADIWG
|
|
28
28
|
# grid representation - scope
|
29
29
|
hGrid[:scope].each do |scope|
|
30
30
|
@html.div do
|
31
|
-
@html.
|
31
|
+
@html.h5('Scope ', 'class' => 'h5')
|
32
32
|
@html.div(:class => 'block') do
|
33
33
|
scopeClass.writeHtml(hGrid[:scope])
|
34
34
|
end
|
@@ -48,7 +48,7 @@ module ADIWG
|
|
48
48
|
hGrid[:dimension].each do |hDimension|
|
49
49
|
dimensionCount += 1
|
50
50
|
@html.div do
|
51
|
-
@html.
|
51
|
+
@html.h5('Dimension '+dimensionCount.to_s, 'class' => 'h5')
|
52
52
|
@html.div(:class => 'block') do
|
53
53
|
dimensionClass.writeHtml(hDimension)
|
54
54
|
end
|
@@ -65,7 +65,7 @@ module ADIWG
|
|
65
65
|
# identifier - authority {citation}
|
66
66
|
unless hIdentifier[:citation].empty?
|
67
67
|
@html.div do
|
68
|
-
@html.
|
68
|
+
@html.h5('Authority', {'id' => 'metadata-identifier', 'class' => 'h5'})
|
69
69
|
@html.div(:class => 'block') do
|
70
70
|
citationClass.writeHtml(hIdentifier[:citation])
|
71
71
|
end
|
@@ -61,7 +61,7 @@ module ADIWG
|
|
61
61
|
# image information - image quality code {identifier}
|
62
62
|
unless hImage[:imageQualityCode].empty?
|
63
63
|
@html.div do
|
64
|
-
@html.
|
64
|
+
@html.h5('Image Quality Code', {'class' => 'h5'})
|
65
65
|
@html.div(:class => 'block') do
|
66
66
|
identifierClass.writeHtml(hImage[:imageQualityCode])
|
67
67
|
end
|
@@ -30,7 +30,7 @@ module ADIWG
|
|
30
30
|
if type.nil?
|
31
31
|
type = 'Unclassified'
|
32
32
|
end
|
33
|
-
@html.
|
33
|
+
@html.h5(type, {'class' => 'h5'})
|
34
34
|
@html.div(:class => 'block') do
|
35
35
|
|
36
36
|
# keywords
|
@@ -49,7 +49,7 @@ module ADIWG
|
|
49
49
|
# thesaurus
|
50
50
|
unless hKeyword[:thesaurus].empty?
|
51
51
|
@html.div do
|
52
|
-
@html.
|
52
|
+
@html.h5('Thesaurus', {'class' => 'h5'})
|
53
53
|
@html.div(:class => 'block') do
|
54
54
|
citationClass.writeHtml(hKeyword[:thesaurus])
|
55
55
|
end
|
@@ -50,7 +50,7 @@ module ADIWG
|
|
50
50
|
# metadataInfo - metadata identifier {identifier}
|
51
51
|
unless hMetaInfo[:metadataIdentifier].empty?
|
52
52
|
@html.div do
|
53
|
-
@html.
|
53
|
+
@html.h3('Metadata Identifier', {'id' => 'metadataInfo-identifier', 'class' => 'h3'})
|
54
54
|
@html.div(:class => 'block') do
|
55
55
|
identifierClass.writeHtml(hMetaInfo[:metadataIdentifier])
|
56
56
|
end
|
@@ -60,7 +60,7 @@ module ADIWG
|
|
60
60
|
# metadataInfo - parent metadata {citation}
|
61
61
|
unless hMetaInfo[:parentMetadata].empty?
|
62
62
|
@html.div do
|
63
|
-
@html.
|
63
|
+
@html.h3('Parent Metadata', {'id' => 'metadataInfo-parent', 'class' => 'h3'})
|
64
64
|
@html.div(:class => 'block') do
|
65
65
|
citationClass.writeHtml(hMetaInfo[:parentMetadata])
|
66
66
|
end
|
@@ -70,7 +70,7 @@ module ADIWG
|
|
70
70
|
# metadataInfo - metadata locales
|
71
71
|
unless hMetaInfo[:defaultMetadataLocale].empty? && hMetaInfo[:otherMetadataLocales].empty?
|
72
72
|
@html.div do
|
73
|
-
@html.
|
73
|
+
@html.h3('Metadata Locales', {'id' => 'metadataInfo-locale', 'class' => 'h3'})
|
74
74
|
@html.div(:class => 'block') do
|
75
75
|
|
76
76
|
# default metadata locales {locale}
|
@@ -100,7 +100,7 @@ module ADIWG
|
|
100
100
|
# metadataInfo - contacts [] {responsibility}
|
101
101
|
unless hMetaInfo[:metadataContacts].empty?
|
102
102
|
@html.div do
|
103
|
-
@html.
|
103
|
+
@html.h3('Metadata Contacts', {'id' => 'metadataInfo-contacts', 'class' => 'h3'})
|
104
104
|
@html.div(:class => 'block') do
|
105
105
|
hMetaInfo[:metadataContacts].each do |hResponsibility|
|
106
106
|
@html.div do
|
@@ -117,7 +117,7 @@ module ADIWG
|
|
117
117
|
# metadataInfo - dates [] {date}
|
118
118
|
unless hMetaInfo[:metadataDates].empty?
|
119
119
|
@html.div do
|
120
|
-
@html.
|
120
|
+
@html.h3('Metadata Dates', {'id' => 'metadataInfo-dates', 'class' => 'h3'})
|
121
121
|
@html.div(:class => 'block') do
|
122
122
|
hMetaInfo[:metadataDates].each do |hDate|
|
123
123
|
@html.em('Date: ')
|
@@ -131,7 +131,7 @@ module ADIWG
|
|
131
131
|
# metadataInfo - linkages [] {onlineResource}
|
132
132
|
unless hMetaInfo[:metadataLinkages].empty?
|
133
133
|
@html.div do
|
134
|
-
@html.
|
134
|
+
@html.h3('Metadata Online Resource', {'id' => 'metadataInfo-links', 'class' => 'h3'})
|
135
135
|
@html.div(:class => 'block') do
|
136
136
|
hMetaInfo[:metadataLinkages].each do |hOnline|
|
137
137
|
@html.div do
|
@@ -148,7 +148,7 @@ module ADIWG
|
|
148
148
|
# metadataInfo - constraints [] {constraint}
|
149
149
|
unless hMetaInfo[:metadataConstraints].empty?
|
150
150
|
@html.div do
|
151
|
-
@html.
|
151
|
+
@html.h3('Metadata Constraints', {'id' => 'metadataInfo-constraint', 'class' => 'h3'})
|
152
152
|
@html.div(:class => 'block') do
|
153
153
|
hMetaInfo[:metadataConstraints].each do |hConstraint|
|
154
154
|
@html.div do
|
@@ -165,7 +165,7 @@ module ADIWG
|
|
165
165
|
# metadataInfo - maintenance {maintenance}
|
166
166
|
unless hMetaInfo[:metadataMaintenance].empty?
|
167
167
|
@html.div do
|
168
|
-
@html.
|
168
|
+
@html.h3('Metadata Maintenance', {'id' => 'metadataInfo-maintenance', 'class' => 'h3'})
|
169
169
|
@html.div(:class => 'block') do
|
170
170
|
maintClass.writeHtml(hMetaInfo[:metadataMaintenance])
|
171
171
|
end
|
@@ -175,7 +175,7 @@ module ADIWG
|
|
175
175
|
# metadataInfo - alternate metadata references [] {citation}
|
176
176
|
unless hMetaInfo[:alternateMetadataReferences].empty?
|
177
177
|
@html.div do
|
178
|
-
@html.
|
178
|
+
@html.h3('Alternate Metadata Citations', {'id' => 'metadataInfo-alternate', 'class' => 'h3'})
|
179
179
|
@html.div(:class => 'block') do
|
180
180
|
hMetaInfo[:alternateMetadataReferences].each do |hCitation|
|
181
181
|
@html.div do
|
@@ -40,7 +40,7 @@ module ADIWG
|
|
40
40
|
# metadata repository - citation
|
41
41
|
unless hRepository[:citation].empty?
|
42
42
|
@html.div do
|
43
|
-
@html.
|
43
|
+
@html.h5('Citation', {'class' => 'h5'})
|
44
44
|
@html.div(:class => 'block') do
|
45
45
|
citationClass.writeHtml(hRepository[:citation])
|
46
46
|
end
|
@@ -135,7 +135,7 @@ module ADIWG
|
|
135
135
|
# process step - scope {scope}
|
136
136
|
unless hStep[:scope].empty?
|
137
137
|
@html.div do
|
138
|
-
@html.
|
138
|
+
@html.h5('Scope', {'class' => 'h5'})
|
139
139
|
@html.div(:class => 'block') do
|
140
140
|
scopeClass.writeHtml(hStep[:scope])
|
141
141
|
end
|
@@ -36,7 +36,7 @@ module ADIWG
|
|
36
36
|
# processing - identifier {identifier}
|
37
37
|
unless hProcessing[:identifier].empty?
|
38
38
|
@html.div do
|
39
|
-
@html.
|
39
|
+
@html.h5('Identifier', {'class' => 'h5'})
|
40
40
|
@html.div(:class => 'block') do
|
41
41
|
identifierClass.writeHtml(hProcessing[:identifier])
|
42
42
|
end
|
@@ -63,7 +63,7 @@ module ADIWG
|
|
63
63
|
# processing - documentation [] {citation}
|
64
64
|
hProcessing[:documentation].each do |hCitation|
|
65
65
|
@html.div do
|
66
|
-
@html.
|
66
|
+
@html.h5('Documentation', {'class' => 'h5'})
|
67
67
|
@html.div(:class => 'block') do
|
68
68
|
citationClass.writeHtml(hCitation)
|
69
69
|
end
|
@@ -73,7 +73,7 @@ module ADIWG
|
|
73
73
|
# processing - algorithm [] {algorithm}
|
74
74
|
hProcessing[:algorithms].each do |hAlgorithm|
|
75
75
|
@html.div do
|
76
|
-
@html.
|
76
|
+
@html.h5('Algorithm', {'class' => 'h5'})
|
77
77
|
@html.div(:class => 'block') do
|
78
78
|
algorithmClass.writeHtml(hAlgorithm)
|
79
79
|
end
|
@@ -25,12 +25,12 @@ module ADIWG
|
|
25
25
|
@html.br
|
26
26
|
end
|
27
27
|
|
28
|
-
red[:
|
28
|
+
red[:rangeElement].each do |hRangeElement|
|
29
29
|
@html.em('Range Element:')
|
30
30
|
@html.text!(hRangeElement)
|
31
|
+
@html.br
|
31
32
|
end
|
32
33
|
|
33
|
-
@html.br
|
34
34
|
end # writeHtml
|
35
35
|
end # Html_RangeElementDescription
|
36
36
|
|
@@ -76,7 +76,7 @@ module ADIWG
|
|
76
76
|
# resource - citation {citation}
|
77
77
|
unless hResource[:citation].empty?
|
78
78
|
@html.div do
|
79
|
-
@html.
|
79
|
+
@html.h3('Citation', {'id' => 'resourceInfo-citation', 'class' => 'h3'})
|
80
80
|
@html.div(:class => 'block') do
|
81
81
|
citationClass.writeHtml(hResource[:citation])
|
82
82
|
end
|
@@ -86,7 +86,7 @@ module ADIWG
|
|
86
86
|
# resource - abstract
|
87
87
|
unless hResource[:abstract].nil? && hResource[:shortAbstract].nil?
|
88
88
|
@html.div do
|
89
|
-
@html.
|
89
|
+
@html.h3('Abstract', {'id' => 'resourceInfo-abstract', 'class' => 'h3'})
|
90
90
|
@html.div(:class => 'block') do
|
91
91
|
|
92
92
|
# short abstract
|
@@ -115,7 +115,7 @@ module ADIWG
|
|
115
115
|
# resource - purpose
|
116
116
|
unless hResource[:purpose].nil? && hResource[:resourceUsages].empty?
|
117
117
|
@html.div do
|
118
|
-
@html.
|
118
|
+
@html.h3('Purpose, Usage, and Limitations', {'id' => 'resourceInfo-purpose', 'class' => 'h3'})
|
119
119
|
@html.div(:class => 'block') do
|
120
120
|
|
121
121
|
# purpose
|
@@ -148,7 +148,7 @@ module ADIWG
|
|
148
148
|
# resource - graphic overview [] {graphicOverview}
|
149
149
|
unless hResource[:graphicOverviews].empty?
|
150
150
|
@html.div do
|
151
|
-
@html.
|
151
|
+
@html.h3('Graphic Overviews', {'id' => 'resourceInfo-overview', 'class' => 'h3'})
|
152
152
|
@html.div(:class => 'block') do
|
153
153
|
counter = 0
|
154
154
|
hResource[:graphicOverviews].each do |hGraphic|
|
@@ -167,7 +167,7 @@ module ADIWG
|
|
167
167
|
# resource - point of contact [] {responsibility}
|
168
168
|
unless hResource[:pointOfContacts].empty? && hResource[:credits].empty?
|
169
169
|
@html.div do
|
170
|
-
@html.
|
170
|
+
@html.h3('Resource Contacts', {'id' => 'resourceInfo-contacts', 'class' => 'h3'})
|
171
171
|
@html.div(:class => 'block') do
|
172
172
|
|
173
173
|
# contacts - responsibility
|
@@ -201,7 +201,7 @@ module ADIWG
|
|
201
201
|
# resource - temporal information
|
202
202
|
unless hResource[:timePeriod].empty? && hResource[:temporalResolutions].empty?
|
203
203
|
@html.div do
|
204
|
-
@html.
|
204
|
+
@html.h3('Temporal Information', {'id' => 'resourceInfo-temporal', 'class' => 'h3'})
|
205
205
|
@html.div(:class => 'block') do
|
206
206
|
|
207
207
|
# time period {timePeriod}
|
@@ -234,7 +234,7 @@ module ADIWG
|
|
234
234
|
hResource[:spatialRepresentations].empty?
|
235
235
|
hResource[:spatialResolutions].empty?
|
236
236
|
@html.div do
|
237
|
-
@html.
|
237
|
+
@html.h3('Spatial Information', {'id' => 'resourceInfo-spatial', 'class' => 'h3'})
|
238
238
|
@html.div(:class => 'block') do
|
239
239
|
|
240
240
|
# representation type [] {spatialRepresentation}
|
@@ -312,11 +312,11 @@ module ADIWG
|
|
312
312
|
# # resource - extent [] {extent}
|
313
313
|
# unless hResource[:extents].empty?
|
314
314
|
# @html.div do
|
315
|
-
# @html.
|
315
|
+
# @html.h3('Spatial, Temporal, and Vertical Extents', {'id' => 'resourceInfo-extent', 'class' => 'h3'})
|
316
316
|
# @html.div(:class => 'block') do
|
317
317
|
# hResource[:extents].each do |hExtent|
|
318
318
|
# @html.div do
|
319
|
-
# @html.
|
319
|
+
# @html.h5('Extent', {'class' => 'h5'})
|
320
320
|
# @html.div(:class => 'block') do
|
321
321
|
# extentClass.writeHtml(hExtent)
|
322
322
|
# end
|
@@ -329,7 +329,7 @@ module ADIWG
|
|
329
329
|
# resource - keywords [] {keyword}
|
330
330
|
unless hResource[:keywords].empty?
|
331
331
|
@html.div do
|
332
|
-
@html.
|
332
|
+
@html.h3('Keywords', {'id' => 'resourceInfo-keyword', 'class' => 'h3'})
|
333
333
|
@html.div(:class => 'block') do
|
334
334
|
hResource[:keywords].each do |hKeyword|
|
335
335
|
keywordClass.writeHtml(hKeyword)
|
@@ -341,7 +341,7 @@ module ADIWG
|
|
341
341
|
# resource - taxonomy {taxonomy}
|
342
342
|
unless hResource[:taxonomy].empty?
|
343
343
|
@html.div do
|
344
|
-
@html.
|
344
|
+
@html.h3('Taxonomy', {'id' => 'resourceInfo-taxonomy', 'class' => 'h3'})
|
345
345
|
@html.div(:class => 'block') do
|
346
346
|
counter = 0
|
347
347
|
hResource[:taxonomy].each do |hTaxonomy|
|
@@ -360,7 +360,7 @@ module ADIWG
|
|
360
360
|
# resource - constraints [] {constraint}
|
361
361
|
unless hResource[:constraints].empty?
|
362
362
|
@html.div do
|
363
|
-
@html.
|
363
|
+
@html.h3('Constraints', {'id' => 'resourceInfo-constraint', 'class' => 'h3'})
|
364
364
|
@html.div(:class => 'block') do
|
365
365
|
hResource[:constraints].each do |hConstraint|
|
366
366
|
@html.div do
|
@@ -377,7 +377,7 @@ module ADIWG
|
|
377
377
|
# resource - coverage description [] {coverageInfo}
|
378
378
|
unless hResource[:coverageDescriptions].empty?
|
379
379
|
@html.div do
|
380
|
-
@html.
|
380
|
+
@html.h3('Coverage Description', {'id' => 'resourceInfo-Coverage', 'class' => 'h3'})
|
381
381
|
@html.div(:class => 'block') do
|
382
382
|
hResource[:coverageDescriptions].each do |hCoverage|
|
383
383
|
@html.div do
|
@@ -394,7 +394,7 @@ module ADIWG
|
|
394
394
|
# resource - locale
|
395
395
|
unless hResource[:defaultResourceLocale].empty? && hResource[:otherResourceLocales].empty?
|
396
396
|
@html.div do
|
397
|
-
@html.
|
397
|
+
@html.h3('Resource Locales', {'id' => 'resourceInfo-locale', 'class' => 'h3'})
|
398
398
|
@html.div(:class => 'block') do
|
399
399
|
|
400
400
|
# default resource locales {locale}
|
@@ -424,11 +424,11 @@ module ADIWG
|
|
424
424
|
# resource - formats [] {format}
|
425
425
|
unless hResource[:resourceFormats].empty?
|
426
426
|
@html.div do
|
427
|
-
@html.
|
427
|
+
@html.h3('Resource Formats', {'id' => 'resourceInfo-format', 'class' => 'h3'})
|
428
428
|
@html.div(:class => 'block') do
|
429
429
|
hResource[:resourceFormats].each do |hFormat|
|
430
430
|
@html.div do
|
431
|
-
@html.
|
431
|
+
@html.h5('Format', {'class' => 'h5'})
|
432
432
|
@html.div(:class => 'block') do
|
433
433
|
formatClass.writeHtml(hFormat)
|
434
434
|
end
|
@@ -443,7 +443,7 @@ module ADIWG
|
|
443
443
|
hResource[:environmentDescription].nil? &&
|
444
444
|
hResource[:supplementalInfo].nil?
|
445
445
|
@html.div do
|
446
|
-
@html.
|
446
|
+
@html.h3('Supplemental Information', {'id' => 'resourceInfo-supplemental', 'class' => 'h3'})
|
447
447
|
@html.div(:class => 'block') do
|
448
448
|
|
449
449
|
# supplemental - maintenance [] {maintenance}
|
@@ -65,7 +65,7 @@ module ADIWG
|
|
65
65
|
# # responsibility - role extent [] {extent}
|
66
66
|
# hResponsibility[:roleExtents].each do |hExtent|
|
67
67
|
# @html.div do
|
68
|
-
# @html.
|
68
|
+
# @html.h5('Extent', {'class' => 'h5'})
|
69
69
|
# @html.div(:class => 'block') do
|
70
70
|
# extentClass.writeHtml(hExtent)
|
71
71
|
# end
|