lib/bolognese/writers/schema_org_writer.rb in bolognese-0.9.11 vs lib/bolognese/writers/schema_org_writer.rb in bolognese-0.9.13
- old
+ new
@@ -22,10 +22,10 @@
"datePublished" => date_published,
"dateModified" => date_modified,
"pagination" => pagination,
"spatialCoverage" => spatial_coverage,
"sameAs" => same_as,
- "isPartOf" => is_part_of,
+ "isPartOf" => is_part_of.present? ? is_part_of.merge("name" => is_part_of["title"]) : nil,
"hasPart" => has_part,
"predecessor_of" => is_previous_version_of,
"successor_of" => is_new_version_of,
"citation" => Array.wrap(references).map { |r| r.except("relationType").merge("@type" => "CreativeWork") }.unwrap,
"@reverse" => reverse.presence,