adiwg-mdtranslator 2.18.4 → 2.19.0.pre.beta.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/test.yml +14 -0
  3. data/Gemfile.lock +11 -9
  4. data/adiwg-mdtranslator.gemspec +3 -3
  5. data/lib/adiwg/mdtranslator/internal/internal_metadata_obj.rb +29 -13
  6. data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_dataQuality.rb +149 -0
  7. data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_fgdc.rb +2 -2
  8. data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_keyword.rb +10 -6
  9. data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_lineage.rb +14 -11
  10. data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_methodology.rb +26 -34
  11. data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_process.rb +13 -1
  12. data/lib/adiwg/mdtranslator/readers/mdJson/mdJson_reader.rb +2 -2
  13. data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_conformanceResult.rb +1 -1
  14. data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_coverageResult.rb +8 -7
  15. data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_dataQuality.rb +4 -4
  16. data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_dataQualityReport.rb +8 -16
  17. data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_evaluationMethod.rb +1 -1
  18. data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_legalConstraint.rb +8 -8
  19. data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_qualityMeasure.rb +34 -0
  20. data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_qualityResultFile.rb +72 -0
  21. data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_rangeElementDescription.rb +2 -2
  22. data/lib/adiwg/mdtranslator/readers/sbJson/modules/module_contact.rb +13 -0
  23. data/lib/adiwg/mdtranslator/version.rb +1 -1
  24. data/lib/adiwg/mdtranslator/writers/fgdc/classes/{class_quality.rb → class_dataQuality.rb} +14 -10
  25. data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_fgdc.rb +3 -3
  26. data/lib/adiwg/mdtranslator/writers/html/sections/html_body.rb +5 -1
  27. data/lib/adiwg/mdtranslator/writers/html/sections/html_dataQuality.rb +39 -18
  28. data/lib/adiwg/mdtranslator/writers/html/sections/html_dataQualityReport.rb +385 -0
  29. data/lib/adiwg/mdtranslator/writers/html/sections/html_rangeElementDescription.rb +2 -2
  30. data/lib/adiwg/mdtranslator/writers/html/sections/html_resultFile.rb +60 -0
  31. data/lib/adiwg/mdtranslator/writers/iso19115_3/classes/class_dataQualityReport.rb +213 -39
  32. data/lib/adiwg/mdtranslator/writers/iso19115_3/classes/class_mdMetadata.rb +1 -1
  33. data/lib/adiwg/mdtranslator/writers/iso19115_3/classes/class_organization.rb +1 -19
  34. data/lib/adiwg/mdtranslator/writers/iso19115_3/classes/class_qualityResultFile.rb +55 -0
  35. data/lib/adiwg/mdtranslator/writers/iso19115_3/classes/class_rangeElementDescription.rb +14 -13
  36. data/lib/adiwg/mdtranslator/writers/iso19115_3/classes/class_sampleDimension.rb +6 -6
  37. data/lib/adiwg/mdtranslator/writers/iso19115_3/iso19115_3_writer.rb +2 -0
  38. data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_allocation.rb +1 -1
  39. data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_coverageResult.rb +30 -0
  40. data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_dataQuality.rb +3 -1
  41. data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_dataQualityReport.rb +12 -10
  42. data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_descriptiveResult.rb +3 -3
  43. data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_funding.rb +2 -2
  44. data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_legalConstraint.rb +1 -1
  45. data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_metadata.rb +1 -1
  46. data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_qualityMeasure.rb +4 -3
  47. data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_qualityResultFile.rb +23 -0
  48. data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_standaloneQualityReport.rb +31 -0
  49. data/lib/adiwg/mdtranslator/writers/sbJson/sections/sbJson_contact.rb +10 -0
  50. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_additionalDocumentation.rb +1 -1
  51. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_algorithm.rb +1 -1
  52. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_allocation.rb +1 -1
  53. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_associatedResource.rb +2 -2
  54. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_attribute.rb +2 -2
  55. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_attributeGroup.rb +1 -1
  56. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_body.rb +15 -31
  57. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_citation.rb +5 -5
  58. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_classedData.rb +1 -1
  59. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_constraint.rb +5 -5
  60. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_contact.rb +37 -5
  61. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_coverageInfo.rb +3 -3
  62. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_dataDictionary.rb +5 -5
  63. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_dataQuality.rb +31 -12
  64. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_dataQualityReport.rb +385 -0
  65. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_distribution.rb +1 -1
  66. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_distributor.rb +3 -3
  67. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_domain.rb +3 -3
  68. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_domainItem.rb +1 -1
  69. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_entity.rb +5 -5
  70. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_entityAttribute.rb +3 -3
  71. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_extent.rb +3 -3
  72. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_feature.rb +5 -5
  73. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_featureCollection.rb +4 -4
  74. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_featureProperties.rb +1 -1
  75. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_format.rb +1 -1
  76. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_funding.rb +1 -1
  77. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_geodeticParameters.rb +2 -2
  78. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_geographicElement.rb +4 -4
  79. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_geographicExtent.rb +4 -14
  80. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_geologicAge.rb +1 -1
  81. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_geometryCollection.rb +4 -4
  82. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_geometryObject.rb +2 -2
  83. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_georectifiedRepresentation.rb +2 -2
  84. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_georeferenceableRepresentation.rb +3 -3
  85. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_graphic.rb +2 -2
  86. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_gridRepresentation.rb +2 -2
  87. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_identifier.rb +1 -1
  88. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_imageInfo.rb +1 -1
  89. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_keyword.rb +14 -16
  90. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_metadataInfo.rb +10 -9
  91. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_metadataRepository.rb +1 -1
  92. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_processStep.rb +1 -1
  93. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_processing.rb +3 -3
  94. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_rangeElementDescription.rb +2 -2
  95. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_resourceInfo.rb +17 -17
  96. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_responsibility.rb +1 -1
  97. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_resultFile.rb +60 -0
  98. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_scope.rb +12 -12
  99. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_source.rb +2 -2
  100. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_taxonomy.rb +1 -1
  101. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_timePeriod.rb +1 -3
  102. metadata +23 -13
  103. data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_quality.rb +0 -181
  104. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_bodyScript.js +0 -317
@@ -36,7 +36,7 @@ module ADIWG
36
36
  # feature - geometry object
37
37
  unless hFeature[:geometryObject].empty?
38
38
  @html.div do
39
- @html.div(hFeature[:geometryObject][:type], 'class' => 'h5')
39
+ @html.h5(hFeature[:geometryObject][:type], 'class' => 'h5')
40
40
  @html.div(:class => 'block') do
41
41
  geometryClass.writeHtml(hFeature[:geometryObject])
42
42
  end
@@ -46,7 +46,7 @@ module ADIWG
46
46
  # feature - user bounding box
47
47
  unless hFeature[:bbox].empty?
48
48
  @html.div do
49
- @html.div('User Provided Bounding Box', 'class' => 'h5')
49
+ @html.h5('User Provided Bounding Box', 'class' => 'h5')
50
50
  @html.div(:class => 'block') do
51
51
  bbox = {}
52
52
  bbox[:westLongitude] = hFeature[:bbox][0]
@@ -61,7 +61,7 @@ module ADIWG
61
61
  # feature - computed bounding box
62
62
  unless hFeature[:computedBbox].empty?
63
63
  @html.div do
64
- @html.div('Computed Bounding Box', 'class' => 'h5')
64
+ @html.h5('Computed Bounding Box', 'class' => 'h5')
65
65
  @html.div(:class => 'block') do
66
66
  boxClass.writeHtml(hFeature[:computedBbox])
67
67
  end
@@ -71,7 +71,7 @@ module ADIWG
71
71
  # feature - properties
72
72
  unless hFeature[:properties].empty?
73
73
  @html.div do
74
- @html.div('Properties', 'class' => 'h5')
74
+ @html.h5('Properties', 'class' => 'h5')
75
75
  @html.div(:class => 'block') do
76
76
  propertyClass.writeHtml(hFeature[:properties])
77
77
  end
@@ -81,7 +81,7 @@ module ADIWG
81
81
  # feature - native GeoJson
82
82
  unless hFeature[:nativeGeoJson].empty?
83
83
  @html.div do
84
- @html.div('GeoJson', 'class' => 'h5')
84
+ @html.h5('GeoJson', 'class' => 'h5')
85
85
  @html.div(:class => 'block') do
86
86
  @html.text!(hFeature[:nativeGeoJson].to_json)
87
87
  end
@@ -31,7 +31,7 @@ module ADIWG
31
31
  unless feature[:id].nil?
32
32
  title += ': '+feature[:id].to_s
33
33
  end
34
- @html.div(title, 'class' => 'h5')
34
+ @html.h5(title, 'class' => 'h5')
35
35
  @html.div(:class => 'block') do
36
36
  featureClass.writeHtml(feature)
37
37
  end
@@ -41,7 +41,7 @@ module ADIWG
41
41
  # feature collection - user bounding box
42
42
  unless hCollection[:bbox].empty?
43
43
  @html.div do
44
- @html.div('User Provided Bounding Box', 'class' => 'h5')
44
+ @html.h5('User Provided Bounding Box', 'class' => 'h5')
45
45
  @html.div(:class => 'block') do
46
46
  bbox = {}
47
47
  bbox[:westLongitude] = hCollection[:bbox][0]
@@ -56,7 +56,7 @@ module ADIWG
56
56
  # feature collection - computed bounding box
57
57
  unless hCollection[:computedBbox].empty?
58
58
  @html.div do
59
- @html.div('Computed Bounding Box', 'class' => 'h5')
59
+ @html.h5('Computed Bounding Box', 'class' => 'h5')
60
60
  @html.div(:class => 'block') do
61
61
  boxClass.writeHtml(hCollection[:computedBbox])
62
62
  end
@@ -66,7 +66,7 @@ module ADIWG
66
66
  # feature collection - native GeoJson
67
67
  unless hCollection[:nativeGeoJson].empty?
68
68
  @html.div do
69
- @html.div('GeoJson', 'class' => 'h5')
69
+ @html.h5('GeoJson', 'class' => 'h5')
70
70
  @html.div(:class => 'block') do
71
71
  @html.text!(hCollection[:nativeGeoJson].to_json)
72
72
  end
@@ -40,7 +40,7 @@ module ADIWG
40
40
  # feature properties - identifier [] {identifier}
41
41
  hProperty[:identifiers].each do |hIdentifier|
42
42
  @html.div do
43
- @html.div('Identifier', 'class' => 'h5')
43
+ @html.h5('Identifier', 'class' => 'h5')
44
44
  @html.div(:class => 'block') do
45
45
  identifierClass.writeHtml(hIdentifier)
46
46
  end
@@ -28,7 +28,7 @@ module ADIWG
28
28
  # resource format - format specification {citation}
29
29
  unless hFormat[:formatSpecification].empty?
30
30
  @html.div do
31
- @html.div(hFormat[:formatSpecification][:title], {'class' => 'h5'})
31
+ @html.h5(hFormat[:formatSpecification][:title], {'class' => 'h5'})
32
32
  @html.div(:class => 'block') do
33
33
  citationClass.writeHtml(hFormat[:formatSpecification])
34
34
  end
@@ -44,7 +44,7 @@ module ADIWG
44
44
  # funding - allocations [] {allocation}
45
45
  hFunding[:allocations].each do |hAllocation|
46
46
  @html.div do
47
- @html.div('Allocation', {'class' => 'h5'})
47
+ @html.h5('Allocation', {'class' => 'h5'})
48
48
  @html.div(:class => 'block') do
49
49
  allocationClass.writeHtml(hAllocation)
50
50
  end
@@ -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.div('Datum Identifier', {'id' => 'datum-identifier', 'class' => 'h5'})
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.div('Ellipsoid Identifier', {'id' => 'ellipsoid-identifier', 'class' => 'h5'})
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.div(hElement[:type], 'class' => 'h5')
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.div('Geometry Collection', 'class' => 'h5')
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.div(title, 'class' => 'h5')
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.div(hElement[:type], 'class' => 'h5')
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.div('Elements', 'class' => 'h5')
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.div('User Provided Bounding Box', 'class' => 'h5')
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.div('Computed Bounding Box', 'class' => 'h5')
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.div('GeoJson', 'class' => 'h5')
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.div('Age Reference', {'class' => 'h5'})
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.div(hObject[:type], 'class' => 'h5')
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.div('User Provided Bounding Box', 'class' => 'h5')
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.div('Computed Bounding Box', 'class' => 'h5')
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.div('GeoJson', 'class' => 'h5')
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.div('Coordinates', 'class' => 'h5')
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.div('GeoJson', 'class' => 'h5')
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.div('Scope ', 'class' => 'h5')
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.div('Grid Information ', 'class' => 'h5')
40
+ @html.h5('Grid Information ', 'class' => 'h5')
41
41
  @html.div(:class => 'block') do
42
42
  gridClass.writeHtml(hGeorectified[:gridRepresentation])
43
43
  end
@@ -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.div('Scope ', 'class' => 'h5')
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.div('Grid Information ', 'class' => 'h5')
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.div('Parameter Citation ', 'class' => 'h5')
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.div('Online Link ', {'class' => 'h5'})
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.div('Constraint', {'class' => 'h5'})
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.div('Scope ', 'class' => 'h5')
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.div('Dimension '+dimensionCount.to_s, 'class' => 'h5')
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.div('Authority', {'id' => 'metadata-identifier', 'class' => 'h5'})
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.div('Image Quality Code', {'class' => 'h5'})
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,32 +30,30 @@ module ADIWG
30
30
  if type.nil?
31
31
  type = 'Unclassified'
32
32
  end
33
- @html.div(type, {'class' => 'h5'})
33
+ @html.h5(type, {'class' => 'h5'})
34
34
  @html.div(:class => 'block') do
35
-
36
- # keywords
37
- @html.ul do
38
- hKeyword[:keywords].each do |hKeyword|
39
- unless hKeyword[:keyword].nil?
40
- keyword = hKeyword[:keyword]
41
- unless hKeyword[:keywordId].nil?
42
- keyword += ' (ID: ' + hKeyword[:keywordId].to_s + ')'
43
- end
44
- @html.li(keyword)
45
- end
46
- end
47
- end
48
-
35
+
49
36
  # thesaurus
50
37
  unless hKeyword[:thesaurus].empty?
51
38
  @html.div do
52
- @html.div('Thesaurus', {'class' => 'h5'})
39
+ @html.h5('Thesaurus', {'class' => 'h5'})
53
40
  @html.div(:class => 'block') do
54
41
  citationClass.writeHtml(hKeyword[:thesaurus])
55
42
  end
56
43
  end
57
44
  end
58
45
 
46
+ # keywords
47
+ hKeyword[:keywords].each do |hKeyword|
48
+ unless hKeyword[:keyword].nil?
49
+ keyword = hKeyword[:keyword]
50
+ unless hKeyword[:keywordId].nil?
51
+ keyword += ' (ID: ' + hKeyword[:keywordId].to_s + ')'
52
+ end
53
+ @html.div('Keyword:' + keyword)
54
+ end
55
+ end
56
+
59
57
  end
60
58
  end
61
59
 
@@ -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.div('Metadata Identifier', {'id' => 'metadataInfo-identifier', 'class' => 'h3'})
53
+ @html.h3('Metadata Identifier', {'id' => 'metadataInfo-identifier', 'class' => 'h3', 'style' => 'font-style: italic'})
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.div('Parent Metadata', {'id' => 'metadataInfo-parent', 'class' => 'h3'})
63
+ @html.h3('Parent Metadata', {'id' => 'metadataInfo-parent', 'class' => 'h3', 'style' => 'font-style: italic'})
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.div('Metadata Locales', {'id' => 'metadataInfo-locale', 'class' => 'h3'})
73
+ @html.h3('Metadata Locales', {'id' => 'metadataInfo-locale', 'class' => 'h3', 'style' => 'font-style: italic'})
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.div('Metadata Contacts', {'id' => 'metadataInfo-contacts', 'class' => 'h3'})
103
+ @html.h3('Metadata Contacts', {'id' => 'metadataInfo-contacts', 'class' => 'h3', 'style' => 'font-style: italic'})
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.div('Metadata Dates', {'id' => 'metadataInfo-dates', 'class' => 'h3'})
120
+ @html.h3('Metadata Dates', {'id' => 'metadataInfo-dates', 'class' => 'h3', 'style' => 'font-style: italic'})
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.div('Metadata Online Resource', {'id' => 'metadataInfo-links', 'class' => 'h3'})
134
+ @html.h3('Metadata Online Resource', {'id' => 'metadataInfo-links', 'class' => 'h3', 'style' => 'font-style: italic'})
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.div('Metadata Constraints', {'id' => 'metadataInfo-constraint', 'class' => 'h3'})
151
+ @html.h3('Metadata Constraints', {'id' => 'metadataInfo-constraint', 'class' => 'h3', 'style' => 'font-style: italic'})
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.div('Metadata Maintenance', {'id' => 'metadataInfo-maintenance', 'class' => 'h3'})
168
+ @html.h3('Metadata Maintenance', {'id' => 'metadataInfo-maintenance', 'class' => 'h3', 'style' => 'font-style: italic'})
169
169
  @html.div(:class => 'block') do
170
170
  maintClass.writeHtml(hMetaInfo[:metadataMaintenance])
171
171
  end
@@ -175,13 +175,14 @@ module ADIWG
175
175
  # metadataInfo - alternate metadata references [] {citation}
176
176
  unless hMetaInfo[:alternateMetadataReferences].empty?
177
177
  @html.div do
178
- @html.div('Alternate Metadata Citations', {'id' => 'metadataInfo-alternate', 'class' => 'h3'})
178
+ @html.h3('Alternate Metadata Citations', {'id' => 'metadataInfo-alternate', 'class' => 'h3', 'style' => 'font-style: italic'})
179
179
  @html.div(:class => 'block') do
180
180
  hMetaInfo[:alternateMetadataReferences].each do |hCitation|
181
181
  @html.div do
182
182
  @html.div(hCitation[:title], 'class' => 'h5')
183
183
  @html.div(:class => 'block') do
184
184
  citationClass.writeHtml(hCitation)
185
+ @html.br
185
186
  end
186
187
  end
187
188
  end
@@ -40,7 +40,7 @@ module ADIWG
40
40
  # metadata repository - citation
41
41
  unless hRepository[:citation].empty?
42
42
  @html.div do
43
- @html.div('Citation', {'class' => 'h5'})
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.div('Scope', {'class' => 'h5'})
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.div('Identifier', {'class' => 'h5'})
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.div('Documentation', {'class' => 'h5'})
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.div('Algorithm', {'class' => 'h5'})
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[:rangeElements].each do |hRangeElement|
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