lib/bolognese/readers/schema_org_reader.rb in bolognese-1.0.1 vs lib/bolognese/readers/schema_org_reader.rb in bolognese-1.0.2

- old
+ new

@@ -121,14 +121,14 @@ "ris_type" => Bolognese::Utils::SO_TO_RIS_TRANSLATIONS[resource_type_general.to_s.dasherize] || "GEN", "resource_type_general" => resource_type_general, "doi" => validate_doi(id), "identifier" => identifier, "alternate_identifiers" => alternate_identifiers, - "b_url" => normalize_id(meta.fetch("url", nil)), + "url" => normalize_id(meta.fetch("url", nil)), "content_url" => Array.wrap(meta.fetch("contentUrl", nil)).unwrap, "size" => meta.fetch("contenSize", nil), - "format" => Array.wrap(meta.fetch("encodingFormat", nil) || meta.fetch("fileFormat", nil)).unwrap, + "formats" => Array.wrap(meta.fetch("encodingFormat", nil) || meta.fetch("fileFormat", nil)).unwrap, "title" => meta.fetch("name", nil), "creator" => author, "editor" => editor, "publisher" => publisher, "service_provider" => parse_attributes(meta.fetch("provider", nil), content: "name", first: true), @@ -137,10 +137,10 @@ "date_created" => meta.fetch("dateCreated", nil), "date_published" => date_published, "date_modified" => meta.fetch("dateModified", nil), "description" => meta.fetch("description", nil).present? ? { "text" => sanitize(meta.fetch("description")) } : nil, "rights" => rights, - "b_version" => meta.fetch("version", nil), + "version" => meta.fetch("version", nil), "keywords" => meta.fetch("keywords", nil).to_s.split(", "), "state" => state, "schema_version" => meta.fetch("schemaVersion", nil), "funding_references" => funding_references, "geo_location" => geo_location