lib/bolognese/readers/schema_org_reader.rb in bolognese-1.6.3 vs lib/bolognese/readers/schema_org_reader.rb in bolognese-1.6.4

- old
+ new

@@ -105,13 +105,12 @@ Array.wrap(schema_org_references(meta)) + Array.wrap(schema_org_is_referenced_by(meta)) + Array.wrap(schema_org_is_supplement_to(meta)) + Array.wrap(schema_org_is_supplemented_by(meta)) - rights_list = [{ - "rightsUri" => parse_attributes(meta.fetch("license", nil), content: "id", first: true), - "rights" => parse_attributes(meta.fetch("license", nil), content: "name", first: true) - }] + rights_list = Array.wrap(meta.fetch("license", nil)).compact.map do |rl| + hsh_to_spdx("__content__" => rl["name"], "rightsURI" => rl["id"]) + end funding_references = Array.wrap(meta.fetch("funder", nil)).compact.map do |fr| if fr["@id"].present? { "funderName" => fr["name"],