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,156 @@
|
|
1
|
+
# HTML writer
|
2
|
+
# taxonomy
|
3
|
+
|
4
|
+
# History:
|
5
|
+
# Stan Smith 2018-10-19 refactored for mdJson schema 2.6.0
|
6
|
+
# Stan Smith 2017-03-30 refactored for mdTranslator 2.0
|
7
|
+
# Stan Smith 2015-07-16 refactored to remove global namespace $HtmlNS
|
8
|
+
# Stan Smith 2015-03-25 original script
|
9
|
+
|
10
|
+
require_relative 'html_citation'
|
11
|
+
require_relative 'html_responsibility'
|
12
|
+
require_relative 'html_taxonomyClass'
|
13
|
+
|
14
|
+
module ADIWG
|
15
|
+
module Mdtranslator
|
16
|
+
module Writers
|
17
|
+
module Simple_html
|
18
|
+
|
19
|
+
class Html_Taxonomy
|
20
|
+
|
21
|
+
def initialize(html)
|
22
|
+
@html = html
|
23
|
+
end
|
24
|
+
|
25
|
+
def writeHtml(hTaxonomy)
|
26
|
+
|
27
|
+
# classes used
|
28
|
+
citationClass = Html_Citation.new(@html)
|
29
|
+
responsibilityClass = Html_Responsibility.new(@html)
|
30
|
+
taxonomicClass = Html_TaxonomyClass.new(@html)
|
31
|
+
|
32
|
+
# taxonomy - taxonomic general scope
|
33
|
+
unless hTaxonomy[:generalScope].nil?
|
34
|
+
@html.em('General scope: ')
|
35
|
+
@html.div(:class => 'block') do
|
36
|
+
@html.text!(hTaxonomy[:generalScope])
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
# taxonomy - identification procedures
|
41
|
+
unless hTaxonomy[:idProcedure].nil?
|
42
|
+
@html.em('Identification Procedures: ')
|
43
|
+
@html.div(:class => 'block') do
|
44
|
+
@html.text!(hTaxonomy[:idProcedure])
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
# taxonomy - completeness
|
49
|
+
unless hTaxonomy[:idCompleteness].nil?
|
50
|
+
@html.em('Identification Completeness Statement: ')
|
51
|
+
@html.div(:class => 'block') do
|
52
|
+
@html.text!(hTaxonomy[:idCompleteness])
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
# taxonomy - taxonomic classification []
|
57
|
+
hTaxonomy[:taxonClasses].each do |hClassification|
|
58
|
+
@html.div do
|
59
|
+
@html.div('Taxonomic Classification', {'class' => 'h5'})
|
60
|
+
@html.div(:class => 'block') do
|
61
|
+
taxonomicClass.writeHtml(hClassification)
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
# taxonomy - taxonomic classification system [] {citation}
|
67
|
+
hTaxonomy[:taxonSystem].each do |hSystem|
|
68
|
+
@html.div do
|
69
|
+
@html.div('Classification System', {'class' => 'h5'})
|
70
|
+
@html.div(:class => 'block') do
|
71
|
+
|
72
|
+
# classification system citation
|
73
|
+
@html.div do
|
74
|
+
@html.div(hSystem[:citation][:title], {'class' => 'h5'})
|
75
|
+
@html.div(:class => 'block') do
|
76
|
+
citationClass.writeHtml(hSystem[:citation])
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
# modifications
|
81
|
+
unless hSystem[:modifications].nil?
|
82
|
+
@html.em('Modifications to Classification System:')
|
83
|
+
@html.div(:class => 'block') do
|
84
|
+
@html.text!(hSystem[:modifications])
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
# taxonomy - identification references
|
93
|
+
hTaxonomy[:idReferences].each do |hReference|
|
94
|
+
@html.div do
|
95
|
+
@html.div('Non-Authoritative Identification Reference', {'class' => 'h5'})
|
96
|
+
@html.div(:class => 'block') do
|
97
|
+
citationClass.writeHtml(hReference)
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
# taxonomy - observers {responsibility}
|
103
|
+
unless hTaxonomy[:observers].empty?
|
104
|
+
@html.div do
|
105
|
+
@html.div('Observers', {'class' => 'h5'})
|
106
|
+
@html.div(:class => 'block') do
|
107
|
+
hTaxonomy[:observers].each do |hObserver|
|
108
|
+
@html.div do
|
109
|
+
@html.div(hObserver[:roleName], 'class' => 'h5')
|
110
|
+
@html.div(:class => 'block') do
|
111
|
+
responsibilityClass.writeHtml(hObserver)
|
112
|
+
end
|
113
|
+
end
|
114
|
+
end
|
115
|
+
end
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
# taxonomy - voucher []
|
120
|
+
unless hTaxonomy[:observers].empty?
|
121
|
+
@html.div do
|
122
|
+
@html.div('Specimen Repositories', {'class' => 'h5'})
|
123
|
+
@html.div(:class => 'block') do
|
124
|
+
hTaxonomy[:vouchers].each do |hVoucher|
|
125
|
+
|
126
|
+
# voucher - specimen
|
127
|
+
unless hVoucher[:specimen].nil?
|
128
|
+
@html.em('Specimen: ')
|
129
|
+
@html.text!(hVoucher[:specimen])
|
130
|
+
@html.br
|
131
|
+
end
|
132
|
+
|
133
|
+
# voucher - repository {responsibility}
|
134
|
+
unless hVoucher[:repository].empty?
|
135
|
+
@html.div(:class => 'block') do
|
136
|
+
@html.div do
|
137
|
+
@html.div(hVoucher[:repository][:roleName], {'class' => 'h5'})
|
138
|
+
@html.div(:class => 'block') do
|
139
|
+
responsibilityClass.writeHtml(hVoucher[:repository])
|
140
|
+
end
|
141
|
+
end
|
142
|
+
end
|
143
|
+
end
|
144
|
+
|
145
|
+
end
|
146
|
+
end
|
147
|
+
end
|
148
|
+
end
|
149
|
+
|
150
|
+
end # writeHtml
|
151
|
+
end # Html_Taxonomy
|
152
|
+
|
153
|
+
end
|
154
|
+
end
|
155
|
+
end
|
156
|
+
end
|
@@ -0,0 +1,75 @@
|
|
1
|
+
# HTML writer
|
2
|
+
# taxonomic classification
|
3
|
+
|
4
|
+
# History:
|
5
|
+
# Stan Smith 2017-03-30 refactored for mdTranslator
|
6
|
+
# Stan Smith 2015-03-25 original script
|
7
|
+
|
8
|
+
require_relative 'html_taxonomyClass'
|
9
|
+
|
10
|
+
module ADIWG
|
11
|
+
module Mdtranslator
|
12
|
+
module Writers
|
13
|
+
module Simple_html
|
14
|
+
|
15
|
+
class Html_TaxonomyClass
|
16
|
+
|
17
|
+
def initialize(html)
|
18
|
+
@html = html
|
19
|
+
end
|
20
|
+
|
21
|
+
def writeHtml(hTaxon)
|
22
|
+
|
23
|
+
# classes used
|
24
|
+
subClass = Html_TaxonomyClass.new(@html)
|
25
|
+
|
26
|
+
# taxonomic classification - id
|
27
|
+
unless hTaxon[:taxonId].nil?
|
28
|
+
@html.em('Taxonomic ID: ')
|
29
|
+
@html.text!(hTaxon[:taxonId])
|
30
|
+
@html.br
|
31
|
+
end
|
32
|
+
|
33
|
+
# taxonomic classification - level
|
34
|
+
unless hTaxon[:taxonRank].nil?
|
35
|
+
@html.em('Taxonomic Level: ')
|
36
|
+
@html.text!(hTaxon[:taxonRank])
|
37
|
+
@html.br
|
38
|
+
end
|
39
|
+
|
40
|
+
# taxonomic classification - name
|
41
|
+
unless hTaxon[:taxonValue].nil?
|
42
|
+
@html.em('Taxonomic Name: ')
|
43
|
+
@html.text!(hTaxon[:taxonValue])
|
44
|
+
@html.br
|
45
|
+
end
|
46
|
+
|
47
|
+
# taxonomic classification - common names []
|
48
|
+
unless hTaxon[:commonNames].empty?
|
49
|
+
@html.em('Common Names:')
|
50
|
+
@html.ul do
|
51
|
+
hTaxon[:commonNames].each do |common|
|
52
|
+
@html.li(common)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
# taxonomic classification - sub-classification
|
58
|
+
unless hTaxon[:subClasses].empty?
|
59
|
+
hTaxon[:subClasses].each do |hSubClass|
|
60
|
+
@html.div do
|
61
|
+
@html.div('Sub-Classification', {'class' => 'h5'})
|
62
|
+
@html.div(:class => 'block') do
|
63
|
+
subClass.writeHtml(hSubClass)
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
end # writeHtml
|
70
|
+
end # Html_TaxonomyClass
|
71
|
+
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
@@ -0,0 +1,65 @@
|
|
1
|
+
# HTML writer
|
2
|
+
# temporal extent
|
3
|
+
|
4
|
+
# History:
|
5
|
+
# Stan Smith 2017-11-09 remove subheadings
|
6
|
+
# Stan Smith 2017-11-09 add geologic age
|
7
|
+
# Stan Smith 2017-03-25 refactored for mdTranslator 2.0
|
8
|
+
# Stan Smith 2015-07-16 refactored to remove global namespace $HtmlNS
|
9
|
+
# Stan Smith 2015-04-03 original script
|
10
|
+
|
11
|
+
require_relative 'html_timePeriod'
|
12
|
+
require_relative 'html_timeInstant'
|
13
|
+
|
14
|
+
module ADIWG
|
15
|
+
module Mdtranslator
|
16
|
+
module Writers
|
17
|
+
module Simple_html
|
18
|
+
|
19
|
+
class Html_TemporalExtent
|
20
|
+
|
21
|
+
def initialize(html)
|
22
|
+
@html = html
|
23
|
+
end
|
24
|
+
|
25
|
+
def writeHtml(hExtent)
|
26
|
+
|
27
|
+
# classes used
|
28
|
+
periodClass = Html_TimePeriod.new(@html)
|
29
|
+
instantClass = Html_TimeInstant.new(@html)
|
30
|
+
|
31
|
+
# temporal element - time instant {timeInstant}
|
32
|
+
unless hExtent[:timeInstant].empty?
|
33
|
+
hInstant = hExtent[:timeInstant][:timeInstant]
|
34
|
+
hGeoAge = hExtent[:timeInstant][:geologicAge]
|
35
|
+
unless hInstant.empty?
|
36
|
+
@html.h5('Time Instant')
|
37
|
+
end
|
38
|
+
unless hGeoAge.empty?
|
39
|
+
@html.h5('Geologic Age')
|
40
|
+
end
|
41
|
+
instantClass.writeHtml(hExtent[:timeInstant])
|
42
|
+
end
|
43
|
+
|
44
|
+
# temporal element - time period {timePeriod}
|
45
|
+
unless hExtent[:timePeriod].empty?
|
46
|
+
hStartDate = hExtent[:timePeriod][:startDateTime]
|
47
|
+
hEndDate = hExtent[:timePeriod][:endDateTime]
|
48
|
+
hStartAge = hExtent[:timePeriod][:startGeologicAge]
|
49
|
+
hEndAge = hExtent[:timePeriod][:endGeologicAge]
|
50
|
+
unless hStartDate.empty? && hEndDate.empty?
|
51
|
+
@html.h5('Time Period')
|
52
|
+
end
|
53
|
+
unless hStartAge.empty? && hEndAge.empty?
|
54
|
+
@html.h5('Geologic Period')
|
55
|
+
end
|
56
|
+
periodClass.writeHtml(hExtent[:timePeriod])
|
57
|
+
end
|
58
|
+
|
59
|
+
end # writeHtml
|
60
|
+
end # Html_TemporalExtent
|
61
|
+
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
@@ -0,0 +1,82 @@
|
|
1
|
+
# HTML writer
|
2
|
+
# time instant
|
3
|
+
|
4
|
+
# History:
|
5
|
+
# Stan Smith 2017-11-09 add geologic age
|
6
|
+
# Stan Smith 2017-03-26 refactored for mdTranslator 2.0
|
7
|
+
# Stan Smith 2015-07-16 refactored to remove global namespace $HtmlNS
|
8
|
+
# Stan Smith 2015-04-03 original script
|
9
|
+
|
10
|
+
require_relative 'html_identifier'
|
11
|
+
require_relative 'html_datetime'
|
12
|
+
require_relative 'html_geologicAge'
|
13
|
+
|
14
|
+
module ADIWG
|
15
|
+
module Mdtranslator
|
16
|
+
module Writers
|
17
|
+
module Simple_html
|
18
|
+
|
19
|
+
class Html_TimeInstant
|
20
|
+
|
21
|
+
def initialize(html)
|
22
|
+
@html = html
|
23
|
+
end
|
24
|
+
|
25
|
+
def writeHtml(hInstant)
|
26
|
+
|
27
|
+
# classes used
|
28
|
+
identifierClass = Html_Identifier.new(@html)
|
29
|
+
datetimeClass = Html_Datetime.new(@html)
|
30
|
+
geoAgeClass = Html_GeologicAge.new(@html)
|
31
|
+
|
32
|
+
# time instant - id
|
33
|
+
unless hInstant[:timeId].nil?
|
34
|
+
@html.em('Instant ID: ')
|
35
|
+
@html.text!(hInstant[:timeId])
|
36
|
+
@html.br
|
37
|
+
end
|
38
|
+
|
39
|
+
# time instant - instant name []
|
40
|
+
hInstant[:instantNames].each do |iName|
|
41
|
+
@html.em('Instant Name: ')
|
42
|
+
@html.text!(iName)
|
43
|
+
@html.br
|
44
|
+
end
|
45
|
+
|
46
|
+
# time instant - dateTime
|
47
|
+
unless hInstant[:timeInstant].empty?
|
48
|
+
@html.em('DateTime: ')
|
49
|
+
@html.text!(datetimeClass.writeHtml(hInstant[:timeInstant]))
|
50
|
+
@html.br
|
51
|
+
end
|
52
|
+
|
53
|
+
# time instant - description
|
54
|
+
unless hInstant[:description].nil?
|
55
|
+
@html.em('Description: ')
|
56
|
+
@html.div(:class => 'block') do
|
57
|
+
@html.text!(hInstant[:description])
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
# time instant - geologic age
|
62
|
+
unless hInstant[:geologicAge].empty?
|
63
|
+
geoAgeClass.writeHtml(hInstant[:geologicAge])
|
64
|
+
end
|
65
|
+
|
66
|
+
# time instant - identifier {identifier}
|
67
|
+
unless hInstant[:identifier].empty?
|
68
|
+
@html.div do
|
69
|
+
@html.div('Identifier', 'class' => 'h5')
|
70
|
+
@html.div(:class => 'block') do
|
71
|
+
identifierClass.writeHtml(hInstant[:identifier])
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
end # writeHtml
|
77
|
+
end # Html_TimeInstant
|
78
|
+
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# HTML writer
|
2
|
+
# time interval
|
3
|
+
|
4
|
+
# History:
|
5
|
+
# Stan Smith 2017-03-27 original script
|
6
|
+
|
7
|
+
module ADIWG
|
8
|
+
module Mdtranslator
|
9
|
+
module Writers
|
10
|
+
module Simple_html
|
11
|
+
|
12
|
+
class Html_TimeInterval
|
13
|
+
|
14
|
+
def initialize(html)
|
15
|
+
@html = html
|
16
|
+
end
|
17
|
+
|
18
|
+
def writeHtml(hInterval)
|
19
|
+
|
20
|
+
# time interval - interval
|
21
|
+
unless hInterval[:interval].nil?
|
22
|
+
@html.em('Interval: ')
|
23
|
+
@html.text!(hInterval[:interval].to_s)
|
24
|
+
@html.br
|
25
|
+
end
|
26
|
+
|
27
|
+
# time interval - units
|
28
|
+
unless hInterval[:units].nil?
|
29
|
+
@html.em('Units: ')
|
30
|
+
@html.text!(hInterval[:units])
|
31
|
+
@html.br
|
32
|
+
end
|
33
|
+
|
34
|
+
end # writeHtml
|
35
|
+
end # Html_TimeInterval
|
36
|
+
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,128 @@
|
|
1
|
+
# HTML writer
|
2
|
+
# time period
|
3
|
+
|
4
|
+
# History:
|
5
|
+
# Stan Smith 2017-11-09 add geologic age
|
6
|
+
# Stan Smith 2017-03-26 refactored for mdTranslator 2.0
|
7
|
+
# Stan Smith 2015-07-16 refactored to remove global namespace $HtmlNS
|
8
|
+
# Stan Smith 2015-03-23 original script
|
9
|
+
|
10
|
+
require_relative 'html_datetime'
|
11
|
+
require_relative 'html_geologicAge'
|
12
|
+
require_relative 'html_identifier'
|
13
|
+
require_relative 'html_timeInterval'
|
14
|
+
require_relative 'html_duration'
|
15
|
+
|
16
|
+
module ADIWG
|
17
|
+
module Mdtranslator
|
18
|
+
module Writers
|
19
|
+
module Simple_html
|
20
|
+
|
21
|
+
class Html_TimePeriod
|
22
|
+
|
23
|
+
def initialize(html)
|
24
|
+
@html = html
|
25
|
+
end
|
26
|
+
|
27
|
+
def writeHtml(hPeriod)
|
28
|
+
|
29
|
+
# classes used
|
30
|
+
datetimeClass = Html_Datetime.new(@html)
|
31
|
+
geoAgeClass = Html_GeologicAge.new(@html)
|
32
|
+
identifierClass = Html_Identifier.new(@html)
|
33
|
+
intervalClass = Html_TimeInterval.new(@html)
|
34
|
+
durationClass = Html_Duration.new(@html)
|
35
|
+
|
36
|
+
# time period - id
|
37
|
+
unless hPeriod[:timeId].nil?
|
38
|
+
@html.em('Period ID: ')
|
39
|
+
@html.text!(hPeriod[:timeId])
|
40
|
+
@html.br
|
41
|
+
end
|
42
|
+
|
43
|
+
# time period - name []
|
44
|
+
hPeriod[:periodNames].each do |iName|
|
45
|
+
@html.em('Period Name: ')
|
46
|
+
@html.text!(iName)
|
47
|
+
@html.br
|
48
|
+
end
|
49
|
+
|
50
|
+
# time period - start datetime
|
51
|
+
unless hPeriod[:startDateTime].empty?
|
52
|
+
@html.em('Start Datetime: ')
|
53
|
+
@html.text!(datetimeClass.writeHtml(hPeriod[:startDateTime]))
|
54
|
+
@html.br
|
55
|
+
end
|
56
|
+
|
57
|
+
# time period - end datetime
|
58
|
+
unless hPeriod[:endDateTime].empty?
|
59
|
+
@html.em('End Datetime: ')
|
60
|
+
@html.text!(datetimeClass.writeHtml(hPeriod[:endDateTime]))
|
61
|
+
@html.br
|
62
|
+
end
|
63
|
+
|
64
|
+
# time period - description
|
65
|
+
unless hPeriod[:description].nil?
|
66
|
+
@html.em('Description: ')
|
67
|
+
@html.div(:class => 'block') do
|
68
|
+
@html.text!(hPeriod[:description])
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
# time period - start geologic age {geologic age}
|
73
|
+
unless hPeriod[:startGeologicAge].empty?
|
74
|
+
@html.div do
|
75
|
+
@html.div('Starting Geologic Age', 'class' => 'h5')
|
76
|
+
@html.div(:class => 'block') do
|
77
|
+
geoAgeClass.writeHtml(hPeriod[:startGeologicAge])
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
# time period - end geologic age {geologic age}
|
83
|
+
unless hPeriod[:endGeologicAge].empty?
|
84
|
+
@html.div do
|
85
|
+
@html.div('Ending Geologic Age', 'class' => 'h5')
|
86
|
+
@html.div(:class => 'block') do
|
87
|
+
geoAgeClass.writeHtml(hPeriod[:endGeologicAge])
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
# time period - identifier {identifier}
|
93
|
+
unless hPeriod[:identifier].empty?
|
94
|
+
@html.div do
|
95
|
+
@html.div('Identifier', 'class' => 'h5')
|
96
|
+
@html.div(:class => 'block') do
|
97
|
+
identifierClass.writeHtml(hPeriod[:identifier])
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
# time period - time interval
|
103
|
+
unless hPeriod[:timeInterval].empty?
|
104
|
+
@html.div do
|
105
|
+
@html.div('Time Interval', 'class' => 'h5')
|
106
|
+
@html.div(:class => 'block') do
|
107
|
+
intervalClass.writeHtml(hPeriod[:timeInterval])
|
108
|
+
end
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
# time period - duration
|
113
|
+
unless hPeriod[:duration].empty?
|
114
|
+
@html.div do
|
115
|
+
@html.div('Duration', 'class' => 'h5')
|
116
|
+
@html.div(:class => 'block') do
|
117
|
+
durationClass.writeHtml(hPeriod[:duration])
|
118
|
+
end
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
122
|
+
end # writeHtml
|
123
|
+
end # Html_TimePeriod
|
124
|
+
|
125
|
+
end
|
126
|
+
end
|
127
|
+
end
|
128
|
+
end
|
@@ -0,0 +1,94 @@
|
|
1
|
+
# HTML writer
|
2
|
+
# transfer option
|
3
|
+
|
4
|
+
# History:
|
5
|
+
# Stan Smith 2017-04-04 refactored for mdTranslator 2.0
|
6
|
+
# Stan Smith 2015-09-21 added transfer size elements
|
7
|
+
# Stan Smith 2015-07-16 refactored to remove global namespace $HtmlNS
|
8
|
+
# Stan Smith 2015-03-27 original script
|
9
|
+
|
10
|
+
require_relative 'html_onlineResource'
|
11
|
+
require_relative 'html_medium'
|
12
|
+
require_relative 'html_duration'
|
13
|
+
require_relative 'html_format'
|
14
|
+
|
15
|
+
module ADIWG
|
16
|
+
module Mdtranslator
|
17
|
+
module Writers
|
18
|
+
module Simple_html
|
19
|
+
|
20
|
+
class Html_TransferOption
|
21
|
+
|
22
|
+
def initialize(html)
|
23
|
+
@html = html
|
24
|
+
end
|
25
|
+
|
26
|
+
def writeHtml(hOption)
|
27
|
+
|
28
|
+
# classes used
|
29
|
+
onlineClass = Html_OnlineResource.new(@html)
|
30
|
+
mediumClass = Html_Medium.new(@html)
|
31
|
+
durationClass = Html_Duration.new(@html)
|
32
|
+
formatClass = Html_Format.new(@html)
|
33
|
+
|
34
|
+
# transfer options - units of distribution
|
35
|
+
unless hOption[:unitsOfDistribution].nil?
|
36
|
+
@html.em('Units of Distribution: ')
|
37
|
+
@html.text!(hOption[:unitsOfDistribution].to_s)
|
38
|
+
@html.br
|
39
|
+
end
|
40
|
+
|
41
|
+
# transfer options - transfer size
|
42
|
+
unless hOption[:transferSize].nil?
|
43
|
+
@html.em('Size of Unit in MB: ')
|
44
|
+
@html.text!(hOption[:transferSize].to_s)
|
45
|
+
@html.br
|
46
|
+
end
|
47
|
+
|
48
|
+
# transfer options - online options [] {onlineResource}
|
49
|
+
hOption[:onlineOptions].each do |hOption|
|
50
|
+
@html.div do
|
51
|
+
@html.div('Online Option', {'class' => 'h5'})
|
52
|
+
@html.div(:class => 'block') do
|
53
|
+
onlineClass.writeHtml(hOption)
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
# transfer options - offline options [] {medium}
|
59
|
+
hOption[:offlineOptions].each do |hOption|
|
60
|
+
@html.div do
|
61
|
+
@html.div('Offline Option', {'class' => 'h5'})
|
62
|
+
@html.div(:class => 'block') do
|
63
|
+
mediumClass.writeHtml(hOption)
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
# transfer options - transfer frequency {duration}
|
69
|
+
unless hOption[:transferFrequency].empty?
|
70
|
+
@html.div do
|
71
|
+
@html.div('Transfer Frequency', 'class' => 'h5')
|
72
|
+
@html.div(:class => 'block') do
|
73
|
+
durationClass.writeHtml(hOption[:transferFrequency])
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
# transfer options - distribution formats [] {format}
|
79
|
+
hOption[:distributionFormats].each do |hFormat|
|
80
|
+
@html.div do
|
81
|
+
@html.div('Distribution Format Option', 'class' => 'h5')
|
82
|
+
@html.div(:class => 'block') do
|
83
|
+
formatClass.writeHtml(hFormat)
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
end # writeHtml
|
89
|
+
end # Html_TransferOption
|
90
|
+
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
94
|
+
end
|