adiwg-mdtranslator 2.20.0.pre.beta.10 → 2.21.0.pre.beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +1 -1
- data/Gemfile.lock +5 -5
- data/README.md +0 -21
- data/Rakefile +0 -1
- data/adiwg-mdtranslator.gemspec +2 -2
- data/lib/adiwg/mdtranslator/internal/internal_metadata_obj.rb +45 -7
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_dataQuality.rb +37 -27
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_acquisition.rb +133 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_dataDictionary.rb +0 -8
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_environment.rb +47 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_event.rb +88 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_instrument.rb +73 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_instrumentationEvent.rb +77 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_instrumentationEventList.rb +62 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_metadata.rb +11 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_objective.rb +104 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_operation.rb +119 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_pass.rb +53 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_plan.rb +80 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_platform.rb +87 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_requestedDate.rb +51 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_requirement.rb +98 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_revision.rb +50 -0
- data/lib/adiwg/mdtranslator/version.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_dataQuality.rb +185 -133
- data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_spatialDomain.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/html/sections/html_acquisition.rb +199 -0
- data/lib/adiwg/mdtranslator/writers/html/sections/html_body.rb +19 -0
- data/lib/adiwg/mdtranslator/writers/html/sections/html_environment.rb +58 -0
- data/lib/adiwg/mdtranslator/writers/html/sections/html_event.rb +121 -0
- data/lib/adiwg/mdtranslator/writers/html/sections/html_instrument.rb +98 -0
- data/lib/adiwg/mdtranslator/writers/html/sections/html_instrumentationEvent.rb +84 -0
- data/lib/adiwg/mdtranslator/writers/html/sections/html_instrumentationEventList.rb +90 -0
- data/lib/adiwg/mdtranslator/writers/html/sections/html_objective.rb +155 -0
- data/lib/adiwg/mdtranslator/writers/html/sections/html_operation.rb +178 -0
- data/lib/adiwg/mdtranslator/writers/html/sections/html_pass.rb +72 -0
- data/lib/adiwg/mdtranslator/writers/html/sections/html_plan.rb +93 -0
- data/lib/adiwg/mdtranslator/writers/html/sections/html_platform.rb +117 -0
- data/lib/adiwg/mdtranslator/writers/html/sections/html_requestedDate.rb +33 -0
- data/lib/adiwg/mdtranslator/writers/html/sections/html_requirement.rb +139 -0
- data/lib/adiwg/mdtranslator/writers/html/sections/html_revision.rb +55 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_3/classes/class_mdMetadata.rb +0 -27
- data/lib/adiwg/mdtranslator/writers/iso19115_3/classes/class_timePeriod.rb +6 -2
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_acquisition.rb +42 -0
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_dictionary.rb +0 -1
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_environment.rb +28 -0
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_event.rb +37 -0
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_instrument.rb +35 -0
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_instrumentationEvent.rb +30 -0
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_instrumentationEventList.rb +32 -0
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_metadata.rb +2 -0
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_objective.rb +37 -0
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_operation.rb +34 -0
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_pass.rb +30 -0
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_plan.rb +32 -0
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_platform.rb +35 -0
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_requestedDate.rb +26 -0
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_requirement.rb +36 -0
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_revision.rb +28 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_allocation.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_citation.rb +8 -8
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_dataQualityReport.rb +3 -3
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_geographicExtent.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_lineage.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_maintenance.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_medium.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_metadataInfo.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_releasability.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_resourceInfo.rb +5 -5
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_responsibility.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_spatialRepresentation.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_taxonomy.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_timeInstant.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_timePeriod.rb +5 -5
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_transferOption.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_usage.rb +5 -5
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_vectorRepresentation.rb +2 -2
- data/lib/adiwg/mdtranslator_cli.rb +1 -1
- metadata +48 -41
- data/DCAT-US.md +0 -67
- data/lib/adiwg/mdtranslator/writers/dcat_us/dcat_us_writer.rb +0 -98
- data/lib/adiwg/mdtranslator/writers/dcat_us/readme.md +0 -10
- data/lib/adiwg/mdtranslator/writers/dcat_us/sections/dcat_us_access_level.rb +0 -55
- data/lib/adiwg/mdtranslator/writers/dcat_us/sections/dcat_us_access_url.rb +0 -17
- data/lib/adiwg/mdtranslator/writers/dcat_us/sections/dcat_us_accrualPeriodicity.rb +0 -45
- data/lib/adiwg/mdtranslator/writers/dcat_us/sections/dcat_us_bureau_code.rb +0 -33
- data/lib/adiwg/mdtranslator/writers/dcat_us/sections/dcat_us_contact_point.rb +0 -29
- data/lib/adiwg/mdtranslator/writers/dcat_us/sections/dcat_us_dcat_us.rb +0 -104
- data/lib/adiwg/mdtranslator/writers/dcat_us/sections/dcat_us_described_by.rb +0 -29
- data/lib/adiwg/mdtranslator/writers/dcat_us/sections/dcat_us_described_by_type.rb +0 -33
- data/lib/adiwg/mdtranslator/writers/dcat_us/sections/dcat_us_description.rb +0 -19
- data/lib/adiwg/mdtranslator/writers/dcat_us/sections/dcat_us_distribution.rb +0 -59
- data/lib/adiwg/mdtranslator/writers/dcat_us/sections/dcat_us_download_url.rb +0 -17
- data/lib/adiwg/mdtranslator/writers/dcat_us/sections/dcat_us_identifier.rb +0 -29
- data/lib/adiwg/mdtranslator/writers/dcat_us/sections/dcat_us_is_part_of.rb +0 -27
- data/lib/adiwg/mdtranslator/writers/dcat_us/sections/dcat_us_issued.rb +0 -19
- data/lib/adiwg/mdtranslator/writers/dcat_us/sections/dcat_us_keyword.rb +0 -19
- data/lib/adiwg/mdtranslator/writers/dcat_us/sections/dcat_us_landing_page.rb +0 -27
- data/lib/adiwg/mdtranslator/writers/dcat_us/sections/dcat_us_language.rb +0 -23
- data/lib/adiwg/mdtranslator/writers/dcat_us/sections/dcat_us_license.rb +0 -18
- data/lib/adiwg/mdtranslator/writers/dcat_us/sections/dcat_us_media_type.rb +0 -17
- data/lib/adiwg/mdtranslator/writers/dcat_us/sections/dcat_us_modified.rb +0 -29
- data/lib/adiwg/mdtranslator/writers/dcat_us/sections/dcat_us_primaryITInvestmentUII.rb +0 -19
- data/lib/adiwg/mdtranslator/writers/dcat_us/sections/dcat_us_program_code.rb +0 -33
- data/lib/adiwg/mdtranslator/writers/dcat_us/sections/dcat_us_publisher.rb +0 -74
- data/lib/adiwg/mdtranslator/writers/dcat_us/sections/dcat_us_references.rb +0 -50
- data/lib/adiwg/mdtranslator/writers/dcat_us/sections/dcat_us_rights.rb +0 -32
- data/lib/adiwg/mdtranslator/writers/dcat_us/sections/dcat_us_spatial.rb +0 -32
- data/lib/adiwg/mdtranslator/writers/dcat_us/sections/dcat_us_system_of_records.rb +0 -28
- data/lib/adiwg/mdtranslator/writers/dcat_us/sections/dcat_us_temporal.rb +0 -40
- data/lib/adiwg/mdtranslator/writers/dcat_us/sections/dcat_us_theme.rb +0 -28
- data/lib/adiwg/mdtranslator/writers/dcat_us/version.rb +0 -14
- data/lib/adiwg/mdtranslator/writers/iso19115_3/classes/class_enumerationList.rb +0 -52
- data/lib/adiwg/mdtranslator/writers/iso19115_3/classes/class_extension.rb +0 -208
@@ -0,0 +1,37 @@
|
|
1
|
+
require 'jbuilder'
|
2
|
+
require_relative 'mdJson_identifier'
|
3
|
+
require_relative 'mdJson_extent'
|
4
|
+
require_relative 'mdJson_event'
|
5
|
+
require_relative 'mdJson_pass'
|
6
|
+
require_relative 'mdJson_instrument'
|
7
|
+
|
8
|
+
module ADIWG
|
9
|
+
module Mdtranslator
|
10
|
+
module Writers
|
11
|
+
module MdJson
|
12
|
+
|
13
|
+
module Objective
|
14
|
+
|
15
|
+
@Namespace = ADIWG::Mdtranslator::Writers::MdJson
|
16
|
+
|
17
|
+
def self.build(hObjective)
|
18
|
+
|
19
|
+
Jbuilder.new do |json|
|
20
|
+
json.objectiveId hObjective[:objectiveId]
|
21
|
+
json.identifier @Namespace.json_map(hObjective[:identifiers], Identifier)
|
22
|
+
json.priority hObjective[:priority] unless hObjective[:priority].nil?
|
23
|
+
json.objectiveType hObjective[:objectiveTypes] unless hObjective[:objectiveTypes].empty?
|
24
|
+
json.function hObjective[:functions] unless hObjective[:functions].empty?
|
25
|
+
json.extent @Namespace.json_map(hObjective[:extents], Extent) unless hObjective[:extents].empty?
|
26
|
+
json.objectiveOccurence @Namespace.json_map(hObjective[:occurrences], Event) unless hObjective[:occurrences].empty?
|
27
|
+
json.pass @Namespace.json_map(hObjective[:passes], Pass) unless hObjective[:passes].empty?
|
28
|
+
json.sensingInstrument @Namespace.json_map(hObjective[:sensingInstruments], Instrument) unless hObjective[:sensingInstruments].empty?
|
29
|
+
end
|
30
|
+
|
31
|
+
end
|
32
|
+
end # Objective
|
33
|
+
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
require 'jbuilder'
|
2
|
+
|
3
|
+
module ADIWG
|
4
|
+
module Mdtranslator
|
5
|
+
module Writers
|
6
|
+
module MdJson
|
7
|
+
|
8
|
+
module Operation
|
9
|
+
|
10
|
+
@Namespace = ADIWG::Mdtranslator::Writers::MdJson
|
11
|
+
|
12
|
+
def self.build(hOperation)
|
13
|
+
|
14
|
+
Jbuilder.new do |json|
|
15
|
+
json.operationId hOperation[:operationId]
|
16
|
+
json.description hOperation[:description] unless hOperation[:description].nil?
|
17
|
+
json.citation Citation.build(hOperation[:citation]) unless hOperation[:citation].empty?
|
18
|
+
json.identifier Identifier.build(hOperation[:identifier])
|
19
|
+
json.status hOperation[:status]
|
20
|
+
json.operationType hOperation[:operationType] unless hOperation[:operationType].nil?
|
21
|
+
json.objective @Namespace.json_map(hOperation[:objectives], Objective) unless hOperation[:objectives].empty?
|
22
|
+
json.parentOperation Operation.build(hOperation[:parentOperation]) unless hOperation[:parentOperation].empty?
|
23
|
+
json.childOperation @Namespace.json_map(hOperation[:childOperations], Operation) unless hOperation[:childOperations].empty?
|
24
|
+
json.plan Plan.build(hOperation[:plan]) unless hOperation[:plan].empty?
|
25
|
+
json.platform @Namespace.json_map(hOperation[:platforms], Platform) unless hOperation[:platforms].empty?
|
26
|
+
json.significantEvent @Namespace.json_map(hOperation[:significantEvents], Event) unless hOperation[:significantEvents].empty?
|
27
|
+
end
|
28
|
+
|
29
|
+
end
|
30
|
+
end # Operation
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
require 'jbuilder'
|
2
|
+
require_relative 'mdJson_identifier'
|
3
|
+
require_relative 'mdJson_extent'
|
4
|
+
require_relative 'mdJson_event'
|
5
|
+
|
6
|
+
module ADIWG
|
7
|
+
module Mdtranslator
|
8
|
+
module Writers
|
9
|
+
module MdJson
|
10
|
+
|
11
|
+
module Pass
|
12
|
+
|
13
|
+
@Namespace = ADIWG::Mdtranslator::Writers::MdJson
|
14
|
+
|
15
|
+
def self.build(hPass)
|
16
|
+
|
17
|
+
Jbuilder.new do |json|
|
18
|
+
json.passId hPass[:passId]
|
19
|
+
json.identifier Identifier.build(hPass[:identifier])
|
20
|
+
json.extent Extent.build(hPass[:extent]) unless hPass[:extent].empty?
|
21
|
+
json.relatedEvent @Namespace.json_map(hPass[:relatedEvents], Event) unless hPass[:relatedEvents].empty?
|
22
|
+
end
|
23
|
+
|
24
|
+
end
|
25
|
+
end # Pass
|
26
|
+
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
require 'jbuilder'
|
2
|
+
require_relative 'mdJson_citation'
|
3
|
+
require_relative 'mdJson_operation'
|
4
|
+
require_relative 'mdJson_requirement'
|
5
|
+
|
6
|
+
module ADIWG
|
7
|
+
module Mdtranslator
|
8
|
+
module Writers
|
9
|
+
module MdJson
|
10
|
+
|
11
|
+
module Plan
|
12
|
+
|
13
|
+
@Namespace = ADIWG::Mdtranslator::Writers::MdJson
|
14
|
+
|
15
|
+
def self.build(hPlan)
|
16
|
+
|
17
|
+
Jbuilder.new do |json|
|
18
|
+
json.planId hPlan[:planId]
|
19
|
+
json.planType hPlan[:planType] unless hPlan[:planType].nil?
|
20
|
+
json.status hPlan[:status]
|
21
|
+
json.citation Citation.build(hPlan[:citation])
|
22
|
+
json.planOperation @Namespace.json_map(hPlan[:operations], Operation)
|
23
|
+
json.satisfiedRequirement @Namespace.json_map(hPlan[:satisfiedRequirements], Requirement)
|
24
|
+
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
28
|
+
end # Plan
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
require 'jbuilder'
|
2
|
+
require_relative 'mdJson_citation'
|
3
|
+
require_relative 'mdJson_identifier'
|
4
|
+
require_relative 'mdJson_responsibleParty'
|
5
|
+
require_relative 'mdJson_instrument'
|
6
|
+
require_relative 'mdJson_instrumentationEventList'
|
7
|
+
|
8
|
+
module ADIWG
|
9
|
+
module Mdtranslator
|
10
|
+
module Writers
|
11
|
+
module MdJson
|
12
|
+
|
13
|
+
module Platform
|
14
|
+
|
15
|
+
@Namespace = ADIWG::Mdtranslator::Writers::MdJson
|
16
|
+
|
17
|
+
def self.build(hPlatform)
|
18
|
+
|
19
|
+
Jbuilder.new do |json|
|
20
|
+
json.platformId hPlatform[:platformId]
|
21
|
+
json.citation Citation.build(hPlatform[:citation]) unless hPlatform[:citation].empty?
|
22
|
+
json.identifier Identifier.build(hPlatform[:identifier])
|
23
|
+
json.description hPlatform[:description]
|
24
|
+
json.sponsor @Namespace.json_map(hPlatform[:sponsors], ResponsibleParty) unless hPlatform[:sponsors].empty?
|
25
|
+
json.instrument @Namespace.json_map(hPlatform[:instruments], Instrument)
|
26
|
+
json.history @Namespace.json_map(hPlatform[:history], InstrumentationEventList) unless hPlatform[:history].empty?
|
27
|
+
end
|
28
|
+
|
29
|
+
end
|
30
|
+
end # Platform
|
31
|
+
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
require 'jbuilder'
|
2
|
+
require_relative 'mdJson_dateTime'
|
3
|
+
|
4
|
+
module ADIWG
|
5
|
+
module Mdtranslator
|
6
|
+
module Writers
|
7
|
+
module MdJson
|
8
|
+
|
9
|
+
module RequestedDate
|
10
|
+
|
11
|
+
@Namespace = ADIWG::Mdtranslator::Writers::MdJson
|
12
|
+
|
13
|
+
def self.build(hRequestedDate)
|
14
|
+
|
15
|
+
Jbuilder.new do |json|
|
16
|
+
json.requestedDateOfCollection DateTime.build(hRequestedDate[:requestedDateOfCollection])
|
17
|
+
json.latestAcceptableDate DateTime.build(hRequestedDate[:latestAcceptableDate])
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
21
|
+
end # Requested Date
|
22
|
+
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
require 'jbuilder'
|
2
|
+
require_relative 'mdJson_citation'
|
3
|
+
require_relative 'mdJson_identifier'
|
4
|
+
require_relative 'mdJson_responsibleParty'
|
5
|
+
require_relative 'mdJson_requestedDate'
|
6
|
+
require_relative 'mdJson_plan'
|
7
|
+
|
8
|
+
module ADIWG
|
9
|
+
module Mdtranslator
|
10
|
+
module Writers
|
11
|
+
module MdJson
|
12
|
+
|
13
|
+
module Requirement
|
14
|
+
|
15
|
+
@Namespace = ADIWG::Mdtranslator::Writers::MdJson
|
16
|
+
|
17
|
+
def self.build(hRequirement)
|
18
|
+
|
19
|
+
Jbuilder.new do |json|
|
20
|
+
json.requirementId hRequirement[:requirementId]
|
21
|
+
json.citation Citation.build(hRequirement[:citation])
|
22
|
+
json.identifier Identifier.build(hRequirement[:identifier])
|
23
|
+
json.requestor @Namespace.json_map(hRequirement[:requestors], ResponsibleParty)
|
24
|
+
json.recipient @Namespace.json_map(hRequirement[:recipients], ResponsibleParty)
|
25
|
+
json.priority hRequirement[:priority]
|
26
|
+
json.requestedDate RequestedDate.build(hRequirement[:requestedDate])
|
27
|
+
json.expiryDate hRequirement[:expiryDate]
|
28
|
+
json.satisfiedPlan @Namespace.json_map(hRequirement[:satisfiedPlans], Plan)
|
29
|
+
end
|
30
|
+
|
31
|
+
end
|
32
|
+
end # Requirement
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'jbuilder'
|
2
|
+
require_relative 'mdJson_responsibleParty'
|
3
|
+
require_relative 'mdJson_dateTime'
|
4
|
+
|
5
|
+
module ADIWG
|
6
|
+
module Mdtranslator
|
7
|
+
module Writers
|
8
|
+
module MdJson
|
9
|
+
|
10
|
+
module Revision
|
11
|
+
|
12
|
+
@Namespace = ADIWG::Mdtranslator::Writers::MdJson
|
13
|
+
|
14
|
+
def self.build(hRevision)
|
15
|
+
|
16
|
+
Jbuilder.new do |json|
|
17
|
+
json.description hRevision[:description]
|
18
|
+
json.responsibleParty @Namespace.json_map(hRevision[:responsibleParties], ResponsibleParty)
|
19
|
+
json.dateInfo @Namespace.json_map(hRevision[:dateInfo], DateTime)
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
23
|
+
end # Revision
|
24
|
+
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -90,7 +90,7 @@ module ADIWG
|
|
90
90
|
# allocation - online resource [] {onlineResource}
|
91
91
|
hAllocation[:onlineResources].each do |hOnline|
|
92
92
|
@html.div do
|
93
|
-
@html.
|
93
|
+
@html.div('Online Resource', {'class' => 'h5'})
|
94
94
|
@html.div(:class => 'block') do
|
95
95
|
onlineClass.writeHtml(hOnline)
|
96
96
|
end
|
@@ -147,14 +147,14 @@ module ADIWG
|
|
147
147
|
end
|
148
148
|
end
|
149
149
|
|
150
|
-
# citation - other
|
151
|
-
unless hCitation[:
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
end
|
150
|
+
# citation - other div []
|
151
|
+
# unless hCitation[:otherdiv].empty?
|
152
|
+
# hCitation[:otherdiv].each do |detail|
|
153
|
+
# @html.em('Other div: ')
|
154
|
+
# @html.text!(detail)
|
155
|
+
# @html.br
|
156
|
+
# end
|
157
|
+
# end
|
158
158
|
|
159
159
|
end # writeHtml
|
160
160
|
end # Html_Citation
|
@@ -262,7 +262,7 @@ module ADIWG
|
|
262
262
|
# ResultContentDescription
|
263
263
|
unless result[:resultContentDescription].empty?
|
264
264
|
@html.div do
|
265
|
-
@html.
|
265
|
+
@html.div('Result Content Description', {'class' => 'h5'})
|
266
266
|
@html.div(:class => 'block') do
|
267
267
|
coverageInfoClass.writeHtml(result[:resultContentDescription])
|
268
268
|
end
|
@@ -272,7 +272,7 @@ module ADIWG
|
|
272
272
|
# ResourceFormat
|
273
273
|
unless result[:resourceFormat].empty?
|
274
274
|
@html.div do
|
275
|
-
@html.
|
275
|
+
@html.div('Resource Format', {'class' => 'h5'})
|
276
276
|
@html.div(:class => 'block') do
|
277
277
|
formatClass.writeHtml(result[:resourceFormat])
|
278
278
|
end
|
@@ -282,7 +282,7 @@ module ADIWG
|
|
282
282
|
# ResultFile
|
283
283
|
unless result[:resultFile].empty?
|
284
284
|
@html.div do
|
285
|
-
@html.
|
285
|
+
@html.div('Result File', {'class' => 'h5'})
|
286
286
|
@html.div(:class => 'block') do
|
287
287
|
resultFileClass.writeHtml(result[:resultFile])
|
288
288
|
end
|
@@ -82,7 +82,7 @@ module ADIWG
|
|
82
82
|
# geographic extent - identifier {identifier}
|
83
83
|
unless hExtent[:identifier].empty?
|
84
84
|
@html.div do
|
85
|
-
@html.
|
85
|
+
@html.div('Identifier', 'class' => 'h5')
|
86
86
|
@html.div(:class => 'block') do
|
87
87
|
identifierClass.writeHtml(hExtent[:identifier])
|
88
88
|
end
|
@@ -41,7 +41,7 @@ module ADIWG
|
|
41
41
|
# lineage - scope
|
42
42
|
unless hLineage[:resourceScope].empty?
|
43
43
|
@html.div do
|
44
|
-
@html.
|
44
|
+
@html.div('Scope', {'class' => 'h5'})
|
45
45
|
@html.div(:class => 'block') do
|
46
46
|
scopeClass.writeHtml(hLineage[:resourceScope])
|
47
47
|
end
|
@@ -51,7 +51,7 @@ module ADIWG
|
|
51
51
|
# lineage - citation
|
52
52
|
hLineage[:lineageCitation].each do |hCitation|
|
53
53
|
@html.div do
|
54
|
-
@html.
|
54
|
+
@html.div('Citation', {'class' => 'h5'})
|
55
55
|
@html.div(:class => 'block') do
|
56
56
|
citationClass.writeHtml(hCitation)
|
57
57
|
end
|
@@ -61,7 +61,7 @@ module ADIWG
|
|
61
61
|
# lineage - data sources
|
62
62
|
hLineage[:dataSources].each do |hsource|
|
63
63
|
@html.div do
|
64
|
-
@html.
|
64
|
+
@html.div('Data Source', {'class' => 'h5'})
|
65
65
|
@html.div(:class => 'block') do
|
66
66
|
sourceClass.writeHtml(hsource)
|
67
67
|
end
|
@@ -71,7 +71,7 @@ module ADIWG
|
|
71
71
|
# lineage - process steps
|
72
72
|
hLineage[:processSteps].each do |hStep|
|
73
73
|
@html.div do
|
74
|
-
@html.
|
74
|
+
@html.div('Process Step', {'class' => 'h5'})
|
75
75
|
@html.div(:class => 'block') do
|
76
76
|
stepClass.writeHtml(hStep)
|
77
77
|
end
|
@@ -47,11 +47,11 @@ module ADIWG
|
|
47
47
|
# maintenance - scopes [] {scope}
|
48
48
|
unless hMaint[:scopes].empty?
|
49
49
|
@html.div do
|
50
|
-
@html.
|
50
|
+
@html.div('Maintenance Scopes', {'class' => 'h5'})
|
51
51
|
@html.div(:class => 'block') do
|
52
52
|
hMaint[:scopes].each do |hScope|
|
53
53
|
@html.div do
|
54
|
-
@html.
|
54
|
+
@html.div(hScope[:scopeCode], 'class' => 'h5')
|
55
55
|
@html.div(:class => 'block') do
|
56
56
|
scopeClass.writeHtml(hScope)
|
57
57
|
end
|
@@ -64,11 +64,11 @@ module ADIWG
|
|
64
64
|
# maintenance - contacts [] {responsibility}
|
65
65
|
unless hMaint[:contacts].empty?
|
66
66
|
@html.div do
|
67
|
-
@html.
|
67
|
+
@html.div('Maintenance Contacts', {'class' => 'h5'})
|
68
68
|
@html.div(:class => 'block') do
|
69
69
|
hMaint[:contacts].each do |hContact|
|
70
70
|
@html.div do
|
71
|
-
@html.
|
71
|
+
@html.div(hContact[:roleName], 'class' => 'h5')
|
72
72
|
@html.div(:class => 'block') do
|
73
73
|
responsibilityClass.writeHtml(hContact)
|
74
74
|
end
|
@@ -29,7 +29,7 @@ module ADIWG
|
|
29
29
|
# medium - specification {citation}
|
30
30
|
unless hMedium[:mediumSpecification].empty?
|
31
31
|
@html.div do
|
32
|
-
@html.
|
32
|
+
@html.div('Medium Specification', {'class' => 'h5'})
|
33
33
|
@html.div(:class => 'block') do
|
34
34
|
citationClass.writeHtml(hMedium[:mediumSpecification])
|
35
35
|
end
|
@@ -74,7 +74,7 @@ module ADIWG
|
|
74
74
|
# medium - identifier {identifier}
|
75
75
|
unless hMedium[:identifier].empty?
|
76
76
|
@html.div do
|
77
|
-
@html.
|
77
|
+
@html.div('Identifier for the Medium', {'class' => 'h5'})
|
78
78
|
@html.div(:class => 'block') do
|
79
79
|
identifierClass.writeHtml(hMedium[:identifier])
|
80
80
|
end
|
@@ -76,7 +76,7 @@ module ADIWG
|
|
76
76
|
# default metadata locales {locale}
|
77
77
|
unless hMetaInfo[:defaultMetadataLocale].empty?
|
78
78
|
@html.div do
|
79
|
-
@html.
|
79
|
+
@html.div('Default Locale', {'class' => 'h5'})
|
80
80
|
@html.div(:class => 'block') do
|
81
81
|
localeClass.writeHtml(hMetaInfo[:defaultMetadataLocale])
|
82
82
|
end
|
@@ -86,7 +86,7 @@ module ADIWG
|
|
86
86
|
# other metadata locales [] {locale}
|
87
87
|
hMetaInfo[:otherMetadataLocales].each do |hLocale|
|
88
88
|
@html.div do
|
89
|
-
@html.
|
89
|
+
@html.div('Other Locale', {'class' => 'h5'})
|
90
90
|
@html.div(:class => 'block') do
|
91
91
|
localeClass.writeHtml(hLocale)
|
92
92
|
end
|
@@ -104,7 +104,7 @@ module ADIWG
|
|
104
104
|
@html.div(:class => 'block') do
|
105
105
|
hMetaInfo[:metadataContacts].each do |hResponsibility|
|
106
106
|
@html.div do
|
107
|
-
@html.
|
107
|
+
@html.div(hResponsibility[:roleName], 'class' => 'h5')
|
108
108
|
@html.div(:class => 'block') do
|
109
109
|
responsibilityClass.writeHtml(hResponsibility)
|
110
110
|
end
|
@@ -179,7 +179,7 @@ module ADIWG
|
|
179
179
|
@html.div(:class => 'block') do
|
180
180
|
hMetaInfo[:alternateMetadataReferences].each do |hCitation|
|
181
181
|
@html.div do
|
182
|
-
@html.
|
182
|
+
@html.div(hCitation[:title], 'class' => 'h5')
|
183
183
|
@html.div(:class => 'block') do
|
184
184
|
citationClass.writeHtml(hCitation)
|
185
185
|
@html.br
|
@@ -44,7 +44,7 @@ module ADIWG
|
|
44
44
|
@html.div(:class => 'block') do
|
45
45
|
hRelease[:addressee].each do |hAddressee|
|
46
46
|
@html.div do
|
47
|
-
@html.
|
47
|
+
@html.div(hAddressee[:roleName], 'class' => 'h5')
|
48
48
|
@html.div(:class => 'block') do
|
49
49
|
responsibilityClass.writeHtml(hAddressee)
|
50
50
|
end
|
@@ -154,7 +154,7 @@ module ADIWG
|
|
154
154
|
hResource[:graphicOverviews].each do |hGraphic|
|
155
155
|
counter += 1
|
156
156
|
@html.div do
|
157
|
-
@html.
|
157
|
+
@html.div('Overview '+counter.to_s, 'class' => 'h5')
|
158
158
|
@html.div(:class => 'block') do
|
159
159
|
graphicClass.writeHtml(hGraphic)
|
160
160
|
end
|
@@ -173,7 +173,7 @@ module ADIWG
|
|
173
173
|
# contacts - responsibility
|
174
174
|
hResource[:pointOfContacts].each do |hContact|
|
175
175
|
@html.div do
|
176
|
-
@html.
|
176
|
+
@html.div(hContact[:roleName], 'class' => 'h5')
|
177
177
|
@html.div(:class => 'block') do
|
178
178
|
responsibilityClass.writeHtml(hContact)
|
179
179
|
end
|
@@ -183,7 +183,7 @@ module ADIWG
|
|
183
183
|
# contacts - credits
|
184
184
|
unless hResource[:credits].empty?
|
185
185
|
@html.div do
|
186
|
-
@html.
|
186
|
+
@html.div('Other Credits', 'class' => 'h5')
|
187
187
|
@html.div(:class => 'block') do
|
188
188
|
hResource[:credits].each do |credit|
|
189
189
|
@html.em('Credit: ')
|
@@ -216,7 +216,7 @@ module ADIWG
|
|
216
216
|
unless hResource[:temporalResolutions].empty?
|
217
217
|
hResource[:temporalResolutions].each do |hResolution|
|
218
218
|
@html.div do
|
219
|
-
@html.
|
219
|
+
@html.div('Resolution', 'class' => 'h5')
|
220
220
|
@html.div(:class => 'block') do
|
221
221
|
durationClass.writeHtml(hResolution)
|
222
222
|
end
|
@@ -347,7 +347,7 @@ module ADIWG
|
|
347
347
|
hResource[:taxonomy].each do |hTaxonomy|
|
348
348
|
counter += 1
|
349
349
|
@html.div do
|
350
|
-
@html.
|
350
|
+
@html.div('Taxonomic Structure '+counter.to_s, 'class' => 'h5')
|
351
351
|
@html.div(:class => 'block') do
|
352
352
|
taxonomyClass.writeHtml(hTaxonomy)
|
353
353
|
end
|
@@ -27,7 +27,7 @@ module ADIWG
|
|
27
27
|
hResponsibility[:parties].each do |hParty|
|
28
28
|
hContact = Html_Document.getContact(hParty[:contactId])
|
29
29
|
@html.div do
|
30
|
-
@html.
|
30
|
+
@html.div(hContact[:name], 'class' => 'h5')
|
31
31
|
@html.div(:class => 'block') do
|
32
32
|
|
33
33
|
# party - contact ID
|
@@ -31,7 +31,7 @@ module ADIWG
|
|
31
31
|
# spatial Representation - grid {gridRepresentation}
|
32
32
|
unless hRepresentation[:gridRepresentation].empty?
|
33
33
|
@html.div do
|
34
|
-
@html.
|
34
|
+
@html.div('Grid Representation ', 'class' => 'h5')
|
35
35
|
@html.div(:class => 'block') do
|
36
36
|
gridClass.writeHtml(hRepresentation[:gridRepresentation])
|
37
37
|
end
|
@@ -41,7 +41,7 @@ module ADIWG
|
|
41
41
|
# spatial Representation - vector {vectorRepresentation}
|
42
42
|
unless hRepresentation[:vectorRepresentation].empty?
|
43
43
|
@html.div do
|
44
|
-
@html.
|
44
|
+
@html.div('Vector Representation ', 'class' => 'h5')
|
45
45
|
@html.div(:class => 'block') do
|
46
46
|
vectorClass.writeHtml(hRepresentation[:vectorRepresentation])
|
47
47
|
end
|
@@ -51,7 +51,7 @@ module ADIWG
|
|
51
51
|
# spatial Representation - georectified {georectifiedRepresentation}
|
52
52
|
unless hRepresentation[:georectifiedRepresentation].empty?
|
53
53
|
@html.div do
|
54
|
-
@html.
|
54
|
+
@html.div('Georectified Representation ', 'class' => 'h5')
|
55
55
|
@html.div(:class => 'block') do
|
56
56
|
georectifiedClass.writeHtml(hRepresentation[:georectifiedRepresentation])
|
57
57
|
end
|
@@ -61,7 +61,7 @@ module ADIWG
|
|
61
61
|
# spatial Representation - georeferenceable {georeferenceableRepresentation}
|
62
62
|
unless hRepresentation[:georeferenceableRepresentation].empty?
|
63
63
|
@html.div do
|
64
|
-
@html.
|
64
|
+
@html.div('Georeferenceable Representation ', 'class' => 'h5')
|
65
65
|
@html.div(:class => 'block') do
|
66
66
|
georeferenceableClass.writeHtml(hRepresentation[:georeferenceableRepresentation])
|
67
67
|
end
|
@@ -106,7 +106,7 @@ module ADIWG
|
|
106
106
|
@html.div(:class => 'block') do
|
107
107
|
hTaxonomy[:observers].each do |hObserver|
|
108
108
|
@html.div do
|
109
|
-
@html.
|
109
|
+
@html.div(hObserver[:roleName], 'class' => 'h5')
|
110
110
|
@html.div(:class => 'block') do
|
111
111
|
responsibilityClass.writeHtml(hObserver)
|
112
112
|
end
|
@@ -66,7 +66,7 @@ module ADIWG
|
|
66
66
|
# time instant - identifier {identifier}
|
67
67
|
unless hInstant[:identifier].empty?
|
68
68
|
@html.div do
|
69
|
-
@html.
|
69
|
+
@html.div('Identifier', 'class' => 'h5')
|
70
70
|
@html.div(:class => 'block') do
|
71
71
|
identifierClass.writeHtml(hInstant[:identifier])
|
72
72
|
end
|
@@ -70,7 +70,7 @@ module ADIWG
|
|
70
70
|
# time period - start geologic age {geologic age}
|
71
71
|
unless hPeriod[:startGeologicAge].empty?
|
72
72
|
@html.div do
|
73
|
-
@html.
|
73
|
+
@html.div('Starting Geologic Age', 'class' => 'h5')
|
74
74
|
@html.div(:class => 'block') do
|
75
75
|
geoAgeClass.writeHtml(hPeriod[:startGeologicAge])
|
76
76
|
end
|
@@ -80,7 +80,7 @@ module ADIWG
|
|
80
80
|
# time period - end geologic age {geologic age}
|
81
81
|
unless hPeriod[:endGeologicAge].empty?
|
82
82
|
@html.div do
|
83
|
-
@html.
|
83
|
+
@html.div('Ending Geologic Age', 'class' => 'h5')
|
84
84
|
@html.div(:class => 'block') do
|
85
85
|
geoAgeClass.writeHtml(hPeriod[:endGeologicAge])
|
86
86
|
end
|
@@ -90,7 +90,7 @@ module ADIWG
|
|
90
90
|
# time period - identifier {identifier}
|
91
91
|
unless hPeriod[:identifier].empty?
|
92
92
|
@html.div do
|
93
|
-
@html.
|
93
|
+
@html.div('Identifier', 'class' => 'h5')
|
94
94
|
@html.div(:class => 'block') do
|
95
95
|
identifierClass.writeHtml(hPeriod[:identifier])
|
96
96
|
end
|
@@ -100,7 +100,7 @@ module ADIWG
|
|
100
100
|
# time period - time interval
|
101
101
|
unless hPeriod[:timeInterval].empty?
|
102
102
|
@html.div do
|
103
|
-
@html.
|
103
|
+
@html.div('Time Interval', 'class' => 'h5')
|
104
104
|
@html.div(:class => 'block') do
|
105
105
|
intervalClass.writeHtml(hPeriod[:timeInterval])
|
106
106
|
end
|
@@ -110,7 +110,7 @@ module ADIWG
|
|
110
110
|
# time period - duration
|
111
111
|
unless hPeriod[:duration].empty?
|
112
112
|
@html.div do
|
113
|
-
@html.
|
113
|
+
@html.div('Duration', 'class' => 'h5')
|
114
114
|
@html.div(:class => 'block') do
|
115
115
|
durationClass.writeHtml(hPeriod[:duration])
|
116
116
|
end
|
@@ -68,7 +68,7 @@ module ADIWG
|
|
68
68
|
# transfer options - transfer frequency {duration}
|
69
69
|
unless hOption[:transferFrequency].empty?
|
70
70
|
@html.div do
|
71
|
-
@html.
|
71
|
+
@html.div('Transfer Frequency', 'class' => 'h5')
|
72
72
|
@html.div(:class => 'block') do
|
73
73
|
durationClass.writeHtml(hOption[:transferFrequency])
|
74
74
|
end
|
@@ -78,7 +78,7 @@ module ADIWG
|
|
78
78
|
# transfer options - distribution formats [] {format}
|
79
79
|
hOption[:distributionFormats].each do |hFormat|
|
80
80
|
@html.div do
|
81
|
-
@html.
|
81
|
+
@html.div('Distribution Format Option', 'class' => 'h5')
|
82
82
|
@html.div(:class => 'block') do
|
83
83
|
formatClass.writeHtml(hFormat)
|
84
84
|
end
|