lib/adiwg/mdtranslator/writers/sbJson/sections/sbJson_sbJson.rb in adiwg-mdtranslator-2.0.0rc11 vs lib/adiwg/mdtranslator/writers/sbJson/sections/sbJson_sbJson.rb in adiwg-mdtranslator-2.0.0rc13

- old
+ new

@@ -19,10 +19,11 @@ require_relative 'sbJson_date' require_relative 'sbJson_spatial' require_relative 'sbJson_facet' require_relative 'sbJson_metadataRepository' require_relative 'sbJson_geographicExtent' +require_relative 'sbJson_abstract' module ADIWG module Mdtranslator module Writers module SbJson @@ -39,16 +40,16 @@ Jbuilder.new do |json| json.id Id.build(intObj) json.title hCitation[:title] unless hCitation.empty? json.alternateTitles hCitation[:alternateTitles] unless hCitation[:alternateTitles].empty? - json.body resourceInfo[:abstract] + json.body Abstract.build(resourceInfo[:abstract]) json.summary resourceInfo[:shortAbstract] json.citation Citation.build(hCitation) unless hCitation.empty? json.identifiers @Namespace.json_map(hCitation[:identifiers], Identifier) unless hCitation.empty? json.purpose resourceInfo[:purpose] json.rights Rights.build(resourceInfo[:constraints]) unless resourceInfo[:constraints].empty? - json.provenance Provenance.build(metadataInfo) + json.provenance Provenance.build() json.materialRequestInstructions MaterialRequest.build(distributorInfo) unless distributorInfo.empty? json.parentId ParentId.build(metadataInfo[:parentMetadata]) unless metadataInfo[:parentMetadata].empty? aContactList = Contact.get_contact_list(intObj) json.contacts @Namespace.json_map(aContactList, Contact) unless aContactList.empty? json.webLinks WebLink.build(intObj[:metadata])