adiwg-mdtranslator 2.18.2 → 2.19.0.pre.beta.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (249) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/test.yml +14 -0
  3. data/.gitignore +2 -1
  4. data/Gemfile.lock +86 -0
  5. data/Rakefile +1 -1
  6. data/adiwg-mdtranslator.gemspec +6 -6
  7. data/lib/adiwg/mdtranslator/internal/internal_metadata_obj.rb +27 -11
  8. data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_dataQuality.rb +149 -0
  9. data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_fgdc.rb +2 -2
  10. data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_conformanceResult.rb +1 -1
  11. data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_coverageResult.rb +8 -7
  12. data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_dataQuality.rb +4 -4
  13. data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_dataQualityReport.rb +8 -16
  14. data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_evaluationMethod.rb +1 -1
  15. data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_legalConstraint.rb +8 -8
  16. data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_qualityMeasure.rb +34 -0
  17. data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_qualityResultFile.rb +72 -0
  18. data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_rangeElementDescription.rb +2 -2
  19. data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_responsibleParty.rb +1 -1
  20. data/lib/adiwg/mdtranslator/readers/sbJson/modules/module_contact.rb +13 -0
  21. data/lib/adiwg/mdtranslator/version.rb +1 -1
  22. data/lib/adiwg/mdtranslator/writers/fgdc/classes/{class_quality.rb → class_dataQuality.rb} +14 -10
  23. data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_fgdc.rb +3 -3
  24. data/lib/adiwg/mdtranslator/writers/html/sections/html_body.rb +5 -1
  25. data/lib/adiwg/mdtranslator/writers/html/sections/html_contact.rb +32 -0
  26. data/lib/adiwg/mdtranslator/writers/html/sections/html_dataQuality.rb +39 -18
  27. data/lib/adiwg/mdtranslator/writers/html/sections/html_dataQualityReport.rb +385 -0
  28. data/lib/adiwg/mdtranslator/writers/html/sections/html_rangeElementDescription.rb +2 -2
  29. data/lib/adiwg/mdtranslator/writers/html/sections/html_resultFile.rb +60 -0
  30. data/lib/adiwg/mdtranslator/writers/html/sections/html_scope.rb +18 -10
  31. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_additionalDocument.rb +3 -3
  32. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_address.rb +4 -4
  33. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_algorithm.rb +4 -4
  34. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_associatedResource.rb +4 -4
  35. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_attribute.rb +4 -4
  36. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_attributeGroup.rb +4 -4
  37. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_baseUnit.rb +2 -2
  38. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_boundingBox.rb +4 -4
  39. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_browseGraphic.rb +4 -4
  40. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_citation.rb +4 -4
  41. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_codelist.rb +2 -2
  42. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_constraint.rb +4 -4
  43. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_constraintCommon.rb +2 -2
  44. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_contact.rb +3 -3
  45. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_conventionalUnit.rb +2 -2
  46. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_coverageDescription.rb +3 -3
  47. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_dataIdentification.rb +5 -5
  48. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_dataQuality.rb +9 -2
  49. data/lib/adiwg/mdtranslator/writers/iso19115_3/classes/class_dataQualityReport.rb +269 -0
  50. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_date.rb +4 -4
  51. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_definitionUnit.rb +2 -2
  52. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_derivedUnit.rb +2 -2
  53. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_dimension.rb +4 -4
  54. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_distribution.rb +2 -2
  55. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_distributor.rb +4 -4
  56. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_email.rb +2 -2
  57. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_extent.rb +2 -2
  58. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_feature.rb +4 -4
  59. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_featureCatalog.rb +3 -3
  60. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_featureCollection.rb +2 -2
  61. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_featureProperties.rb +2 -2
  62. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_format.rb +4 -4
  63. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_fraction.rb +4 -4
  64. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_gcoDateTime.rb +2 -2
  65. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_geographicElement.rb +4 -4
  66. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_geographicExtent.rb +2 -2
  67. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_geometricObjects.rb +3 -3
  68. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_geometryCollection.rb +4 -4
  69. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_georectified.rb +4 -4
  70. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_georeferenceable.rb +4 -4
  71. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_gmlIdentifier.rb +2 -2
  72. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_grid.rb +4 -4
  73. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_gridRepresentation.rb +1 -1
  74. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_identifier.rb +4 -4
  75. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_imageDescription.rb +2 -2
  76. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_individual.rb +4 -4
  77. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_keyword.rb +4 -4
  78. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_leProcessStep.rb +4 -4
  79. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_leSource.rb +2 -2
  80. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_legalConstraints.rb +3 -3
  81. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_liProcessStep.rb +4 -4
  82. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_liSource.rb +2 -2
  83. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_lineString.rb +2 -2
  84. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_lineage.rb +2 -2
  85. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_locale.rb +4 -4
  86. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_maintenance.rb +4 -4
  87. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_mdBand.rb +2 -2
  88. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_mdMetadata.rb +7 -7
  89. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_measure.rb +4 -4
  90. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_medium.rb +2 -2
  91. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_miBand.rb +2 -2
  92. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_multiLine.rb +2 -2
  93. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_multiPoint.rb +2 -2
  94. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_multiPolygon.rb +2 -2
  95. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_nominalResolution.rb +4 -4
  96. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_onlineResource.rb +4 -4
  97. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_orderProcess.rb +2 -2
  98. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_organization.rb +4 -4
  99. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_partyIdentifier.rb +4 -4
  100. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_phone.rb +3 -3
  101. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_point.rb +2 -2
  102. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_polygon.rb +2 -2
  103. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_processReport.rb +4 -4
  104. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_processStep.rb +2 -2
  105. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_processing.rb +4 -4
  106. data/lib/adiwg/mdtranslator/writers/iso19115_3/classes/class_qualityResultFile.rb +55 -0
  107. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_rangeDimension.rb +4 -4
  108. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_rangeElementDescription.rb +5 -5
  109. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_referenceSystem.rb +3 -3
  110. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_releasability.rb +2 -2
  111. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_resolution.rb +2 -2
  112. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_responsibility.rb +4 -4
  113. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_sampleDimension.rb +4 -4
  114. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_scope.rb +4 -4
  115. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_scopeDescription.rb +2 -2
  116. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_securityConstraints.rb +4 -4
  117. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_series.rb +2 -2
  118. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_source.rb +2 -2
  119. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_spatialRepresentation.rb +2 -2
  120. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_temporalExtent.rb +2 -2
  121. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_timeInstant.rb +2 -2
  122. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_timePeriod.rb +2 -2
  123. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_transferOptions.rb +2 -2
  124. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_unitsOfMeasure.rb +2 -2
  125. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_usage.rb +4 -4
  126. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_useConstraints.rb +2 -2
  127. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_vectorRepresentation.rb +2 -2
  128. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_verticalExtent.rb +4 -4
  129. data/lib/adiwg/mdtranslator/writers/{iso19115_1/iso19115_1_writer.rb → iso19115_3/iso19115_3_writer.rb} +10 -10
  130. data/lib/adiwg/mdtranslator/writers/{iso19115_1/iso19115_1_writer_messages_eng.yml → iso19115_3/iso19115_3_writer_messages_eng.yml} +1 -1
  131. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/readme.md +3 -3
  132. data/lib/adiwg/mdtranslator/writers/iso19115_3/version.rb +12 -0
  133. data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_allocation.rb +1 -1
  134. data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_coverageResult.rb +30 -0
  135. data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_dataQuality.rb +3 -1
  136. data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_dataQualityReport.rb +12 -10
  137. data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_descriptiveResult.rb +3 -3
  138. data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_funding.rb +2 -2
  139. data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_legalConstraint.rb +1 -1
  140. data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_metadata.rb +1 -1
  141. data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_qualityMeasure.rb +4 -3
  142. data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_qualityResultFile.rb +23 -0
  143. data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_standaloneQualityReport.rb +31 -0
  144. data/lib/adiwg/mdtranslator/writers/sbJson/sections/sbJson_contact.rb +10 -0
  145. data/lib/adiwg/mdtranslator/writers/simple_html/readme.md +19 -0
  146. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_additionalDocumentation.rb +49 -0
  147. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_algorithm.rb +48 -0
  148. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_allocation.rb +114 -0
  149. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_associatedResource.rb +73 -0
  150. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_attribute.rb +201 -0
  151. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_attributeGroup.rb +51 -0
  152. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_bearingDistanceResolution.rb +68 -0
  153. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_body.rb +319 -0
  154. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_boundingBox.rb +69 -0
  155. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_citation.rb +165 -0
  156. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_classedData.rb +50 -0
  157. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_classedDataItem.rb +50 -0
  158. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_constraint.rb +118 -0
  159. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_contact.rb +234 -0
  160. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_coordinateResolution.rb +47 -0
  161. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_coverageInfo.rb +81 -0
  162. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_dataDictionary.rb +126 -0
  163. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_dataQuality.rb +79 -0
  164. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_dataQualityReport.rb +385 -0
  165. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_date.rb +42 -0
  166. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_datetime.rb +42 -0
  167. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_dimension.rb +69 -0
  168. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_distribution.rb +58 -0
  169. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_distributor.rb +66 -0
  170. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_document.rb +63 -0
  171. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_domain.rb +108 -0
  172. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_domainItem.rb +64 -0
  173. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_duration.rb +68 -0
  174. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_entity.rb +169 -0
  175. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_entityAttribute.rb +179 -0
  176. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_entityForeignKey.rb +55 -0
  177. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_entityIndex.rb +50 -0
  178. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_extent.rb +75 -0
  179. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_feature.rb +97 -0
  180. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_featureCollection.rb +82 -0
  181. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_featureProperties.rb +71 -0
  182. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_format.rb +66 -0
  183. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_funding.rb +60 -0
  184. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_geodeticParameters.rb +71 -0
  185. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_geographicElement.rb +79 -0
  186. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_geographicExtent.rb +110 -0
  187. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_geographicResolution.rb +47 -0
  188. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_geologicAge.rb +71 -0
  189. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_geometryCollection.rb +78 -0
  190. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_geometryObject.rb +46 -0
  191. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_georectifiedRepresentation.rb +105 -0
  192. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_georeferenceableRepresentation.rb +91 -0
  193. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_graphic.rb +75 -0
  194. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_gridRepresentation.rb +76 -0
  195. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_head.rb +55 -0
  196. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_identifier.rb +81 -0
  197. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_imageInfo.rb +102 -0
  198. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_inlineCss.css +237 -0
  199. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_keyword.rb +68 -0
  200. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_legalConstraint.rb +49 -0
  201. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_lineage.rb +87 -0
  202. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_locale.rb +47 -0
  203. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_maintenance.rb +96 -0
  204. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_measure.rb +47 -0
  205. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_medium.rb +90 -0
  206. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_metadataInfo.rb +198 -0
  207. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_metadataRepository.rb +56 -0
  208. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_nominalResolution.rb +51 -0
  209. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_obliqueLinePoint.rb +37 -0
  210. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_onlineResource.rb +74 -0
  211. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_orderProcess.rb +62 -0
  212. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_processReport.rb +47 -0
  213. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_processStep.rb +171 -0
  214. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_processing.rb +89 -0
  215. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_projectionParameters.rb +261 -0
  216. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_rangeElementDescription.rb +40 -0
  217. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_referenceSystemParameters.rb +65 -0
  218. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_releasability.rb +63 -0
  219. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_resourceFormat.rb +40 -0
  220. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_resourceInfo.rb +485 -0
  221. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_resourceType.rb +38 -0
  222. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_responsibility.rb +81 -0
  223. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_resultFile.rb +60 -0
  224. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_scope.rb +60 -0
  225. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_scopeDescription.rb +54 -0
  226. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_securityConstraint.rb +57 -0
  227. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_source.rb +155 -0
  228. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_spatialReference.rb +70 -0
  229. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_spatialRepresentation.rb +77 -0
  230. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_spatialResolution.rb +95 -0
  231. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_taxonomy.rb +156 -0
  232. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_taxonomyClass.rb +75 -0
  233. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_temporalExtent.rb +65 -0
  234. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_timeInstant.rb +82 -0
  235. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_timeInterval.rb +40 -0
  236. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_timePeriod.rb +128 -0
  237. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_transferOption.rb +94 -0
  238. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_usage.rb +118 -0
  239. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_vectorObject.rb +40 -0
  240. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_vectorRepresentation.rb +62 -0
  241. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_verticalDatumParameters.rb +70 -0
  242. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_verticalExtent.rb +62 -0
  243. data/lib/adiwg/mdtranslator/writers/simple_html/simple_html_writer.rb +44 -0
  244. data/lib/adiwg/mdtranslator/writers/simple_html/version.rb +19 -0
  245. data/lib/adiwg/mdtranslator_cli.rb +2 -2
  246. metadata +241 -125
  247. data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_quality.rb +0 -181
  248. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_dataQualityReport.rb +0 -95
  249. data/lib/adiwg/mdtranslator/writers/iso19115_1/version.rb +0 -15
@@ -0,0 +1,90 @@
1
+ # HTML writer
2
+ # medium
3
+
4
+ # History:
5
+ # Stan Smith 2017-04-04 refactored for mdTranslator 2.0
6
+ # Stan Smith 2015-09-21 added medium capacity
7
+ # Stan Smith 2015-03-27 original script
8
+
9
+ require_relative 'html_citation'
10
+ require_relative 'html_identifier'
11
+
12
+ module ADIWG
13
+ module Mdtranslator
14
+ module Writers
15
+ module Simple_html
16
+
17
+ class Html_Medium
18
+
19
+ def initialize(html)
20
+ @html = html
21
+ end
22
+
23
+ def writeHtml(hMedium)
24
+
25
+ # classes used
26
+ citationClass = Html_Citation.new(@html)
27
+ identifierClass = Html_Identifier.new(@html)
28
+
29
+ # medium - specification {citation}
30
+ unless hMedium[:mediumSpecification].empty?
31
+ @html.div do
32
+ @html.div('Medium Specification', {'class' => 'h5'})
33
+ @html.div(:class => 'block') do
34
+ citationClass.writeHtml(hMedium[:mediumSpecification])
35
+ end
36
+ end
37
+ end
38
+
39
+ # medium - density
40
+ unless hMedium[:density].nil?
41
+ @html.em('Density')
42
+ @html.text!(hMedium[:density].to_s)
43
+ @html.br
44
+ end
45
+
46
+ # medium - units
47
+ unless hMedium[:units].nil?
48
+ @html.em('Units')
49
+ @html.text!(hMedium[:units])
50
+ @html.br
51
+ end
52
+
53
+ # medium - number of volumes
54
+ unless hMedium[:numberOfVolumes].nil?
55
+ @html.em('Number of Volumes in Distribution Package')
56
+ @html.text!(hMedium[:numberOfVolumes].to_s)
57
+ @html.br
58
+ end
59
+
60
+ # medium - format []
61
+ hMedium[:mediumFormat].each do |format|
62
+ @html.em('Medium Format: ')
63
+ @html.text!(format)
64
+ @html.br
65
+ end
66
+
67
+ # medium - note
68
+ unless hMedium[:note].nil?
69
+ @html.em('Note')
70
+ @html.text!(hMedium[:note])
71
+ @html.br
72
+ end
73
+
74
+ # medium - identifier {identifier}
75
+ unless hMedium[:identifier].empty?
76
+ @html.div do
77
+ @html.div('Identifier for the Medium', {'class' => 'h5'})
78
+ @html.div(:class => 'block') do
79
+ identifierClass.writeHtml(hMedium[:identifier])
80
+ end
81
+ end
82
+ end
83
+
84
+ end # writeHtml
85
+ end # Html_Medium
86
+
87
+ end
88
+ end
89
+ end
90
+ end
@@ -0,0 +1,198 @@
1
+ # HTML writer
2
+ # metadata information section
3
+
4
+ # History:
5
+ # Stan Smith 2018-01-27 add metadata constraints
6
+ # Stan Smith 2017-03-23 refactored for mdTranslator 2.0
7
+ # Stan Smith 2015-07-16 refactored to remove global namespace $HtmlNS
8
+ # Stan Smith 2016-06-12 added metadata character set
9
+ # Stan Smith 2015-03-24 original script
10
+
11
+ require_relative 'html_identifier'
12
+ require_relative 'html_citation'
13
+ require_relative 'html_locale'
14
+ require_relative 'html_responsibility'
15
+ require_relative 'html_date'
16
+ require_relative 'html_onlineResource'
17
+ require_relative 'html_constraint'
18
+ require_relative 'html_maintenance'
19
+
20
+ module ADIWG
21
+ module Mdtranslator
22
+ module Writers
23
+ module Simple_html
24
+
25
+ class Html_MetadataInfo
26
+
27
+ def initialize(html)
28
+ @html = html
29
+ end
30
+
31
+ def writeHtml(hMetaInfo)
32
+
33
+ # classes used
34
+ identifierClass = Html_Identifier.new(@html)
35
+ citationClass = Html_Citation.new(@html)
36
+ localeClass = Html_Locale.new(@html)
37
+ responsibilityClass = Html_Responsibility.new(@html)
38
+ dateClass = Html_Date.new(@html)
39
+ onlineClass = Html_OnlineResource.new(@html)
40
+ constraintClass = Html_Constraint.new(@html)
41
+ maintClass = Html_Maintenance.new(@html)
42
+
43
+ # metadataInfo - metadata status
44
+ unless hMetaInfo[:metadataStatus].nil?
45
+ @html.em('Metadata Status: ')
46
+ @html.text!(hMetaInfo[:metadataStatus])
47
+ @html.br
48
+ end
49
+
50
+ # metadataInfo - metadata identifier {identifier}
51
+ unless hMetaInfo[:metadataIdentifier].empty?
52
+ @html.div do
53
+ @html.h3('Metadata Identifier', {'id' => 'metadataInfo-identifier', 'class' => 'h3'})
54
+ @html.div(:class => 'block') do
55
+ identifierClass.writeHtml(hMetaInfo[:metadataIdentifier])
56
+ end
57
+ end
58
+ end
59
+
60
+ # metadataInfo - parent metadata {citation}
61
+ unless hMetaInfo[:parentMetadata].empty?
62
+ @html.div do
63
+ @html.h3('Parent Metadata', {'id' => 'metadataInfo-parent', 'class' => 'h3'})
64
+ @html.div(:class => 'block') do
65
+ citationClass.writeHtml(hMetaInfo[:parentMetadata])
66
+ end
67
+ end
68
+ end
69
+
70
+ # metadataInfo - metadata locales
71
+ unless hMetaInfo[:defaultMetadataLocale].empty? && hMetaInfo[:otherMetadataLocales].empty?
72
+ @html.div do
73
+ @html.h3('Metadata Locales', {'id' => 'metadataInfo-locale', 'class' => 'h3'})
74
+ @html.div(:class => 'block') do
75
+
76
+ # default metadata locales {locale}
77
+ unless hMetaInfo[:defaultMetadataLocale].empty?
78
+ @html.div do
79
+ @html.div('Default Locale', {'class' => 'h5'})
80
+ @html.div(:class => 'block') do
81
+ localeClass.writeHtml(hMetaInfo[:defaultMetadataLocale])
82
+ end
83
+ end
84
+ end
85
+
86
+ # other metadata locales [] {locale}
87
+ hMetaInfo[:otherMetadataLocales].each do |hLocale|
88
+ @html.div do
89
+ @html.div('Other Locale', {'class' => 'h5'})
90
+ @html.div(:class => 'block') do
91
+ localeClass.writeHtml(hLocale)
92
+ end
93
+ end
94
+ end
95
+
96
+ end
97
+ end
98
+ end
99
+
100
+ # metadataInfo - contacts [] {responsibility}
101
+ unless hMetaInfo[:metadataContacts].empty?
102
+ @html.div do
103
+ @html.h3('Metadata Contacts', {'id' => 'metadataInfo-contacts', 'class' => 'h3'})
104
+ @html.div(:class => 'block') do
105
+ hMetaInfo[:metadataContacts].each do |hResponsibility|
106
+ @html.div do
107
+ @html.div(hResponsibility[:roleName], 'class' => 'h5')
108
+ @html.div(:class => 'block') do
109
+ responsibilityClass.writeHtml(hResponsibility)
110
+ end
111
+ end
112
+ end
113
+ end
114
+ end
115
+ end
116
+
117
+ # metadataInfo - dates [] {date}
118
+ unless hMetaInfo[:metadataDates].empty?
119
+ @html.div do
120
+ @html.h3('Metadata Dates', {'id' => 'metadataInfo-dates', 'class' => 'h3'})
121
+ @html.div(:class => 'block') do
122
+ hMetaInfo[:metadataDates].each do |hDate|
123
+ @html.em('Date: ')
124
+ dateClass.writeHtml(hDate)
125
+ @html.br
126
+ end
127
+ end
128
+ end
129
+ end
130
+
131
+ # metadataInfo - linkages [] {onlineResource}
132
+ unless hMetaInfo[:metadataLinkages].empty?
133
+ @html.div do
134
+ @html.h3('Metadata Online Resource', {'id' => 'metadataInfo-links', 'class' => 'h3'})
135
+ @html.div(:class => 'block') do
136
+ hMetaInfo[:metadataLinkages].each do |hOnline|
137
+ @html.div do
138
+ @html.div('Online Resource', {'class' => 'h5'})
139
+ @html.div(:class => 'block') do
140
+ onlineClass.writeHtml(hOnline)
141
+ end
142
+ end
143
+ end
144
+ end
145
+ end
146
+ end
147
+
148
+ # metadataInfo - constraints [] {constraint}
149
+ unless hMetaInfo[:metadataConstraints].empty?
150
+ @html.div do
151
+ @html.h3('Metadata Constraints', {'id' => 'metadataInfo-constraint', 'class' => 'h3'})
152
+ @html.div(:class => 'block') do
153
+ hMetaInfo[:metadataConstraints].each do |hConstraint|
154
+ @html.div do
155
+ @html.div(hConstraint[:type].capitalize+' Constraint', {'class' => 'h5'})
156
+ @html.div(:class => 'block') do
157
+ constraintClass.writeHtml(hConstraint)
158
+ end
159
+ end
160
+ end
161
+ end
162
+ end
163
+ end
164
+
165
+ # metadataInfo - maintenance {maintenance}
166
+ unless hMetaInfo[:metadataMaintenance].empty?
167
+ @html.div do
168
+ @html.h3('Metadata Maintenance', {'id' => 'metadataInfo-maintenance', 'class' => 'h3'})
169
+ @html.div(:class => 'block') do
170
+ maintClass.writeHtml(hMetaInfo[:metadataMaintenance])
171
+ end
172
+ end
173
+ end
174
+
175
+ # metadataInfo - alternate metadata references [] {citation}
176
+ unless hMetaInfo[:alternateMetadataReferences].empty?
177
+ @html.div do
178
+ @html.h3('Alternate Metadata Citations', {'id' => 'metadataInfo-alternate', 'class' => 'h3'})
179
+ @html.div(:class => 'block') do
180
+ hMetaInfo[:alternateMetadataReferences].each do |hCitation|
181
+ @html.div do
182
+ @html.div(hCitation[:title], 'class' => 'h5')
183
+ @html.div(:class => 'block') do
184
+ citationClass.writeHtml(hCitation)
185
+ end
186
+ end
187
+ end
188
+ end
189
+ end
190
+ end
191
+
192
+ end # writeHtml
193
+ end # Html_MetadataInfo
194
+
195
+ end
196
+ end
197
+ end
198
+ end
@@ -0,0 +1,56 @@
1
+ # HTML writer
2
+ # metadata repository
3
+
4
+ # History:
5
+ # Stan Smith 2017-06-06 added metadata repository citation
6
+ # Stan Smith 2017-04-05 original script
7
+
8
+ require_relative 'html_citation'
9
+
10
+ module ADIWG
11
+ module Mdtranslator
12
+ module Writers
13
+ module Simple_html
14
+
15
+ class Html_Repository
16
+
17
+ def initialize(html)
18
+ @html = html
19
+ end
20
+
21
+ def writeHtml(hRepository)
22
+
23
+ # classes used
24
+ citationClass = Html_Citation.new(@html)
25
+
26
+ # metadata repository - repository
27
+ unless hRepository[:repository].nil?
28
+ @html.em('Repository Name: ')
29
+ @html.text!(hRepository[:repository])
30
+ @html.br
31
+ end
32
+
33
+ # metadata repository - metadata standard
34
+ unless hRepository[:metadataStandard].nil?
35
+ @html.em('Metadata Standard: ')
36
+ @html.text!(hRepository[:metadataStandard])
37
+ @html.br
38
+ end
39
+
40
+ # metadata repository - citation
41
+ unless hRepository[:citation].empty?
42
+ @html.div do
43
+ @html.h5('Citation', {'class' => 'h5'})
44
+ @html.div(:class => 'block') do
45
+ citationClass.writeHtml(hRepository[:citation])
46
+ end
47
+ end
48
+ end
49
+
50
+ end # writeHtml
51
+ end # Html_Repository
52
+
53
+ end
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,51 @@
1
+ # HTML writer
2
+ # nominal resolution
3
+
4
+ # History:
5
+ # Stan Smith 2019-09-24 original script
6
+
7
+ require_relative 'html_measure'
8
+
9
+ module ADIWG
10
+ module Mdtranslator
11
+ module Writers
12
+ module Simple_html
13
+
14
+ class Html_NominalResolution
15
+
16
+ def initialize(html)
17
+ @html = html
18
+ end
19
+
20
+ def writeHtml(hResolution)
21
+
22
+ # classes used
23
+ measureClass = Html_Measure.new(@html)
24
+
25
+ # nominal resolution - scanning resolution {measure}
26
+ unless hResolution[:scanningResolution].empty?
27
+ @html.div do
28
+ @html.div('Scanning Resolution', {'class' => 'h5'})
29
+ @html.div(:class => 'block') do
30
+ measureClass.writeHtml(hResolution[:scanningResolution])
31
+ end
32
+ end
33
+ end
34
+
35
+ # nominal resolution - ground resolution {measure}
36
+ unless hResolution[:groundResolution].empty?
37
+ @html.div do
38
+ @html.div('Ground Resolution', {'class' => 'h5'})
39
+ @html.div(:class => 'block') do
40
+ measureClass.writeHtml(hResolution[:groundResolution])
41
+ end
42
+ end
43
+ end
44
+
45
+ end # writeHtml
46
+ end # Html_NominalResolution
47
+
48
+ end
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,37 @@
1
+ # HTML writer
2
+ # spatial reference system oblique line point
3
+
4
+ # History:
5
+ # Stan Smith 2017-10-24 original script
6
+
7
+ module ADIWG
8
+ module Mdtranslator
9
+ module Writers
10
+ module Simple_html
11
+
12
+ class Html_ObliqueLinePoint
13
+
14
+ def writeHtml(hLinePoint)
15
+
16
+ long = 'missing'
17
+ lat = 'missing'
18
+
19
+ # oblique line point - point latitude
20
+ unless hLinePoint[:obliqueLineLatitude].nil?
21
+ long = hLinePoint[:obliqueLineLatitude].to_s
22
+ end
23
+
24
+ # oblique line point - point longitude
25
+ unless hLinePoint[:obliqueLineLongitude].nil?
26
+ lat = hLinePoint[:obliqueLineLongitude].to_s
27
+ end
28
+
29
+ return '( Longitude: ' + long + ', Latitude: ' + lat + ' )'
30
+
31
+ end # writeHtml
32
+ end # Html_ObliqueLinePoint
33
+
34
+ end
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,74 @@
1
+ # HTML writer
2
+ # online resource
3
+
4
+ # History:
5
+ # Stan Smith 2017-03-24 refactored for mdTranslator 2.0
6
+ # Stan Smith 2015-03-24 original script
7
+
8
+ module ADIWG
9
+ module Mdtranslator
10
+ module Writers
11
+ module Simple_html
12
+
13
+ class Html_OnlineResource
14
+
15
+ def initialize(html)
16
+ @html = html
17
+ end
18
+
19
+ def writeHtml(hOlRes)
20
+
21
+ # online resource - URI
22
+ @html.em('URI: ')
23
+ @html.a(hOlRes[:olResURI], 'href' => hOlRes[:olResURI])
24
+ @html.br
25
+
26
+ # online resource - name
27
+ unless hOlRes[:olResName].nil?
28
+ @html.em('Name: ')
29
+ @html.text!(hOlRes[:olResName])
30
+ @html.br
31
+ end
32
+
33
+ # online resource - description
34
+ unless hOlRes[:olResDesc].nil?
35
+ @html.em('Description: ')
36
+ @html.text!(hOlRes[:olResDesc])
37
+ @html.br
38
+ end
39
+
40
+ # online resource - function
41
+ unless hOlRes[:olResFunction].nil?
42
+ @html.em('Function: ')
43
+ @html.text!(hOlRes[:olResFunction])
44
+ @html.br
45
+ end
46
+
47
+ # online resource - application profile
48
+ unless hOlRes[:olResApplicationProfile].nil?
49
+ @html.em('Application Profile: ')
50
+ @html.text!(hOlRes[:olResApplicationProfile])
51
+ @html.br
52
+ end
53
+
54
+ # online resource - protocol
55
+ unless hOlRes[:olResProtocol].nil?
56
+ @html.em('Protocol: ')
57
+ @html.text!(hOlRes[:olResProtocol])
58
+ @html.br
59
+ end
60
+
61
+ # online resource - protocol request
62
+ unless hOlRes[:olResProtocolRequest].nil?
63
+ @html.em('Protocol Request: ')
64
+ @html.text!(hOlRes[:olResProtocolRequest])
65
+ @html.br
66
+ end
67
+
68
+ end # writeHtml
69
+ end # Html_OnlineResource
70
+
71
+ end
72
+ end
73
+ end
74
+ end
@@ -0,0 +1,62 @@
1
+ # HTML writer
2
+ # order process
3
+
4
+ # History:
5
+ # Stan Smith 2017-04-04 refactored for mdTranslator 2.0
6
+ # Stan Smith 2015-07-16 refactored to remove global namespace $HtmlNS
7
+ # Stan Smith 2015-03-27 original script
8
+
9
+ require_relative 'html_datetime'
10
+
11
+ module ADIWG
12
+ module Mdtranslator
13
+ module Writers
14
+ module Simple_html
15
+
16
+ class Html_OrderProcess
17
+
18
+ def initialize(html)
19
+ @html = html
20
+ end
21
+
22
+ def writeHtml(hOrder)
23
+
24
+ # classes used
25
+ datetimeClass = Html_Datetime.new(@html)
26
+
27
+ # order process - order instructions
28
+ unless hOrder[:orderingInstructions].nil?
29
+ @html.em('Order instructions: ')
30
+ @html.div(:class => 'block') do
31
+ @html.text!(hOrder[:orderingInstructions])
32
+ end
33
+ end
34
+
35
+ # order process - fees
36
+ unless hOrder[:fees].nil?
37
+ @html.em('Fees: ')
38
+ @html.text!(hOrder[:fees])
39
+ @html.br
40
+ end
41
+
42
+ # order process - turnaround
43
+ unless hOrder[:turnaround].nil?
44
+ @html.em('Turnaround: ')
45
+ @html.text!(hOrder[:turnaround])
46
+ @html.br
47
+ end
48
+
49
+ # order process - planned dateTime
50
+ unless hOrder[:plannedAvailability].empty?
51
+ @html.em('Planned Availability: ')
52
+ dateStr = datetimeClass.writeHtml(hOrder[:plannedAvailability])
53
+ @html.text!(dateStr)
54
+ end
55
+
56
+ end # writeHtml
57
+ end # Html_OrderProcess
58
+
59
+ end
60
+ end
61
+ end
62
+ end
@@ -0,0 +1,47 @@
1
+ # HTML writer
2
+ # process step report
3
+
4
+ # History:
5
+ # Stan Smith 2019-09-24 original script
6
+
7
+ module ADIWG
8
+ module Mdtranslator
9
+ module Writers
10
+ module Simple_html
11
+
12
+ class Html_ProcessStepReport
13
+
14
+ def initialize(html)
15
+ @html = html
16
+ end
17
+
18
+ def writeHtml(hReport)
19
+
20
+ # process step report - name
21
+ unless hReport[:name].nil?
22
+ @html.em('Name: ')
23
+ @html.text!(hReport[:name])
24
+ @html.br
25
+ end
26
+
27
+ # process step report - description
28
+ unless hReport[:description].nil?
29
+ @html.em('Description: ')
30
+ @html.text!(hReport[:description])
31
+ @html.br
32
+ end
33
+
34
+ # process step report - file type
35
+ unless hReport[:fileType].nil?
36
+ @html.em('File Type: ')
37
+ @html.text!(hReport[:fileType])
38
+ @html.br
39
+ end
40
+
41
+ end # writeHtml
42
+ end # Html_ProcessStepReport
43
+
44
+ end
45
+ end
46
+ end
47
+ end