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.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/Gemfile.lock +84 -0
- data/Rakefile +1 -1
- data/adiwg-mdtranslator.gemspec +5 -5
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_horizontalPlanar.rb +1 -1
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_spatialDomain.rb +1 -1
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_distribution.rb +8 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_responsibleParty.rb +1 -1
- data/lib/adiwg/mdtranslator/version.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_distribution.rb +24 -2
- data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_entityDetail.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_process.rb +1 -0
- data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_spatialDomain.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/html/sections/html_contact.rb +32 -0
- data/lib/adiwg/mdtranslator/writers/html/sections/html_scope.rb +18 -10
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_additionalDocument.rb +3 -3
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_address.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_algorithm.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_associatedResource.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_attribute.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_attributeGroup.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_baseUnit.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_boundingBox.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_browseGraphic.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_citation.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_codelist.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_constraint.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_constraintCommon.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_contact.rb +3 -3
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_conventionalUnit.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_coverageDescription.rb +3 -3
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_dataIdentification.rb +5 -5
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_dataQuality.rb +9 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_dataQualityReport.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_date.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_definitionUnit.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_derivedUnit.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_dimension.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_distribution.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_distributor.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_email.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_extent.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_feature.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_featureCatalog.rb +3 -3
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_featureCollection.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_featureProperties.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_format.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_fraction.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_gcoDateTime.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_geographicElement.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_geographicExtent.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_geometricObjects.rb +3 -3
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_geometryCollection.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_georectified.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_georeferenceable.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_gmlIdentifier.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_grid.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_gridRepresentation.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_identifier.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_imageDescription.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_individual.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_keyword.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_leProcessStep.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_leSource.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_legalConstraints.rb +3 -3
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_liProcessStep.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_liSource.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_lineString.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_lineage.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_locale.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_maintenance.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_mdBand.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_mdMetadata.rb +7 -7
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_measure.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_medium.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_miBand.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_multiLine.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_multiPoint.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_multiPolygon.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_nominalResolution.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_onlineResource.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_orderProcess.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_organization.rb +24 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_partyIdentifier.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_phone.rb +3 -3
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_point.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_polygon.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_processReport.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_processStep.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_processing.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_rangeDimension.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_rangeElementDescription.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_referenceSystem.rb +3 -3
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_releasability.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_resolution.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_responsibility.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_sampleDimension.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_scope.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_scopeDescription.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_securityConstraints.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_series.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_source.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_spatialRepresentation.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_temporalExtent.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_timeInstant.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_timePeriod.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_transferOptions.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_unitsOfMeasure.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_usage.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_useConstraints.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_vectorRepresentation.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_verticalExtent.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1/iso19115_1_writer.rb → iso19115_3/iso19115_3_writer.rb} +10 -10
- data/lib/adiwg/mdtranslator/writers/{iso19115_1/iso19115_1_writer_messages_eng.yml → iso19115_3/iso19115_3_writer_messages_eng.yml} +1 -1
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/readme.md +3 -3
- data/lib/adiwg/mdtranslator/writers/iso19115_3/version.rb +12 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/readme.md +19 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_additionalDocumentation.rb +49 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_algorithm.rb +48 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_allocation.rb +114 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_associatedResource.rb +73 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_attribute.rb +201 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_attributeGroup.rb +51 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_bearingDistanceResolution.rb +68 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_body.rb +324 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_bodyScript.js +317 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_boundingBox.rb +69 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_citation.rb +165 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_classedData.rb +50 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_classedDataItem.rb +50 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_constraint.rb +118 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_contact.rb +202 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_coordinateResolution.rb +47 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_coverageInfo.rb +81 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_dataDictionary.rb +126 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_dataQuality.rb +60 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_date.rb +42 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_datetime.rb +42 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_dimension.rb +69 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_distribution.rb +58 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_distributor.rb +66 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_document.rb +63 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_domain.rb +108 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_domainItem.rb +64 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_duration.rb +68 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_entity.rb +169 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_entityAttribute.rb +179 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_entityForeignKey.rb +55 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_entityIndex.rb +50 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_extent.rb +75 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_feature.rb +97 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_featureCollection.rb +82 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_featureProperties.rb +71 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_format.rb +66 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_funding.rb +60 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_geodeticParameters.rb +71 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_geographicElement.rb +79 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_geographicExtent.rb +120 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_geographicResolution.rb +47 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_geologicAge.rb +71 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_geometryCollection.rb +78 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_geometryObject.rb +46 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_georectifiedRepresentation.rb +105 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_georeferenceableRepresentation.rb +91 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_graphic.rb +75 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_gridRepresentation.rb +76 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_head.rb +55 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_identifier.rb +81 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_imageInfo.rb +102 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_inlineCss.css +237 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_keyword.rb +68 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_legalConstraint.rb +49 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_lineage.rb +87 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_locale.rb +47 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_maintenance.rb +96 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_measure.rb +47 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_medium.rb +90 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_metadataInfo.rb +198 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_metadataRepository.rb +56 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_nominalResolution.rb +51 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_obliqueLinePoint.rb +37 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_onlineResource.rb +74 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_orderProcess.rb +62 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_processReport.rb +47 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_processStep.rb +171 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_processing.rb +89 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_projectionParameters.rb +261 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_rangeElementDescription.rb +40 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_referenceSystemParameters.rb +65 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_releasability.rb +63 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_resourceFormat.rb +40 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_resourceInfo.rb +485 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_resourceType.rb +38 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_responsibility.rb +81 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_scope.rb +60 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_scopeDescription.rb +54 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_securityConstraint.rb +57 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_source.rb +155 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_spatialReference.rb +70 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_spatialRepresentation.rb +77 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_spatialResolution.rb +95 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_taxonomy.rb +156 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_taxonomyClass.rb +75 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_temporalExtent.rb +65 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_timeInstant.rb +82 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_timeInterval.rb +40 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_timePeriod.rb +128 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_transferOption.rb +94 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_usage.rb +118 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_vectorObject.rb +40 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_vectorRepresentation.rb +62 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_verticalDatumParameters.rb +70 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_verticalExtent.rb +62 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/simple_html_writer.rb +44 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/version.rb +19 -0
- data/lib/adiwg/mdtranslator_cli.rb +2 -2
- metadata +221 -115
- data/lib/adiwg/mdtranslator/writers/iso19115_1/version.rb +0 -15
@@ -0,0 +1,118 @@
|
|
1
|
+
# HTML writer
|
2
|
+
# constraint
|
3
|
+
|
4
|
+
# History:
|
5
|
+
# Stan Smith 2017-03-30 original script
|
6
|
+
|
7
|
+
require_relative 'html_scope'
|
8
|
+
require_relative 'html_graphic'
|
9
|
+
require_relative 'html_citation'
|
10
|
+
require_relative 'html_responsibility'
|
11
|
+
require_relative 'html_releasability'
|
12
|
+
require_relative 'html_legalConstraint'
|
13
|
+
require_relative 'html_securityConstraint'
|
14
|
+
|
15
|
+
module ADIWG
|
16
|
+
module Mdtranslator
|
17
|
+
module Writers
|
18
|
+
module Simple_html
|
19
|
+
|
20
|
+
class Html_Constraint
|
21
|
+
|
22
|
+
def initialize(html)
|
23
|
+
@html = html
|
24
|
+
end
|
25
|
+
|
26
|
+
def writeHtml(hConstraint)
|
27
|
+
|
28
|
+
# classes used
|
29
|
+
scopeClass = Html_Scope.new(@html)
|
30
|
+
graphicClass = Html_Graphic.new(@html)
|
31
|
+
citationClass = Html_Citation.new(@html)
|
32
|
+
responsibilityClass = Html_Responsibility.new(@html)
|
33
|
+
releasabilityClass = Html_Releasability.new(@html)
|
34
|
+
legalClass = Html_LegalConstraint.new(@html)
|
35
|
+
securityClass = Html_SecurityConstraint.new(@html)
|
36
|
+
|
37
|
+
# constraint - type
|
38
|
+
unless hConstraint[:type].nil?
|
39
|
+
@html.em('Constraint Type: ')
|
40
|
+
@html.text!(hConstraint[:type])
|
41
|
+
@html.br
|
42
|
+
end
|
43
|
+
|
44
|
+
# constraint - use limitation []
|
45
|
+
hConstraint[:useLimitation].each do |limitation|
|
46
|
+
@html.em('Limitation: ')
|
47
|
+
@html.div(:class => 'block') do
|
48
|
+
@html.text!(limitation)
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
# constraint - scope {scope}
|
53
|
+
unless hConstraint[:scope].empty?
|
54
|
+
@html.div do
|
55
|
+
@html.div('Scope', {'class' => 'h5'})
|
56
|
+
@html.div(:class => 'block') do
|
57
|
+
scopeClass.writeHtml(hConstraint[:scope])
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
# constraint - graphic [] {graphic}
|
63
|
+
hConstraint[:graphic].each do |hGraphic|
|
64
|
+
@html.div do
|
65
|
+
@html.div('Graphic', {'class' => 'h5'})
|
66
|
+
@html.div(:class => 'block') do
|
67
|
+
graphicClass.writeHtml(hGraphic)
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
# constraint - reference [] {citation}
|
73
|
+
hConstraint[:reference].each do |hReference|
|
74
|
+
@html.div do
|
75
|
+
@html.div('Reference', {'class' => 'h5'})
|
76
|
+
@html.div(:class => 'block') do
|
77
|
+
citationClass.writeHtml(hReference)
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
# constraint - releasability {releasability}
|
83
|
+
unless hConstraint[:releasability].empty?
|
84
|
+
@html.div do
|
85
|
+
@html.div('Releasability', {'class' => 'h5'})
|
86
|
+
@html.div(:class => 'block') do
|
87
|
+
releasabilityClass.writeHtml(hConstraint[:releasability])
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
# constraint - responsibility [] {responsibility}
|
93
|
+
hConstraint[:responsibleParty].each do |hResponsibility|
|
94
|
+
@html.div do
|
95
|
+
@html.div(hResponsibility[:roleName], {'class' => 'h5'})
|
96
|
+
@html.div(:class => 'block') do
|
97
|
+
responsibilityClass.writeHtml(hResponsibility)
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
# constraint - legal {legal constraint}
|
103
|
+
if hConstraint[:type] == 'legal' && !hConstraint[:legalConstraint].empty?
|
104
|
+
legalClass.writeHtml(hConstraint[:legalConstraint])
|
105
|
+
end
|
106
|
+
|
107
|
+
# constraint - security {security constraint}
|
108
|
+
if hConstraint[:type] == 'security' && !hConstraint[:securityConstraint].empty?
|
109
|
+
securityClass.writeHtml(hConstraint[:securityConstraint])
|
110
|
+
end
|
111
|
+
|
112
|
+
end # writeHtml
|
113
|
+
end # Html_Constraint
|
114
|
+
|
115
|
+
end
|
116
|
+
end
|
117
|
+
end
|
118
|
+
end
|
@@ -0,0 +1,202 @@
|
|
1
|
+
# HTML writer
|
2
|
+
# contact
|
3
|
+
|
4
|
+
# History:
|
5
|
+
# Stan Smith 2017-03-23 refactored for mdTranslator 2.0
|
6
|
+
# Stan Smith 2015-07-16 refactored to remove global namespace $HtmlNS
|
7
|
+
# Stan Smith 2015-06-23 replace global ($response) with passed in object (responseObj)
|
8
|
+
# Stan Smith 2015-03-23 original script
|
9
|
+
|
10
|
+
require_relative 'html_onlineResource'
|
11
|
+
require_relative 'html_graphic'
|
12
|
+
|
13
|
+
module ADIWG
|
14
|
+
module Mdtranslator
|
15
|
+
module Writers
|
16
|
+
module Simple_html
|
17
|
+
|
18
|
+
class Html_Contact
|
19
|
+
|
20
|
+
def initialize(html)
|
21
|
+
@html = html
|
22
|
+
end
|
23
|
+
|
24
|
+
def writeHtml(hContact)
|
25
|
+
|
26
|
+
# classes used
|
27
|
+
onlineClass = Html_OnlineResource.new(@html)
|
28
|
+
graphicClass = Html_Graphic.new(@html)
|
29
|
+
|
30
|
+
@html.div do
|
31
|
+
@html.div(hContact[:name], {'id' => 'CID_' + hContact[:contactId], 'class' => 'h3'})
|
32
|
+
@html.div(:class => 'block') do
|
33
|
+
|
34
|
+
# contact - contact ID
|
35
|
+
unless hContact[:contactId].nil?
|
36
|
+
@html.em('Contact ID: ')
|
37
|
+
@html.text!(hContact[:contactId])
|
38
|
+
@html.br
|
39
|
+
end
|
40
|
+
|
41
|
+
# contact - isOrganization
|
42
|
+
@html.em('is Organization: ')
|
43
|
+
@html.text!(hContact[:isOrganization].to_s)
|
44
|
+
@html.br
|
45
|
+
|
46
|
+
# contact - type
|
47
|
+
unless hContact[:contactType].nil?
|
48
|
+
@html.em('Contact Type: ')
|
49
|
+
@html.text!(hContact[:contactType])
|
50
|
+
@html.br
|
51
|
+
end
|
52
|
+
|
53
|
+
# contact - position
|
54
|
+
unless hContact[:positionName].nil?
|
55
|
+
@html.em('Position Name: ')
|
56
|
+
@html.text!(hContact[:positionName])
|
57
|
+
@html.br
|
58
|
+
end
|
59
|
+
|
60
|
+
# contact - member of organizations []
|
61
|
+
hContact[:memberOfOrgs].each do |org|
|
62
|
+
hMember = Html_Document.getContact(org)
|
63
|
+
unless hMember.empty?
|
64
|
+
@html.em('is Member of: ')
|
65
|
+
@html.a(hMember[:name], 'href' => '#CID_'+hMember[:contactId])
|
66
|
+
@html.br
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
# contact - address
|
71
|
+
hContact[:addresses].each do |hAddress|
|
72
|
+
@html.div do
|
73
|
+
@html.div('Address', {'class' => 'h5'})
|
74
|
+
@html.div(:class => 'block') do
|
75
|
+
|
76
|
+
# address - delivery points
|
77
|
+
hAddress[:deliveryPoints].each do |addLine|
|
78
|
+
@html.text!(addLine)
|
79
|
+
@html.br
|
80
|
+
end
|
81
|
+
|
82
|
+
# address - city, adminArea postalCode
|
83
|
+
unless hAddress[:city].nil?
|
84
|
+
@html.text!(hAddress[:city])
|
85
|
+
end
|
86
|
+
unless hAddress[:adminArea].nil?
|
87
|
+
@html.text!(', ' + hAddress[:adminArea])
|
88
|
+
end
|
89
|
+
unless hAddress[:postalCode].nil?
|
90
|
+
@html.text!(' ' + hAddress[:postalCode])
|
91
|
+
end
|
92
|
+
@html.br
|
93
|
+
|
94
|
+
# address - country
|
95
|
+
unless hAddress[:country].nil?
|
96
|
+
@html.text!(hAddress[:country])
|
97
|
+
@html.br
|
98
|
+
end
|
99
|
+
|
100
|
+
# address - type
|
101
|
+
hAddress[:addressTypes].each do |addType|
|
102
|
+
@html.em('Address Type: ')
|
103
|
+
@html.text!(addType)
|
104
|
+
@html.br
|
105
|
+
end
|
106
|
+
|
107
|
+
# address - description
|
108
|
+
if hAddress[:description]
|
109
|
+
@html.em('Description: ')
|
110
|
+
@html.text!(hAddress[:description])
|
111
|
+
@html.br
|
112
|
+
end
|
113
|
+
|
114
|
+
end
|
115
|
+
end
|
116
|
+
end
|
117
|
+
|
118
|
+
|
119
|
+
# contact - phones
|
120
|
+
hContact[:phones].each do |hPhone|
|
121
|
+
@html.div do
|
122
|
+
@html.div('Phone', {'class' => 'h5'})
|
123
|
+
@html.div(:class => 'block') do
|
124
|
+
|
125
|
+
# phone - name
|
126
|
+
unless hPhone[:phoneName].nil?
|
127
|
+
@html.em('Phone Name: ')
|
128
|
+
@html.text!(hPhone[:phoneName])
|
129
|
+
@html.br
|
130
|
+
end
|
131
|
+
|
132
|
+
# phone - number
|
133
|
+
unless hPhone[:phoneNumber].nil?
|
134
|
+
@html.em('Phone Number: ')
|
135
|
+
@html.text!(hPhone[:phoneNumber])
|
136
|
+
@html.br
|
137
|
+
end
|
138
|
+
|
139
|
+
# phone - service types
|
140
|
+
unless hPhone[:phoneServiceTypes].empty?
|
141
|
+
@html.em('Service Types: ')
|
142
|
+
hPhone[:phoneServiceTypes].each do |phoneType|
|
143
|
+
@html.text!(phoneType + ' ')
|
144
|
+
end
|
145
|
+
@html.br
|
146
|
+
end
|
147
|
+
|
148
|
+
end
|
149
|
+
end
|
150
|
+
end
|
151
|
+
|
152
|
+
# contact - email []
|
153
|
+
hContact[:eMailList].each do |email|
|
154
|
+
@html.em('Electronic Mail: ')
|
155
|
+
@html.text!(email)
|
156
|
+
@html.br
|
157
|
+
end
|
158
|
+
|
159
|
+
# contact - online resource []
|
160
|
+
hContact[:onlineResources].each do |hOnline|
|
161
|
+
@html.div do
|
162
|
+
@html.div('Online Resource', {'class' => 'h5'})
|
163
|
+
@html.div(:class => 'block') do
|
164
|
+
onlineClass.writeHtml(hOnline)
|
165
|
+
end
|
166
|
+
end
|
167
|
+
end
|
168
|
+
|
169
|
+
# contact - logos []
|
170
|
+
hContact[:logos].each do |hLogo|
|
171
|
+
@html.div do
|
172
|
+
@html.div('Logo Graphic', {'class' => 'h5'})
|
173
|
+
@html.div(:class => 'block') do
|
174
|
+
graphicClass.writeHtml(hLogo)
|
175
|
+
end
|
176
|
+
end
|
177
|
+
end
|
178
|
+
|
179
|
+
# contact - hours of service []
|
180
|
+
hContact[:hoursOfService].each do |hours|
|
181
|
+
@html.em('Hours of Service: ')
|
182
|
+
@html.text!(hours)
|
183
|
+
@html.br
|
184
|
+
end
|
185
|
+
|
186
|
+
# contact - instructions
|
187
|
+
unless hContact[:contactInstructions].nil?
|
188
|
+
@html.em('Contact Instructions: ')
|
189
|
+
@html.text!(hContact[:contactInstructions])
|
190
|
+
@html.br
|
191
|
+
end
|
192
|
+
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
196
|
+
end # writeHtml
|
197
|
+
end # Html_Contact
|
198
|
+
|
199
|
+
end
|
200
|
+
end
|
201
|
+
end
|
202
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
# HTML writer
|
2
|
+
# coordinate resolution
|
3
|
+
|
4
|
+
# History:
|
5
|
+
# Stan Smith 2017-10-20 original script
|
6
|
+
|
7
|
+
module ADIWG
|
8
|
+
module Mdtranslator
|
9
|
+
module Writers
|
10
|
+
module Simple_html
|
11
|
+
|
12
|
+
class Html_CoordinateResolution
|
13
|
+
|
14
|
+
def initialize(html)
|
15
|
+
@html = html
|
16
|
+
end
|
17
|
+
|
18
|
+
def writeHtml(hCoordRes)
|
19
|
+
|
20
|
+
# coordinate resolution - abscissa
|
21
|
+
unless hCoordRes[:abscissaResolutionX].nil?
|
22
|
+
@html.em('X Resolution (abscissa): ')
|
23
|
+
@html.text!(hCoordRes[:abscissaResolutionX].to_s)
|
24
|
+
@html.br
|
25
|
+
end
|
26
|
+
|
27
|
+
# coordinate resolution - ordinate
|
28
|
+
unless hCoordRes[:ordinateResolutionY].nil?
|
29
|
+
@html.em('Y Resolution (ordinate): ')
|
30
|
+
@html.text!(hCoordRes[:ordinateResolutionY].to_s)
|
31
|
+
@html.br
|
32
|
+
end
|
33
|
+
|
34
|
+
# coordinate resolution - unit of measure
|
35
|
+
unless hCoordRes[:unitOfMeasure].nil?
|
36
|
+
@html.em('Units of Measure: ')
|
37
|
+
@html.text!(hCoordRes[:unitOfMeasure])
|
38
|
+
@html.br
|
39
|
+
end
|
40
|
+
|
41
|
+
end # writeHtml
|
42
|
+
end # Html_CoordinateResolution
|
43
|
+
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,81 @@
|
|
1
|
+
# HTML writer
|
2
|
+
# coverage 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
|
+
require_relative 'html_attributeGroup'
|
10
|
+
require_relative 'html_imageInfo'
|
11
|
+
|
12
|
+
module ADIWG
|
13
|
+
module Mdtranslator
|
14
|
+
module Writers
|
15
|
+
module Simple_html
|
16
|
+
|
17
|
+
class Html_CoverageInfo
|
18
|
+
|
19
|
+
def initialize(html)
|
20
|
+
@html = html
|
21
|
+
end
|
22
|
+
|
23
|
+
def writeHtml(hCoverage)
|
24
|
+
|
25
|
+
# classes used
|
26
|
+
identifierClass = Html_Identifier.new(@html)
|
27
|
+
attGroupClass = Html_AttributeGroup.new(@html)
|
28
|
+
imageClass = Html_ImageInfo.new(@html)
|
29
|
+
|
30
|
+
# coverage - name
|
31
|
+
unless hCoverage[:coverageName].nil?
|
32
|
+
@html.em('Name: ')
|
33
|
+
@html.text!(hCoverage[:coverageName])
|
34
|
+
@html.br
|
35
|
+
end
|
36
|
+
|
37
|
+
# coverage - description
|
38
|
+
unless hCoverage[:coverageDescription].nil?
|
39
|
+
@html.em('Description: ')
|
40
|
+
@html.div(:class => 'block') do
|
41
|
+
@html.text!(hCoverage[:coverageDescription])
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
# coverage - process level code
|
46
|
+
unless hCoverage[:processingLevelCode].empty?
|
47
|
+
@html.div do
|
48
|
+
@html.div('Processing Level Code', {'class' => 'h5'})
|
49
|
+
@html.div(:class => 'block') do
|
50
|
+
identifierClass.writeHtml(hCoverage[:processingLevelCode])
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
# coverage - attribute group [] {attributeGroup}
|
56
|
+
hCoverage[:attributeGroups].each do |hAttGroup|
|
57
|
+
@html.div do
|
58
|
+
@html.div('Attribute Group', {'class' => 'h5'})
|
59
|
+
@html.div(:class => 'block') do
|
60
|
+
attGroupClass.writeHtml(hAttGroup)
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
# coverage - image description {imageInfo}
|
66
|
+
unless hCoverage[:imageDescription].empty?
|
67
|
+
@html.div do
|
68
|
+
@html.div('Image Description', {'class' => 'h5'})
|
69
|
+
@html.div(:class => 'block') do
|
70
|
+
imageClass.writeHtml(hCoverage[:imageDescription])
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
end # writeHtml
|
76
|
+
end # Html_CoverageInfo
|
77
|
+
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
@@ -0,0 +1,126 @@
|
|
1
|
+
# HTML writer
|
2
|
+
# data dictionary
|
3
|
+
|
4
|
+
# History:
|
5
|
+
# Stan Smith 2017-11-09 add data dictionary description
|
6
|
+
# Stan Smith 2017-04-05 refactored for mdTranslator 2.0
|
7
|
+
# Stan Smith 2015-07-16 refactored to remove global namespace $HtmlNS
|
8
|
+
# Stan Smith 2015-03-26 original script
|
9
|
+
|
10
|
+
require_relative 'html_citation'
|
11
|
+
require_relative 'html_locale'
|
12
|
+
require_relative 'html_responsibility'
|
13
|
+
require_relative 'html_domain'
|
14
|
+
require_relative 'html_entity'
|
15
|
+
|
16
|
+
module ADIWG
|
17
|
+
module Mdtranslator
|
18
|
+
module Writers
|
19
|
+
module Simple_html
|
20
|
+
|
21
|
+
class Html_DataDictionary
|
22
|
+
|
23
|
+
def initialize(html)
|
24
|
+
@html = html
|
25
|
+
end
|
26
|
+
|
27
|
+
def writeHtml(hDictionary)
|
28
|
+
|
29
|
+
# classes used
|
30
|
+
citationClass = Html_Citation.new(@html)
|
31
|
+
localeClass = Html_Locale.new(@html)
|
32
|
+
responsibilityClass = Html_Responsibility.new(@html)
|
33
|
+
domainClass = Html_Domain.new(@html)
|
34
|
+
entityClass = Html_Entity.new(@html)
|
35
|
+
|
36
|
+
# dictionary - description
|
37
|
+
unless hDictionary[:description].nil?
|
38
|
+
@html.em('Dictionary Description:')
|
39
|
+
@html.div(:class => 'block') do
|
40
|
+
@html.text!(hDictionary[:description])
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
# dictionary - subjects []
|
45
|
+
hDictionary[:subjects].each do |subject|
|
46
|
+
@html.em('Subject: ')
|
47
|
+
@html.text!(subject)
|
48
|
+
@html.br
|
49
|
+
end
|
50
|
+
|
51
|
+
# dictionary - domains [] {domain}
|
52
|
+
unless hDictionary[:domains].empty?
|
53
|
+
@html.div do
|
54
|
+
@html.div('Domains', {'class' => 'h5'})
|
55
|
+
@html.div(:class => 'block') do
|
56
|
+
domainClass.writeHtml(hDictionary[:domains])
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
# dictionary - entities [] {entity}
|
62
|
+
unless hDictionary[:entities].empty?
|
63
|
+
@html.div do
|
64
|
+
@html.div('Entities', {'class' => 'h5'})
|
65
|
+
@html.div(:class => 'block') do
|
66
|
+
entityClass.writeHtml(hDictionary[:entities])
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
# dictionary - citation {citation}
|
72
|
+
unless hDictionary[:citation].empty?
|
73
|
+
@html.div do
|
74
|
+
@html.div('Citation', {'class' => 'h5'})
|
75
|
+
@html.div(:class => 'block') do
|
76
|
+
citationClass.writeHtml(hDictionary[:citation])
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
# dictionary - locales {locale}
|
82
|
+
hDictionary[:locales].each do |hLocale|
|
83
|
+
@html.div do
|
84
|
+
@html.div('Locale', {'class' => 'h5'})
|
85
|
+
@html.div(:class => 'block') do
|
86
|
+
localeClass.writeHtml(hLocale)
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
# dictionary - responsible party {responsibility}
|
92
|
+
unless hDictionary[:responsibleParty].empty?
|
93
|
+
@html.div do
|
94
|
+
@html.div(hDictionary[:responsibleParty][:roleName], {'class' => 'h5'})
|
95
|
+
@html.div(:class => 'block') do
|
96
|
+
responsibilityClass.writeHtml(hDictionary[:responsibleParty])
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
# dictionary - recommended uses []
|
102
|
+
hDictionary[:recommendedUses].each do |use|
|
103
|
+
@html.em('Recommended Use: ')
|
104
|
+
@html.text!(use)
|
105
|
+
@html.br
|
106
|
+
end
|
107
|
+
|
108
|
+
# dictionary - dictionary functional language
|
109
|
+
unless hDictionary[:dictionaryFunctionalLanguage].nil?
|
110
|
+
@html.em('Dictionary Functional Language: ')
|
111
|
+
@html.text!(hDictionary[:dictionaryFunctionalLanguage])
|
112
|
+
@html.br
|
113
|
+
end
|
114
|
+
|
115
|
+
# dictionary - included with dataset {Boolean}
|
116
|
+
@html.em('Dictionary Included with Dataset?: ')
|
117
|
+
@html.text!(hDictionary[:includedWithDataset].to_s)
|
118
|
+
@html.br
|
119
|
+
|
120
|
+
end # writeHtml
|
121
|
+
end # Html_DataDictionary
|
122
|
+
|
123
|
+
end
|
124
|
+
end
|
125
|
+
end
|
126
|
+
end
|
@@ -0,0 +1,60 @@
|
|
1
|
+
require_relative 'html_citation'
|
2
|
+
|
3
|
+
module ADIWG
|
4
|
+
module Mdtranslator
|
5
|
+
module Writers
|
6
|
+
module Simple_html
|
7
|
+
class Html_DataQuality
|
8
|
+
def initialize(html)
|
9
|
+
@html = html
|
10
|
+
end
|
11
|
+
|
12
|
+
def writeHtml(hDataQuality)
|
13
|
+
citationClass = Html_Citation.new(@html)
|
14
|
+
scopeClass = Html_Scope.new(@html)
|
15
|
+
|
16
|
+
unless hDataQuality[:scope].nil? || hDataQuality[:scope].empty?
|
17
|
+
@html.div(class: 'block') do
|
18
|
+
@html.div do
|
19
|
+
@html.div('Scope', {'class' => 'h5'})
|
20
|
+
@html.div(class: 'block') do
|
21
|
+
scopeClass.writeHtml(hDataQuality[:scope])
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
|
28
|
+
unless hDataQuality[:standaloneQualityReport].nil? ||
|
29
|
+
( hDataQuality[:standaloneQualityReport][:abstract].nil? &&
|
30
|
+
hDataQuality[:standaloneQualityReport][:reportReference].nil? )
|
31
|
+
report = hDataQuality[:standaloneQualityReport]
|
32
|
+
|
33
|
+
@html.div(class: 'block') do
|
34
|
+
@html.div do
|
35
|
+
@html.div('Standalone Quality Report', {'class' => 'h5'})
|
36
|
+
unless report[:abstract].nil?
|
37
|
+
@html.div(class: 'block') do
|
38
|
+
@html.em('Abstract:')
|
39
|
+
@html.text!(report[:abstract])
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
unless report[:reportReference].nil?
|
44
|
+
@html.div do
|
45
|
+
@html.div('Report Reference', {'class' => 'h5'})
|
46
|
+
@html.div(class: 'block') do
|
47
|
+
citationClass.writeHtml(report[:reportReference])
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# HTML writer
|
2
|
+
# date
|
3
|
+
|
4
|
+
# History:
|
5
|
+
# Stan Smith 2015-03-23 original script
|
6
|
+
|
7
|
+
module ADIWG
|
8
|
+
module Mdtranslator
|
9
|
+
module Writers
|
10
|
+
module Simple_html
|
11
|
+
|
12
|
+
class Html_Date
|
13
|
+
|
14
|
+
def initialize(html)
|
15
|
+
@html = html
|
16
|
+
end
|
17
|
+
|
18
|
+
def writeHtml(hDate)
|
19
|
+
|
20
|
+
date = hDate[:date]
|
21
|
+
dateRes = hDate[:dateResolution]
|
22
|
+
dateStr = ''
|
23
|
+
|
24
|
+
unless date.nil?
|
25
|
+
case dateRes
|
26
|
+
when 'Y', 'YM', 'YMD'
|
27
|
+
dateStr = AdiwgDateTimeFun.stringDateFromDateTime(date, dateRes)
|
28
|
+
else
|
29
|
+
dateStr = AdiwgDateTimeFun.stringDateTimeFromDateTime(date, dateRes)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
# datetime - required
|
34
|
+
@html.text!(hDate[:dateType] + ': ' + dateStr)
|
35
|
+
|
36
|
+
end # writeHtml
|
37
|
+
end # Html_Date
|
38
|
+
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|