lib/bolognese/readers/schema_org_reader.rb in bolognese-1.0.3 vs lib/bolognese/readers/schema_org_reader.rb in bolognese-1.0.4

- old
+ new

@@ -132,19 +132,19 @@ "alternate_identifiers" => alternate_identifiers, "url" => normalize_id(meta.fetch("url", nil)), "content_url" => Array.wrap(meta.fetch("contentUrl", nil)).unwrap, "size" => meta.fetch("contenSize", nil), "formats" => Array.wrap(meta.fetch("encodingFormat", nil) || meta.fetch("fileFormat", nil)).unwrap, - "title" => meta.fetch("name", nil), + "title" => meta.fetch("name", nil).present? ? [{ "text" => meta.fetch("name", nil) }] : nil, "creator" => author, "editor" => editor, "publisher" => publisher, "service_provider" => parse_attributes(meta.fetch("provider", nil), content: "name", first: true), "periodical" => periodical, "related_identifiers" => related_identifiers, "publication_year" => publication_year, "dates" => dates, - "description" => meta.fetch("description", nil).present? ? { "text" => sanitize(meta.fetch("description")) } : nil, + "description" => meta.fetch("description", nil).present? ? [{ "text" => sanitize(meta.fetch("description")) }] : nil, "rights" => rights, "version" => meta.fetch("version", nil), "keywords" => meta.fetch("keywords", nil).to_s.split(", "), "state" => state, "schema_version" => meta.fetch("schemaVersion", nil),