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,78 @@
|
|
1
|
+
# HTML writer
|
2
|
+
# geometry collection
|
3
|
+
|
4
|
+
# History:
|
5
|
+
# Stan Smith 2017-04-06 original script
|
6
|
+
|
7
|
+
require_relative 'html_geometryObject'
|
8
|
+
require_relative 'html_boundingBox'
|
9
|
+
|
10
|
+
module ADIWG
|
11
|
+
module Mdtranslator
|
12
|
+
module Writers
|
13
|
+
module Simple_html
|
14
|
+
|
15
|
+
class Html_GeometryCollection
|
16
|
+
|
17
|
+
def initialize(html)
|
18
|
+
@html = html
|
19
|
+
end
|
20
|
+
|
21
|
+
def writeHtml(hCollection)
|
22
|
+
|
23
|
+
# classes used
|
24
|
+
geometryClass = Html_GeometryObject.new(@html)
|
25
|
+
boxClass = Html_BoundingBox.new(@html)
|
26
|
+
|
27
|
+
# geometry collection - objects
|
28
|
+
hCollection[:geometryObjects].each do |hObject|
|
29
|
+
@html.div do
|
30
|
+
@html.div(hObject[:type], 'class' => 'h5')
|
31
|
+
@html.div(:class => 'block') do
|
32
|
+
geometryClass.writeHtml(hObject)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
# geometry collection - user bounding box
|
38
|
+
unless hCollection[:bbox].empty?
|
39
|
+
@html.div do
|
40
|
+
@html.div('User Provided Bounding Box', 'class' => 'h5')
|
41
|
+
@html.div(:class => 'block') do
|
42
|
+
bbox = {}
|
43
|
+
bbox[:westLongitude] = hCollection[:bbox][0]
|
44
|
+
bbox[:eastLongitude] = hCollection[:bbox][2]
|
45
|
+
bbox[:southLatitude] = hCollection[:bbox][1]
|
46
|
+
bbox[:northLatitude] = hCollection[:bbox][3]
|
47
|
+
boxClass.writeHtml(bbox)
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
# geometry collection - computed bounding box
|
53
|
+
unless hCollection[:computedBbox].empty?
|
54
|
+
@html.div do
|
55
|
+
@html.div('Computed Bounding Box', 'class' => 'h5')
|
56
|
+
@html.div(:class => 'block') do
|
57
|
+
boxClass.writeHtml(hCollection[:computedBbox])
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
# geographic element - native GeoJson
|
63
|
+
unless hCollection[:nativeGeoJson].empty?
|
64
|
+
@html.div do
|
65
|
+
@html.div('GeoJson', 'class' => 'h5')
|
66
|
+
@html.div(:class => 'block') do
|
67
|
+
@html.text!(hCollection[:nativeGeoJson].to_json)
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
end # writeHtml
|
73
|
+
end # Html_GeometryCollection
|
74
|
+
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
# HTML writer
|
2
|
+
# geometry object
|
3
|
+
|
4
|
+
# History:
|
5
|
+
# Stan Smith 2017-04-06 original script
|
6
|
+
|
7
|
+
module ADIWG
|
8
|
+
module Mdtranslator
|
9
|
+
module Writers
|
10
|
+
module Simple_html
|
11
|
+
|
12
|
+
class Html_GeometryObject
|
13
|
+
|
14
|
+
def initialize(html)
|
15
|
+
@html = html
|
16
|
+
end
|
17
|
+
|
18
|
+
def writeHtml(hObject)
|
19
|
+
|
20
|
+
# geometry object - coordinates
|
21
|
+
unless hObject[:coordinates].nil?
|
22
|
+
@html.div do
|
23
|
+
@html.div('Coordinates', 'class' => 'h5')
|
24
|
+
@html.div(:class => 'block') do
|
25
|
+
@html.text!(hObject[:coordinates].to_s)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
# geographic element - native GeoJson
|
31
|
+
unless hObject[:nativeGeoJson].empty?
|
32
|
+
@html.div do
|
33
|
+
@html.div('GeoJson', 'class' => 'h5')
|
34
|
+
@html.div(:class => 'block') do
|
35
|
+
@html.text!(hObject[:nativeGeoJson].to_json)
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
end # writeHtml
|
41
|
+
end # Html_GeometryObject
|
42
|
+
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
@@ -0,0 +1,105 @@
|
|
1
|
+
# HTML writer
|
2
|
+
# georectified representation
|
3
|
+
|
4
|
+
# History:
|
5
|
+
# Stan Smith 2017-03-28 original script
|
6
|
+
|
7
|
+
require_relative 'html_gridRepresentation'
|
8
|
+
require_relative 'html_scope'
|
9
|
+
|
10
|
+
module ADIWG
|
11
|
+
module Mdtranslator
|
12
|
+
module Writers
|
13
|
+
module Simple_html
|
14
|
+
|
15
|
+
class Html_GeorectifiedRepresentation
|
16
|
+
|
17
|
+
def initialize(html)
|
18
|
+
@html = html
|
19
|
+
end
|
20
|
+
|
21
|
+
def writeHtml(hGeorectified)
|
22
|
+
|
23
|
+
# classes used
|
24
|
+
gridClass = Html_GridRepresentation.new(@html)
|
25
|
+
scopeClass = Html_Scope.new(@html)
|
26
|
+
|
27
|
+
# georectified representation - scope
|
28
|
+
hGeorectified[:scope].each do |scope|
|
29
|
+
@html.div do
|
30
|
+
@html.div('Scope ', 'class' => 'h5')
|
31
|
+
@html.div(:class => 'block') do
|
32
|
+
scopeClass.writeHtml(hGeorectified[:scope])
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
# georectified representation - grid {gridRepresentation}
|
38
|
+
unless hGeorectified[:gridRepresentation].empty?
|
39
|
+
@html.div do
|
40
|
+
@html.div('Grid Information ', 'class' => 'h5')
|
41
|
+
@html.div(:class => 'block') do
|
42
|
+
gridClass.writeHtml(hGeorectified[:gridRepresentation])
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
# georectified representation - check point available {Boolean}
|
48
|
+
@html.em('Check Point Available: ')
|
49
|
+
@html.text!(hGeorectified[:checkPointAvailable].to_s)
|
50
|
+
@html.br
|
51
|
+
|
52
|
+
# georectified representation - check point description
|
53
|
+
unless hGeorectified[:checkPointDescription].nil?
|
54
|
+
@html.em('Check Point Description: ')
|
55
|
+
@html.div(:class => 'block') do
|
56
|
+
@html.text!(hGeorectified[:checkPointDescription])
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
# georectified representation - corner points [ 4 coordinates ]
|
61
|
+
unless hGeorectified[:cornerPoints].nil?
|
62
|
+
@html.em('Corner Points: ')
|
63
|
+
@html.div(:class => 'block') do
|
64
|
+
@html.text!(hGeorectified[:cornerPoints].to_s)
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
# georectified representation - center point [ 1 coordinate ]
|
69
|
+
unless hGeorectified[:centerPoint].nil?
|
70
|
+
@html.em('Center Point: ')
|
71
|
+
@html.div(:class => 'block') do
|
72
|
+
@html.text!(hGeorectified[:centerPoint].to_s)
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
# georectified representation - point in pixel
|
77
|
+
unless hGeorectified[:pointInPixel].nil?
|
78
|
+
@html.em('Point in Pixel: ')
|
79
|
+
@html.text!(hGeorectified[:pointInPixel].to_s)
|
80
|
+
@html.br
|
81
|
+
end
|
82
|
+
|
83
|
+
# georectified representation - transformation dimension description
|
84
|
+
unless hGeorectified[:transformationDimensionDescription].nil?
|
85
|
+
@html.em('Transformation Dimension Description: ')
|
86
|
+
@html.div(:class => 'block') do
|
87
|
+
@html.text!(hGeorectified[:transformationDimensionDescription])
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
# georectified representation - transformation dimension mapping
|
92
|
+
unless hGeorectified[:transformationDimensionMapping].nil?
|
93
|
+
@html.em('Transformation Dimension Mapping: ')
|
94
|
+
@html.div(:class => 'block') do
|
95
|
+
@html.text!(hGeorectified[:transformationDimensionMapping])
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
end # writeHtml
|
100
|
+
end # Html_GeorectifiedRepresentation
|
101
|
+
|
102
|
+
end
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|
data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_georeferenceableRepresentation.rb
ADDED
@@ -0,0 +1,91 @@
|
|
1
|
+
# HTML writer
|
2
|
+
# georeferenceable representation
|
3
|
+
|
4
|
+
# History:
|
5
|
+
# Stan Smith 2017-03-29 original script
|
6
|
+
|
7
|
+
require_relative 'html_gridRepresentation'
|
8
|
+
require_relative 'html_citation'
|
9
|
+
require_relative 'html_scope'
|
10
|
+
|
11
|
+
module ADIWG
|
12
|
+
module Mdtranslator
|
13
|
+
module Writers
|
14
|
+
module Simple_html
|
15
|
+
|
16
|
+
class Html_GeoreferenceableRepresentation
|
17
|
+
|
18
|
+
def initialize(html)
|
19
|
+
@html = html
|
20
|
+
end
|
21
|
+
|
22
|
+
def writeHtml(hGeoreferenceable)
|
23
|
+
|
24
|
+
# classes used
|
25
|
+
gridClass = Html_GridRepresentation.new(@html)
|
26
|
+
citationClass = Html_Citation.new(@html)
|
27
|
+
scopeClass = Html_Scope.new(@html)
|
28
|
+
|
29
|
+
# georeferenceable representation - scope
|
30
|
+
hGeoreferenceable[:scope].each do |scope|
|
31
|
+
@html.div do
|
32
|
+
@html.div('Scope ', 'class' => 'h5')
|
33
|
+
@html.div(:class => 'block') do
|
34
|
+
scopeClass.writeHtml(hGeoreferenceable[:scope])
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
|
40
|
+
# georeferenceable representation - grid {gridRepresentation}
|
41
|
+
unless hGeoreferenceable[:gridRepresentation].empty?
|
42
|
+
@html.div do
|
43
|
+
@html.div('Grid Information ', 'class' => 'h5')
|
44
|
+
@html.div(:class => 'block') do
|
45
|
+
gridClass.writeHtml(hGeoreferenceable[:gridRepresentation])
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
# georeferenceable representation - control point available {Boolean}
|
51
|
+
@html.em('Control Point Available: ')
|
52
|
+
@html.text!(hGeoreferenceable[:controlPointAvailable].to_s)
|
53
|
+
@html.br
|
54
|
+
|
55
|
+
# georeferenceable representation - orientation parameter available {Boolean}
|
56
|
+
@html.em('Orientation Parameter Available: ')
|
57
|
+
@html.text!(hGeoreferenceable[:orientationParameterAvailable].to_s)
|
58
|
+
@html.br
|
59
|
+
|
60
|
+
# georeferenceable representation - orientation parameter description
|
61
|
+
unless hGeoreferenceable[:orientationParameterDescription].nil?
|
62
|
+
@html.em('Orientation Parameter Description: ')
|
63
|
+
@html.div(:class => 'block') do
|
64
|
+
@html.text!(hGeoreferenceable[:orientationParameterDescription])
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
# georeferenceable representation - georeferenced parameter
|
69
|
+
unless hGeoreferenceable[:georeferencedParameter].nil?
|
70
|
+
@html.em('Georeferenced Parameter: ')
|
71
|
+
@html.text!(hGeoreferenceable[:georeferencedParameter])
|
72
|
+
@html.br
|
73
|
+
end
|
74
|
+
|
75
|
+
# georeferenceable representation - parameter citation {citation}
|
76
|
+
hGeoreferenceable[:parameterCitation].each do |hCitation|
|
77
|
+
@html.div do
|
78
|
+
@html.div('Parameter Citation ', 'class' => 'h5')
|
79
|
+
@html.div(:class => 'block') do
|
80
|
+
citationClass.writeHtml(hCitation)
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
end # writeHtml
|
86
|
+
end # Html_GeoreferenceableRepresentation
|
87
|
+
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
@@ -0,0 +1,75 @@
|
|
1
|
+
# HTML writer
|
2
|
+
# graphic or graphic overview
|
3
|
+
|
4
|
+
# History:
|
5
|
+
# Stan Smith 2017-03-24 refactored for mdTranslator 2.0
|
6
|
+
# Stan Smith 2015-03-24 original script
|
7
|
+
|
8
|
+
require_relative 'html_onlineResource'
|
9
|
+
require_relative 'html_constraint'
|
10
|
+
|
11
|
+
module ADIWG
|
12
|
+
module Mdtranslator
|
13
|
+
module Writers
|
14
|
+
module Simple_html
|
15
|
+
|
16
|
+
class Html_Graphic
|
17
|
+
|
18
|
+
def initialize(html)
|
19
|
+
@html = html
|
20
|
+
end
|
21
|
+
|
22
|
+
def writeHtml(hGraphic)
|
23
|
+
|
24
|
+
# classes used
|
25
|
+
onlineClass = Html_OnlineResource.new(@html)
|
26
|
+
constraintClass = Html_Constraint.new(@html)
|
27
|
+
|
28
|
+
# graphic - name
|
29
|
+
unless hGraphic[:graphicName].nil?
|
30
|
+
@html.em('Name: ')
|
31
|
+
@html.text!(hGraphic[:graphicName])
|
32
|
+
@html.br
|
33
|
+
end
|
34
|
+
|
35
|
+
# graphic - description
|
36
|
+
unless hGraphic[:graphicDescription].nil?
|
37
|
+
@html.em('Description: ')
|
38
|
+
@html.text!(hGraphic[:graphicDescription])
|
39
|
+
@html.br
|
40
|
+
end
|
41
|
+
|
42
|
+
# graphic - type
|
43
|
+
unless hGraphic[:graphicType].nil?
|
44
|
+
@html.em('Type: ')
|
45
|
+
@html.text!(hGraphic[:graphicType])
|
46
|
+
@html.br
|
47
|
+
end
|
48
|
+
|
49
|
+
# graphic - uri [] {onlineResource}
|
50
|
+
hGraphic[:graphicURI].each do |hOnline|
|
51
|
+
@html.div do
|
52
|
+
@html.div('Online Link ', {'class' => 'h5'})
|
53
|
+
@html.div(:class => 'block') do
|
54
|
+
onlineClass.writeHtml(hOnline)
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
# graphic - constraint [] {constraint}
|
60
|
+
hGraphic[:graphicConstraints].each do |hConstraint|
|
61
|
+
@html.div do
|
62
|
+
@html.div('Constraint', {'class' => 'h5'})
|
63
|
+
@html.div(:class => 'block') do
|
64
|
+
constraintClass.writeHtml(hConstraint)
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
end # writeHtml
|
70
|
+
end # Html_Graphic
|
71
|
+
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
@@ -0,0 +1,76 @@
|
|
1
|
+
# HTML writer
|
2
|
+
# grid representation
|
3
|
+
|
4
|
+
# History:
|
5
|
+
# Stan Smith 2017-03-28 refactored for mdTranslator 2.0
|
6
|
+
# Stan Smith 2015-07-31 original script
|
7
|
+
|
8
|
+
require_relative 'html_dimension'
|
9
|
+
require_relative 'html_scope'
|
10
|
+
|
11
|
+
module ADIWG
|
12
|
+
module Mdtranslator
|
13
|
+
module Writers
|
14
|
+
module Simple_html
|
15
|
+
|
16
|
+
class Html_GridRepresentation
|
17
|
+
|
18
|
+
def initialize(html)
|
19
|
+
@html = html
|
20
|
+
end
|
21
|
+
|
22
|
+
def writeHtml(hGrid)
|
23
|
+
|
24
|
+
# classes used
|
25
|
+
dimensionClass = Html_Dimension.new(@html)
|
26
|
+
scopeClass = Html_Scope.new(@html)
|
27
|
+
|
28
|
+
# grid representation - scope
|
29
|
+
hGrid[:scope].each do |scope|
|
30
|
+
@html.div do
|
31
|
+
@html.div('Scope ', 'class' => 'h5')
|
32
|
+
@html.div(:class => 'block') do
|
33
|
+
scopeClass.writeHtml(hGrid[:scope])
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
|
39
|
+
# grid representation - number of dimensions
|
40
|
+
unless hGrid[:numberOfDimensions].nil?
|
41
|
+
@html.em('Number of dimensions: ')
|
42
|
+
@html.text!(hGrid[:numberOfDimensions].to_s)
|
43
|
+
@html.br
|
44
|
+
end
|
45
|
+
|
46
|
+
# grid representation - dimension []
|
47
|
+
dimensionCount = 0
|
48
|
+
hGrid[:dimension].each do |hDimension|
|
49
|
+
dimensionCount += 1
|
50
|
+
@html.div do
|
51
|
+
@html.div('Dimension '+dimensionCount.to_s, 'class' => 'h5')
|
52
|
+
@html.div(:class => 'block') do
|
53
|
+
dimensionClass.writeHtml(hDimension)
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
end
|
58
|
+
|
59
|
+
# grid representation - cell geometry
|
60
|
+
unless hGrid[:cellGeometry].nil?
|
61
|
+
@html.em('Cell Geometry: ')
|
62
|
+
@html.text!(hGrid[:cellGeometry])
|
63
|
+
@html.br
|
64
|
+
end
|
65
|
+
|
66
|
+
# grid representation - transformation parameters available {Boolean}
|
67
|
+
@html.em('Transformation parameters available: ')
|
68
|
+
@html.text!(hGrid[:transformationParameterAvailable].to_s)
|
69
|
+
|
70
|
+
end # writeHtml
|
71
|
+
end # Html_GridRepresentation
|
72
|
+
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
@@ -0,0 +1,55 @@
|
|
1
|
+
# HTML writer
|
2
|
+
# html head
|
3
|
+
|
4
|
+
# History:
|
5
|
+
# Stan Smith 2017-03-22 refactored for mdTranslator 2.0
|
6
|
+
# Stan Smith 2015-07-20 moved mdTranslator logo to html_inlineCss.css
|
7
|
+
# Stan Smith 2015-07-17 added support for user supplied css
|
8
|
+
# Stan Smith 2015-04-07 added metadata tag to head
|
9
|
+
# Stan Smith 2015-03-23 original script
|
10
|
+
|
11
|
+
module ADIWG
|
12
|
+
module Mdtranslator
|
13
|
+
module Writers
|
14
|
+
module Simple_html
|
15
|
+
|
16
|
+
class Html_Head
|
17
|
+
def initialize(html)
|
18
|
+
@html = html
|
19
|
+
end
|
20
|
+
|
21
|
+
def writeHtml(version, cssLink)
|
22
|
+
|
23
|
+
@html.head do
|
24
|
+
@html.meta({'http-equiv' => 'Content-Type', 'content' => 'text/html; charset=utf-8'})
|
25
|
+
@html.title('HTML Metadata report')
|
26
|
+
@html.meta('name' => 'generator', 'content' => 'HTML output generated by ADIwg mdTranslator ToolKit ' + version + ' available at https://github.com/adiwg ')
|
27
|
+
@html.meta('name' => 'description', 'content' => 'mdTranslator software is an open-source project of the Alaska Data Integration working group (ADIwg). Alaska Data Integration working group is not responsible for the content of this metadata record')
|
28
|
+
@html.meta('name' => 'keywords', 'content' => 'metadata, ADIwg, mdTranslator, ISO19115')
|
29
|
+
@html.comment!('metadata record generated ' + Time.now.to_s)
|
30
|
+
|
31
|
+
# add inline css
|
32
|
+
# read css from file
|
33
|
+
path = File.join(File.dirname(__FILE__), 'html_inlineCss.css')
|
34
|
+
file = File.open(path, 'r')
|
35
|
+
css = file.read
|
36
|
+
file.close
|
37
|
+
|
38
|
+
@html.style do
|
39
|
+
@html.text!(css)
|
40
|
+
end
|
41
|
+
|
42
|
+
# append user supplied css
|
43
|
+
if cssLink
|
44
|
+
@html.link('rel' => 'stylesheet', 'href' => cssLink)
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|
48
|
+
|
49
|
+
end # writeHtml
|
50
|
+
end # Html_Head
|
51
|
+
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
@@ -0,0 +1,81 @@
|
|
1
|
+
# HTML writer
|
2
|
+
# identifier
|
3
|
+
|
4
|
+
# History:
|
5
|
+
# Stan Smith 2018-10-17 added 'name' to support projection identifiers
|
6
|
+
# Stan Smith 2017-03-23 refactor for mdTranslator 2.0
|
7
|
+
# Stan Smith 2015-08-21 expanded to handle RS_Identifier
|
8
|
+
# Stan Smith 2015-07-16 refactored to remove global namespace $HtmlNS
|
9
|
+
# Stan Smith 2015-03-24 original script
|
10
|
+
|
11
|
+
require_relative 'html_citation'
|
12
|
+
|
13
|
+
module ADIWG
|
14
|
+
module Mdtranslator
|
15
|
+
module Writers
|
16
|
+
module Simple_html
|
17
|
+
|
18
|
+
class Html_Identifier
|
19
|
+
|
20
|
+
def initialize(html)
|
21
|
+
@html = html
|
22
|
+
end
|
23
|
+
|
24
|
+
def writeHtml(hIdentifier)
|
25
|
+
|
26
|
+
# classes used
|
27
|
+
citationClass = Html_Citation.new(@html)
|
28
|
+
|
29
|
+
# identifier - identifier
|
30
|
+
unless hIdentifier[:identifier].nil?
|
31
|
+
@html.em('Identifier:')
|
32
|
+
@html.text!(hIdentifier[:identifier])
|
33
|
+
@html.br
|
34
|
+
end
|
35
|
+
|
36
|
+
# identifier - namespace
|
37
|
+
unless hIdentifier[:namespace].nil?
|
38
|
+
@html.em(' Namespace:')
|
39
|
+
@html.text!(hIdentifier[:namespace])
|
40
|
+
@html.br
|
41
|
+
end
|
42
|
+
|
43
|
+
# identifier - version
|
44
|
+
unless hIdentifier[:version].nil?
|
45
|
+
@html.em(' Version:')
|
46
|
+
@html.text!(hIdentifier[:version])
|
47
|
+
@html.br
|
48
|
+
end
|
49
|
+
|
50
|
+
# identifier - name (only in spatial reference system projection)
|
51
|
+
unless hIdentifier[:name].nil?
|
52
|
+
@html.em(' Name:')
|
53
|
+
@html.text!(hIdentifier[:name])
|
54
|
+
@html.br
|
55
|
+
end
|
56
|
+
|
57
|
+
# identifier - description
|
58
|
+
unless hIdentifier[:description].nil?
|
59
|
+
@html.em(' Description:')
|
60
|
+
@html.div(:class => 'block') do
|
61
|
+
@html.text!(hIdentifier[:description])
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
# identifier - authority {citation}
|
66
|
+
unless hIdentifier[:citation].empty?
|
67
|
+
@html.div do
|
68
|
+
@html.div('Authority', {'id' => 'metadata-identifier', 'class' => 'h5'})
|
69
|
+
@html.div(:class => 'block') do
|
70
|
+
citationClass.writeHtml(hIdentifier[:citation])
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
end # writeHtml
|
76
|
+
end # Html_Identifier
|
77
|
+
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|