lib/bolognese/writers/schema_org_writer.rb in bolognese-1.0.16 vs lib/bolognese/writers/schema_org_writer.rb in bolognese-1.0.19

- old
+ new

@@ -37,10 +37,10 @@ "schemaVersion" => schema_version, "periodical" => (types["schemaOrg"] != "Dataset") && periodical ? to_schema_org(periodical) : nil, "includedInDataCatalog" => (types["schemaOrg"] == "Dataset") && periodical ? to_schema_org(periodical) : nil, "publisher" => publisher.present? ? { "@type" => "Organization", "name" => publisher } : nil, "funder" => to_schema_org_funder(funding_references), - "provider" => source.present? ? { "@type" => "Organization", "name" => source } : nil + "provider" => agency.present? ? { "@type" => "Organization", "name" => agency } : nil }.compact.presence end def schema_org JSON.pretty_generate schema_hsh