lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_resourceInfo.rb in adiwg-mdtranslator-2.19.0.pre.beta.13 vs lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_resourceInfo.rb in adiwg-mdtranslator-2.19.0.pre.beta.26
- old
+ new
@@ -40,11 +40,11 @@
json.resourceType @Namespace.json_map(hResInfo[:resourceTypes], ResourceType)
json.citation Citation.build(hResInfo[:citation])
json.abstract hResInfo[:abstract]
json.shortAbstract hResInfo[:shortAbstract]
json.purpose hResInfo[:purpose]
- json.credit hResInfo[:credits] unless hResInfo[:credits].empty?
json.timePeriod TimePeriod.build(hResInfo[:timePeriod]) unless hResInfo[:timePeriod].empty?
+ json.credit hResInfo[:credits] unless hResInfo[:credits].empty?
json.status hResInfo[:status] unless hResInfo[:status].empty?
json.pointOfContact @Namespace.json_map(hResInfo[:pointOfContacts], ResponsibleParty)
json.spatialReferenceSystem @Namespace.json_map(hResInfo[:spatialReferenceSystems], SpatialReference)
json.spatialRepresentationType hResInfo[:spatialRepresentationTypes] unless hResInfo[:spatialRepresentationTypes].empty?
json.spatialRepresentation @Namespace.json_map(hResInfo[:spatialRepresentations], SpatialRepresentation)