adiwg-mdtranslator 2.18.1 → 2.18.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (219) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -1
  3. data/Gemfile.lock +84 -0
  4. data/Rakefile +1 -1
  5. data/adiwg-mdtranslator.gemspec +5 -5
  6. data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_horizontalPlanar.rb +1 -1
  7. data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_spatialDomain.rb +1 -1
  8. data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_distribution.rb +8 -0
  9. data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_responsibleParty.rb +1 -1
  10. data/lib/adiwg/mdtranslator/version.rb +1 -1
  11. data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_distribution.rb +24 -2
  12. data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_entityDetail.rb +1 -1
  13. data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_process.rb +1 -0
  14. data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_spatialDomain.rb +2 -2
  15. data/lib/adiwg/mdtranslator/writers/html/sections/html_contact.rb +32 -0
  16. data/lib/adiwg/mdtranslator/writers/html/sections/html_scope.rb +18 -10
  17. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_additionalDocument.rb +3 -3
  18. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_address.rb +4 -4
  19. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_algorithm.rb +4 -4
  20. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_associatedResource.rb +4 -4
  21. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_attribute.rb +4 -4
  22. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_attributeGroup.rb +4 -4
  23. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_baseUnit.rb +2 -2
  24. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_boundingBox.rb +4 -4
  25. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_browseGraphic.rb +4 -4
  26. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_citation.rb +4 -4
  27. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_codelist.rb +2 -2
  28. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_constraint.rb +4 -4
  29. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_constraintCommon.rb +2 -2
  30. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_contact.rb +3 -3
  31. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_conventionalUnit.rb +2 -2
  32. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_coverageDescription.rb +3 -3
  33. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_dataIdentification.rb +5 -5
  34. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_dataQuality.rb +9 -2
  35. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_dataQualityReport.rb +1 -1
  36. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_date.rb +4 -4
  37. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_definitionUnit.rb +2 -2
  38. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_derivedUnit.rb +2 -2
  39. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_dimension.rb +4 -4
  40. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_distribution.rb +2 -2
  41. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_distributor.rb +4 -4
  42. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_email.rb +2 -2
  43. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_extent.rb +2 -2
  44. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_feature.rb +4 -4
  45. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_featureCatalog.rb +3 -3
  46. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_featureCollection.rb +2 -2
  47. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_featureProperties.rb +2 -2
  48. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_format.rb +4 -4
  49. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_fraction.rb +4 -4
  50. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_gcoDateTime.rb +2 -2
  51. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_geographicElement.rb +4 -4
  52. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_geographicExtent.rb +2 -2
  53. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_geometricObjects.rb +3 -3
  54. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_geometryCollection.rb +4 -4
  55. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_georectified.rb +4 -4
  56. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_georeferenceable.rb +4 -4
  57. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_gmlIdentifier.rb +2 -2
  58. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_grid.rb +4 -4
  59. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_gridRepresentation.rb +1 -1
  60. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_identifier.rb +4 -4
  61. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_imageDescription.rb +2 -2
  62. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_individual.rb +4 -4
  63. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_keyword.rb +4 -4
  64. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_leProcessStep.rb +4 -4
  65. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_leSource.rb +2 -2
  66. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_legalConstraints.rb +3 -3
  67. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_liProcessStep.rb +4 -4
  68. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_liSource.rb +2 -2
  69. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_lineString.rb +2 -2
  70. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_lineage.rb +2 -2
  71. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_locale.rb +4 -4
  72. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_maintenance.rb +4 -4
  73. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_mdBand.rb +2 -2
  74. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_mdMetadata.rb +7 -7
  75. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_measure.rb +4 -4
  76. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_medium.rb +2 -2
  77. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_miBand.rb +2 -2
  78. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_multiLine.rb +2 -2
  79. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_multiPoint.rb +2 -2
  80. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_multiPolygon.rb +2 -2
  81. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_nominalResolution.rb +4 -4
  82. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_onlineResource.rb +4 -4
  83. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_orderProcess.rb +2 -2
  84. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_organization.rb +24 -4
  85. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_partyIdentifier.rb +4 -4
  86. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_phone.rb +3 -3
  87. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_point.rb +2 -2
  88. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_polygon.rb +2 -2
  89. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_processReport.rb +4 -4
  90. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_processStep.rb +2 -2
  91. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_processing.rb +4 -4
  92. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_rangeDimension.rb +4 -4
  93. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_rangeElementDescription.rb +4 -4
  94. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_referenceSystem.rb +3 -3
  95. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_releasability.rb +2 -2
  96. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_resolution.rb +2 -2
  97. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_responsibility.rb +4 -4
  98. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_sampleDimension.rb +4 -4
  99. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_scope.rb +4 -4
  100. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_scopeDescription.rb +2 -2
  101. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_securityConstraints.rb +4 -4
  102. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_series.rb +2 -2
  103. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_source.rb +2 -2
  104. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_spatialRepresentation.rb +2 -2
  105. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_temporalExtent.rb +2 -2
  106. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_timeInstant.rb +2 -2
  107. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_timePeriod.rb +2 -2
  108. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_transferOptions.rb +2 -2
  109. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_unitsOfMeasure.rb +2 -2
  110. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_usage.rb +4 -4
  111. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_useConstraints.rb +2 -2
  112. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_vectorRepresentation.rb +2 -2
  113. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_verticalExtent.rb +4 -4
  114. data/lib/adiwg/mdtranslator/writers/{iso19115_1/iso19115_1_writer.rb → iso19115_3/iso19115_3_writer.rb} +10 -10
  115. data/lib/adiwg/mdtranslator/writers/{iso19115_1/iso19115_1_writer_messages_eng.yml → iso19115_3/iso19115_3_writer_messages_eng.yml} +1 -1
  116. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/readme.md +3 -3
  117. data/lib/adiwg/mdtranslator/writers/iso19115_3/version.rb +12 -0
  118. data/lib/adiwg/mdtranslator/writers/simple_html/readme.md +19 -0
  119. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_additionalDocumentation.rb +49 -0
  120. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_algorithm.rb +48 -0
  121. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_allocation.rb +114 -0
  122. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_associatedResource.rb +73 -0
  123. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_attribute.rb +201 -0
  124. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_attributeGroup.rb +51 -0
  125. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_bearingDistanceResolution.rb +68 -0
  126. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_body.rb +324 -0
  127. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_bodyScript.js +317 -0
  128. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_boundingBox.rb +69 -0
  129. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_citation.rb +165 -0
  130. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_classedData.rb +50 -0
  131. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_classedDataItem.rb +50 -0
  132. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_constraint.rb +118 -0
  133. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_contact.rb +202 -0
  134. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_coordinateResolution.rb +47 -0
  135. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_coverageInfo.rb +81 -0
  136. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_dataDictionary.rb +126 -0
  137. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_dataQuality.rb +60 -0
  138. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_date.rb +42 -0
  139. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_datetime.rb +42 -0
  140. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_dimension.rb +69 -0
  141. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_distribution.rb +58 -0
  142. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_distributor.rb +66 -0
  143. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_document.rb +63 -0
  144. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_domain.rb +108 -0
  145. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_domainItem.rb +64 -0
  146. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_duration.rb +68 -0
  147. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_entity.rb +169 -0
  148. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_entityAttribute.rb +179 -0
  149. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_entityForeignKey.rb +55 -0
  150. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_entityIndex.rb +50 -0
  151. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_extent.rb +75 -0
  152. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_feature.rb +97 -0
  153. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_featureCollection.rb +82 -0
  154. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_featureProperties.rb +71 -0
  155. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_format.rb +66 -0
  156. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_funding.rb +60 -0
  157. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_geodeticParameters.rb +71 -0
  158. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_geographicElement.rb +79 -0
  159. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_geographicExtent.rb +120 -0
  160. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_geographicResolution.rb +47 -0
  161. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_geologicAge.rb +71 -0
  162. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_geometryCollection.rb +78 -0
  163. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_geometryObject.rb +46 -0
  164. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_georectifiedRepresentation.rb +105 -0
  165. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_georeferenceableRepresentation.rb +91 -0
  166. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_graphic.rb +75 -0
  167. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_gridRepresentation.rb +76 -0
  168. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_head.rb +55 -0
  169. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_identifier.rb +81 -0
  170. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_imageInfo.rb +102 -0
  171. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_inlineCss.css +237 -0
  172. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_keyword.rb +68 -0
  173. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_legalConstraint.rb +49 -0
  174. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_lineage.rb +87 -0
  175. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_locale.rb +47 -0
  176. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_maintenance.rb +96 -0
  177. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_measure.rb +47 -0
  178. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_medium.rb +90 -0
  179. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_metadataInfo.rb +198 -0
  180. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_metadataRepository.rb +56 -0
  181. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_nominalResolution.rb +51 -0
  182. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_obliqueLinePoint.rb +37 -0
  183. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_onlineResource.rb +74 -0
  184. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_orderProcess.rb +62 -0
  185. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_processReport.rb +47 -0
  186. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_processStep.rb +171 -0
  187. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_processing.rb +89 -0
  188. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_projectionParameters.rb +261 -0
  189. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_rangeElementDescription.rb +40 -0
  190. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_referenceSystemParameters.rb +65 -0
  191. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_releasability.rb +63 -0
  192. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_resourceFormat.rb +40 -0
  193. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_resourceInfo.rb +485 -0
  194. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_resourceType.rb +38 -0
  195. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_responsibility.rb +81 -0
  196. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_scope.rb +60 -0
  197. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_scopeDescription.rb +54 -0
  198. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_securityConstraint.rb +57 -0
  199. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_source.rb +155 -0
  200. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_spatialReference.rb +70 -0
  201. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_spatialRepresentation.rb +77 -0
  202. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_spatialResolution.rb +95 -0
  203. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_taxonomy.rb +156 -0
  204. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_taxonomyClass.rb +75 -0
  205. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_temporalExtent.rb +65 -0
  206. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_timeInstant.rb +82 -0
  207. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_timeInterval.rb +40 -0
  208. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_timePeriod.rb +128 -0
  209. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_transferOption.rb +94 -0
  210. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_usage.rb +118 -0
  211. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_vectorObject.rb +40 -0
  212. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_vectorRepresentation.rb +62 -0
  213. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_verticalDatumParameters.rb +70 -0
  214. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_verticalExtent.rb +62 -0
  215. data/lib/adiwg/mdtranslator/writers/simple_html/simple_html_writer.rb +44 -0
  216. data/lib/adiwg/mdtranslator/writers/simple_html/version.rb +19 -0
  217. data/lib/adiwg/mdtranslator_cli.rb +2 -2
  218. metadata +221 -115
  219. data/lib/adiwg/mdtranslator/writers/iso19115_1/version.rb +0 -15
@@ -0,0 +1,102 @@
1
+ # HTML writer
2
+ # image information
3
+
4
+ # History:
5
+ # Stan Smith 2017-04-02 refactored for mdTranslator 2.0
6
+ # Stan Smith 2015-08-21 original script
7
+
8
+ require_relative 'html_identifier'
9
+
10
+ module ADIWG
11
+ module Mdtranslator
12
+ module Writers
13
+ module Simple_html
14
+
15
+ class Html_ImageInfo
16
+
17
+ def initialize(html)
18
+ @html = html
19
+ end
20
+
21
+ def writeHtml(hImage)
22
+
23
+ # classes used
24
+ identifierClass = Html_Identifier.new(@html)
25
+
26
+ # image information - illumination elevation angle
27
+ unless hImage[:illuminationElevationAngle].nil?
28
+ @html.em('Illumination elevation angle: ')
29
+ @html.text!(hImage[:illuminationElevationAngle].to_s)
30
+ @html.br
31
+ end
32
+
33
+ # image information - illumination azimuth angle
34
+ unless hImage[:illuminationAzimuthAngle].nil?
35
+ @html.em('Illumination azimuth angle: ')
36
+ @html.text!(hImage[:illuminationAzimuthAngle].to_s)
37
+ @html.br
38
+ end
39
+
40
+ # image information - image condition
41
+ unless hImage[:imageCondition].nil?
42
+ @html.em('Image condition: ')
43
+ @html.text!(hImage[:imageCondition])
44
+ @html.br
45
+ end
46
+
47
+ # image information - cloud cover percentage
48
+ unless hImage[:cloudCoverPercent].nil?
49
+ @html.em('Cloud cover percentage: ')
50
+ @html.text!(hImage[:cloudCoverPercent].to_s)
51
+ @html.br
52
+ end
53
+
54
+ # image information - compression generation quantity
55
+ unless hImage[:compressionQuantity].nil?
56
+ @html.em('Compression generation quantity: ')
57
+ @html.text!(hImage[:compressionQuantity].to_s)
58
+ @html.br
59
+ end
60
+
61
+ # image information - image quality code {identifier}
62
+ unless hImage[:imageQualityCode].empty?
63
+ @html.div do
64
+ @html.div('Image Quality Code', {'class' => 'h5'})
65
+ @html.div(:class => 'block') do
66
+ identifierClass.writeHtml(hImage[:imageQualityCode])
67
+ end
68
+ end
69
+ end
70
+
71
+ # image information - triangulation information available {Boolean}
72
+ @html.em('Triangulation information available: ')
73
+ @html.text!(hImage[:triangulationIndicator].to_s)
74
+ @html.br
75
+
76
+ # image information - radiometric calibration information available {Boolean}
77
+ @html.em('Radiometric calibration available: ')
78
+ @html.text!(hImage[:radiometricCalibrationAvailable].to_s)
79
+ @html.br
80
+
81
+ # image information - camera calibration information available {Boolean}
82
+ @html.em('Camera calibration information available: ')
83
+ @html.text!(hImage[:cameraCalibrationAvailable].to_s)
84
+ @html.br
85
+
86
+ # image information - film distortion information available {Boolean}
87
+ @html.em('Film distortion information available: ')
88
+ @html.text!(hImage[:filmDistortionAvailable].to_s)
89
+ @html.br
90
+
91
+ # image information - lens distortion information available {Boolean}
92
+ @html.em('Lens distortion information available: ')
93
+ @html.text!(hImage[:lensDistortionAvailable].to_s)
94
+ @html.br
95
+
96
+ end # writeHtml
97
+ end # Html_ImageInfo
98
+
99
+ end
100
+ end
101
+ end
102
+ end
@@ -0,0 +1,237 @@
1
+ /*
2
+ css borrowed from http://mixu.net/markdown-styles/jasonm23-markdown and modified
3
+ */
4
+
5
+ html { font-size: 100%; overflow-y: scroll; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
6
+
7
+ body{
8
+ color: #202020;
9
+ font-family: Consolas, sans-serif;
10
+ font-size: small;
11
+ line-height: 1.3em;
12
+ padding: 1em;
13
+ margin: auto;
14
+ max-width: 55em;
15
+ background: #fefefe;
16
+ }
17
+
18
+ a{ color: #0645ad; text-decoration:none;}
19
+ a:visited{ color: #0b0080; }
20
+ a:hover{ color: #06e; }
21
+ a:active{ color:#faa700; }
22
+ a:focus{ outline: thin dotted; }
23
+ a:hover, a:active{ outline: 0; }
24
+
25
+ ::-moz-selection{background:rgba(255,255,0,0.3);color:#000}
26
+ ::selection{background:rgba(255,255,0,0.3);color:#000}
27
+
28
+ a::-moz-selection{background:rgba(255,255,0,0.3);color:#0645ad}
29
+ a::selection{background:rgba(255,255,0,0.3);color:#0645ad}
30
+
31
+ p{
32
+ margin: 1em 0;
33
+ }
34
+
35
+ img{
36
+ max-width: 100%;
37
+ }
38
+
39
+ h1,h2,h3,h4,h5,h6,
40
+ .h1,.h2,.h3,.h4,.h5,.h6{
41
+ font-family: 'Lucida Grande', Tahoma, Arial, Verdana, sans-serif;
42
+ font-weight: normal;
43
+ color: #111;
44
+ margin-top: .7em;
45
+ margin-bottom: .5em;
46
+ line-height: 1em;
47
+ }
48
+
49
+ h1,.h1{ font-size: 2.5em; }
50
+ h2,.h2{ font-size: 2em; }
51
+ h3,.h3{ font-size: 1.5em; }
52
+ h4,.h4{ font-size: 1.2em; }
53
+ h5,.h5{ font-size: 1em; }
54
+ h6,.h6{ font-size: 0.9em; }
55
+
56
+ em{
57
+ font-family: Tahoma, Arial, Verdana, sans-serif;
58
+ color: #666666;
59
+ font-size: small;
60
+ margin-right: 1em;
61
+ }
62
+
63
+ blockquote, section.block{
64
+ margin: 0;
65
+ padding-left: 2em;
66
+ border-left: 0.1em #e3e3e3 solid;
67
+ }
68
+
69
+ summary:focus {outline: none}
70
+ summary.h2 {color: #666666; font-style: italic;}
71
+
72
+ hr { display: block; height: 2px; border: 0; border-top: 1px solid #aaa;border-bottom: 1px solid #eee; margin: 1em 0; padding: 0; }
73
+
74
+ pre, code, kbd, samp { color: #000; font-family: monospace, monospace; _font-family: 'courier new', monospace; font-size: 0.98em; }
75
+ pre { white-space: pre-wrap; word-wrap: break-word; }
76
+ .pre-line { white-space: pre-line; }
77
+
78
+ b, strong { font-weight: bold; }
79
+
80
+ dfn { font-style: italic; }
81
+
82
+ ins { background: #ff9; color: #000; text-decoration: none; }
83
+
84
+ mark { background: #ff0; color: #000; font-style: italic; font-weight: bold; }
85
+
86
+ sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
87
+ sup { top: -0.5em; }
88
+ sub { bottom: -0.25em; }
89
+
90
+ ul, ol { margin: .25em 0; padding: 0 0 0 2em; }
91
+ li p:last-child { margin:0 }
92
+ dd { margin: 0 0 0 2em; }
93
+
94
+ img { border: 0; -ms-interpolation-mode: bicubic; vertical-align: middle; }
95
+
96
+ table { border-collapse: collapse; border-spacing: 0; }
97
+ td { vertical-align: top; }
98
+
99
+ @media only screen and (min-width: 480px) {
100
+ body{font-size: 14px;}
101
+ }
102
+
103
+ @media only screen and (min-width: 768px) {
104
+ body{font-size: 16px;}
105
+ }
106
+
107
+ @media print {
108
+ * { background: transparent !important; color: black !important; filter: none !important; -ms-filter: none !important; }
109
+ body{font-size:12pt; max-width:100%;}
110
+ a, a:visited { text-decoration: underline; }
111
+ hr { height: 1px; border:0; border-bottom:1px solid black; }
112
+ a[href]:after { content: " (" attr(href) ")"; }
113
+ abbr[title]:after { content: " (" attr(title) ")"; }
114
+ .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; }
115
+ pre, blockquote,section.block { padding-right: 1em; page-break-inside: avoid; }
116
+ tr, img { page-break-inside: avoid; }
117
+ img { max-width: 100% !important; }
118
+ @page :left { margin: 15mm 20mm 15mm 10mm; }
119
+ @page :right { margin: 15mm 10mm 15mm 20mm; }
120
+ p, h2, h3 { orphans: 3; widows: 3; }
121
+ h2, h3 { page-break-after: avoid; }
122
+ }
123
+
124
+ #mainHeader {
125
+ margin: 0 0 1em;
126
+ padding-top: 1em;
127
+ color: #808080;
128
+ text-align: center;
129
+ }
130
+ #mainHeader .logo{
131
+ height: 39px;
132
+ width: 150px;
133
+ vertical-align: middle;
134
+ }
135
+ #mainHeader .version {
136
+ color: #FF8700;
137
+ position: relative;
138
+ bottom: 0.6em;
139
+ font-size: 0.7em;
140
+ font-weight: 500;
141
+ }
142
+
143
+ .btn, a.btn {
144
+ font-family: 'Lucida Grande', Tahoma, Arial, Verdana, sans-serif;
145
+ display: inline-block;
146
+ width: 68px;
147
+ padding: 6px 12px;
148
+ margin-bottom: 0;
149
+ font-size: 14px;
150
+ font-weight: 500;
151
+ line-height: 1.42857143;
152
+ white-space: nowrap;
153
+ text-align: left;
154
+ vertical-align: middle;
155
+ -ms-touch-action: manipulation;
156
+ touch-action: manipulation;
157
+ cursor: pointer;
158
+ -webkit-user-select: none;
159
+ -moz-user-select: none;
160
+ -ms-user-select: none;
161
+ user-select: none;
162
+ background-image: none;
163
+ border: 1px solid transparent;
164
+ border-radius: 4px;
165
+ color: black;
166
+ opacity: 0.8;
167
+ }
168
+ .btn:focus {outline: none}
169
+ .btn:hover {
170
+ background-color: #969696;
171
+ text-decoration: underline;
172
+ }
173
+
174
+ @font-face {
175
+ font-family: 'meta';
176
+ src: url('fonts/meta.eot');
177
+ }
178
+ @font-face {
179
+ font-family: 'meta';
180
+ src: url(data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SDgQAAAC8AAAAYGNtYXDxFfFbAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5Zswu1ZIAAAF4AAABFGhlYWQEAuE8AAACjAAAADZoaGVhBgsDyAAAAsQAAAAkaG10eAgAAAAAAALoAAAAHGxvY2EAjgDgAAADBAAAABBtYXhwAAkAFgAAAxQAAAAgbmFtZXuznNEAAAM0AAABKnBvc3QAAwAAAAAEYAAAACAAAwQAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADw2gPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAACAAAAAwAAABQAAwABAAAAFAAEAEAAAAAMAAgAAgAEAAEAIPDY8Nr//f//AAAAAAAg8Nfw2v/9//8AAf/jDy0PLAADAAEAAAAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAAABAAJJAkkAEwAAARQHAQYjIicBJjU0NzYzITIXFhUCSQv/AAsODwv/AAsLCw8CAA4LCwIlDwv/AAsLAQALDw4LCwsLDgABAAAA2wJJAiUAEwAAARQHBiMhIicmNTQ3ATYzMhcBFhUCSQsLDv4ADwsLCwEACw8OCwEACwEADwsLCwsPDwsBAAsL/wALDwABAAAAkgFJAtsAEwAAARQHAQYjIicmNRE0NzYzMhcBFhUBSQv/AAsODwsLCwsPDgsBAAsBtw8L/wALCwsPAgAPCwoK/wALDwABAAAAAQAAiNFrr18PPPUACwQAAAAAANFNzrIAAAAA0U3OsgAAAAACSQLbAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAJJAAEAAAAAAAAAAAAAAAAAAAAHAAAAAAAAAAAAAAAAAgAAAAJJAAACSQAAAW4AAAAAAAAACgAUAB4AQgBmAIoAAQAAAAcAFAABAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAgAAAABAAAAAAACAA4AMgABAAAAAAADAAgAHgABAAAAAAAEAAgAQAABAAAAAAAFABYACAABAAAAAAAGAAQAJgABAAAAAAAKADQASAADAAEECQABAAgAAAADAAEECQACAA4AMgADAAEECQADAAgAHgADAAEECQAEAAgAQAADAAEECQAFABYACAADAAEECQAGAAgAKgADAAEECQAKADQASABtAGUAdABhAFYAZQByAHMAaQBvAG4AIAAxAC4AMABtAGUAdABhbWV0YQBtAGUAdABhAFIAZQBnAHUAbABhAHIAbQBlAHQAYQBGAG8AbgB0ACAAZwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABJAGMAbwBNAG8AbwBuAC4AAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA) format('truetype');
181
+ font-weight: normal;
182
+ font-style: normal;
183
+ }
184
+ [class^="icon-"], [class*=" icon-"] {
185
+ font-family: 'meta';
186
+ speak: none;
187
+ font-style: normal;
188
+ font-weight: normal;
189
+ font-variant: normal;
190
+ text-transform: none;
191
+ line-height: 1;
192
+
193
+ /* Better Font Rendering =========== */
194
+ -webkit-font-smoothing: antialiased;
195
+ -moz-osx-font-smoothing: grayscale;
196
+ }
197
+ .icon-caret-down:before {
198
+ content: "\f0d7";
199
+ }
200
+ .icon-caret-up:before {
201
+ content: "\f0d8";
202
+ }
203
+ .icon-caret-right:before {
204
+ content: "\f0da";
205
+ }
206
+
207
+ /*** Logo ***/
208
+ span#logo {
209
+ background: url(data:image/png;base64,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) no-repeat left center;
210
+ width: 150px;
211
+ height: 39px;
212
+ display: inline-block;
213
+ vertical-align: middle;
214
+ }
215
+
216
+ /*** Maps ***/
217
+ section.extent-geographic div.map {
218
+ height: 350px;
219
+ }
220
+ div.hidden {
221
+ visibility: hidden;
222
+ height: 0px;
223
+ }
224
+
225
+ /*** Side Nav ***/
226
+ div#sideNav {
227
+ position: fixed;
228
+ right: 20px;
229
+ top: 150px;
230
+ z-index: 10000;
231
+ }
232
+ div#sideNav * {
233
+ display: block;
234
+ }
235
+ div#sideNav span {
236
+ margin-top: 4px;
237
+ }
@@ -0,0 +1,68 @@
1
+ # HTML writer
2
+ # keywords
3
+
4
+ # History:
5
+ # Stan Smith 2017-03-29 refactored for mdTranslator 2.0
6
+ # Stan Smith 2015-07-16 refactored to remove global namespace $HtmlNS
7
+ # Stan Smith 2015-03-23 original script
8
+
9
+ require_relative 'html_citation'
10
+
11
+ module ADIWG
12
+ module Mdtranslator
13
+ module Writers
14
+ module Simple_html
15
+
16
+ class Html_Keyword
17
+
18
+ def initialize(html)
19
+ @html = html
20
+ end
21
+
22
+ def writeHtml(hKeyword)
23
+
24
+ # classes used
25
+ citationClass = Html_Citation.new(@html)
26
+
27
+ # keywords - type
28
+ @html.div do
29
+ type = hKeyword[:keywordType]
30
+ if type.nil?
31
+ type = 'Unclassified'
32
+ end
33
+ @html.div(type, {'class' => 'h5'})
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
+
49
+ # thesaurus
50
+ unless hKeyword[:thesaurus].empty?
51
+ @html.div do
52
+ @html.div('Thesaurus', {'class' => 'h5'})
53
+ @html.div(:class => 'block') do
54
+ citationClass.writeHtml(hKeyword[:thesaurus])
55
+ end
56
+ end
57
+ end
58
+
59
+ end
60
+ end
61
+
62
+ end # writeHtml
63
+ end # Html_Keyword
64
+
65
+ end
66
+ end
67
+ end
68
+ end
@@ -0,0 +1,49 @@
1
+ # HTML writer
2
+ # legal constraint
3
+
4
+ # History:
5
+ # Stan Smith 2017-03-31 refactored for mdTranslator 2.0
6
+ # Stan Smith 2015-03-25 original script
7
+
8
+ module ADIWG
9
+ module Mdtranslator
10
+ module Writers
11
+ module Simple_html
12
+
13
+ class Html_LegalConstraint
14
+
15
+ def initialize(html)
16
+ @html = html
17
+ end
18
+
19
+ def writeHtml(hLegalCon)
20
+
21
+ # legal constraint - access constraints {restrictionCode}
22
+ hLegalCon[:accessCodes].each do |constraint|
23
+ @html.em('Access Constraint: ')
24
+ @html.text!(constraint)
25
+ @html.br
26
+ end
27
+
28
+ # legal constraint - use constraints {restrictionCode}
29
+ hLegalCon[:useCodes].each do |constraint|
30
+ @html.em('Use Constraint: ')
31
+ @html.text!(constraint)
32
+ @html.br
33
+ end
34
+
35
+ # legal constraint - other constraints
36
+ hLegalCon[:otherCons].each do |constraint|
37
+ @html.em('Other Constraint: ')
38
+ @html.div(:class => 'block') do
39
+ @html.text!(constraint)
40
+ end
41
+ end
42
+
43
+ end # writeHtml
44
+ end # Html_LegalConstraint
45
+
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,87 @@
1
+ # HTML writer
2
+ # lineage
3
+
4
+ # History:
5
+ # Stan Smith 2017-04-03 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_scope'
10
+ require_relative 'html_citation'
11
+ require_relative 'html_processStep'
12
+ require_relative 'html_source'
13
+
14
+ module ADIWG
15
+ module Mdtranslator
16
+ module Writers
17
+ module Simple_html
18
+
19
+ class Html_Lineage
20
+
21
+ def initialize(html)
22
+ @html = html
23
+ end
24
+
25
+ def writeHtml(hLineage)
26
+
27
+ # classes used
28
+ scopeClass = Html_Scope.new(@html)
29
+ citationClass = Html_Citation.new(@html)
30
+ stepClass = Html_ProcessStep.new(@html)
31
+ sourceClass = Html_Source.new(@html)
32
+
33
+ # lineage - statement
34
+ unless hLineage[:statement].nil?
35
+ @html.em('Statement: ')
36
+ @html.div(:class => 'block') do
37
+ @html.text!(hLineage[:statement])
38
+ end
39
+ end
40
+
41
+ # lineage - scope
42
+ unless hLineage[:resourceScope].empty?
43
+ @html.div do
44
+ @html.div('Scope', {'class' => 'h5'})
45
+ @html.div(:class => 'block') do
46
+ scopeClass.writeHtml(hLineage[:resourceScope])
47
+ end
48
+ end
49
+ end
50
+
51
+ # lineage - citation
52
+ hLineage[:lineageCitation].each do |hCitation|
53
+ @html.div do
54
+ @html.div('Citation', {'class' => 'h5'})
55
+ @html.div(:class => 'block') do
56
+ citationClass.writeHtml(hCitation)
57
+ end
58
+ end
59
+ end
60
+
61
+ # lineage - data sources
62
+ hLineage[:dataSources].each do |hsource|
63
+ @html.div do
64
+ @html.div('Data Source', {'class' => 'h5'})
65
+ @html.div(:class => 'block') do
66
+ sourceClass.writeHtml(hsource)
67
+ end
68
+ end
69
+ end
70
+
71
+ # lineage - process steps
72
+ hLineage[:processSteps].each do |hStep|
73
+ @html.div do
74
+ @html.div('Process Step', {'class' => 'h5'})
75
+ @html.div(:class => 'block') do
76
+ stepClass.writeHtml(hStep)
77
+ end
78
+ end
79
+ end
80
+
81
+ end # writeHtml
82
+ end # Html_Lineage
83
+
84
+ end
85
+ end
86
+ end
87
+ end
@@ -0,0 +1,47 @@
1
+ # HTML writer
2
+ # locale
3
+
4
+ # History:
5
+ # Stan Smith 2017-03-24 original script
6
+
7
+ module ADIWG
8
+ module Mdtranslator
9
+ module Writers
10
+ module Simple_html
11
+
12
+ class Html_Locale
13
+
14
+ def initialize(html)
15
+ @html = html
16
+ end
17
+
18
+ def writeHtml(hLocale)
19
+
20
+ # locale - language code
21
+ unless hLocale[:languageCode].nil?
22
+ @html.em('Language Code: ')
23
+ @html.text!(hLocale[:languageCode])
24
+ @html.br
25
+ end
26
+
27
+ # locale - country code
28
+ unless hLocale[:countryCode].nil?
29
+ @html.em('Country Code: ')
30
+ @html.text!(hLocale[:countryCode])
31
+ @html.br
32
+ end
33
+
34
+ # locale - characterEncoding
35
+ unless hLocale[:characterEncoding].nil?
36
+ @html.em('Character Encoding: ')
37
+ @html.text!(hLocale[:characterEncoding])
38
+ @html.br
39
+ end
40
+
41
+ end # writeHtml
42
+ end # Html_Locale
43
+
44
+ end
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,96 @@
1
+ # HTML writer
2
+ # maintenance
3
+
4
+ # History:
5
+ # Stan Smith 2017-03-25 refactored for mdTranslator 2.0
6
+ # Stan Smith 2015-07-16 refactored to remove global namespace $HtmlNS
7
+ # Stan Smith 2015-03-24 original script
8
+
9
+ require_relative 'html_date'
10
+ require_relative 'html_scope'
11
+ require_relative 'html_responsibility'
12
+
13
+ module ADIWG
14
+ module Mdtranslator
15
+ module Writers
16
+ module Simple_html
17
+
18
+ class Html_Maintenance
19
+
20
+ def initialize(html)
21
+ @html = html
22
+ end
23
+
24
+ def writeHtml(hMaint)
25
+
26
+ # classes used
27
+ dateClass = Html_Date.new(@html)
28
+ scopeClass = Html_Scope.new(@html)
29
+ responsibilityClass = Html_Responsibility.new(@html)
30
+
31
+ @html.div(:class => 'block') do
32
+
33
+ # maintenance - frequency
34
+ unless hMaint[:frequency].nil?
35
+ @html.em('Frequency: ')
36
+ @html.text!(hMaint[:frequency])
37
+ @html.br
38
+ end
39
+
40
+ # maintenance - dates []
41
+ hMaint[:dates].each do |hDate|
42
+ @html.em('Date: ')
43
+ dateClass.writeHtml(hDate)
44
+ @html.br
45
+ end
46
+
47
+ # maintenance - scopes [] {scope}
48
+ unless hMaint[:scopes].empty?
49
+ @html.div do
50
+ @html.div('Maintenance Scopes', {'class' => 'h5'})
51
+ @html.div(:class => 'block') do
52
+ hMaint[:scopes].each do |hScope|
53
+ @html.div do
54
+ @html.div(hScope[:scopeCode], 'class' => 'h5')
55
+ @html.div(:class => 'block') do
56
+ scopeClass.writeHtml(hScope)
57
+ end
58
+ end
59
+ end
60
+ end
61
+ end
62
+ end
63
+
64
+ # maintenance - contacts [] {responsibility}
65
+ unless hMaint[:contacts].empty?
66
+ @html.div do
67
+ @html.div('Maintenance Contacts', {'class' => 'h5'})
68
+ @html.div(:class => 'block') do
69
+ hMaint[:contacts].each do |hContact|
70
+ @html.div do
71
+ @html.div(hContact[:roleName], 'class' => 'h5')
72
+ @html.div(:class => 'block') do
73
+ responsibilityClass.writeHtml(hContact)
74
+ end
75
+ end
76
+ end
77
+ end
78
+ end
79
+ end
80
+
81
+ # maintenance - notes []
82
+ hMaint[:notes].each do |note|
83
+ @html.em('Note: ')
84
+ @html.text!(note)
85
+ @html.br
86
+ end
87
+
88
+ end
89
+
90
+ end # writeHtml
91
+ end # Html_Maintenance
92
+
93
+ end
94
+ end
95
+ end
96
+ end