lib/bolognese/readers/schema_org_reader.rb in bolognese-1.2.3 vs lib/bolognese/readers/schema_org_reader.rb in bolognese-1.2.4
- old
+ new
@@ -42,10 +42,10 @@
if string.present?
errors = jsonlint(string)
return { "errors" => errors } if errors.present?
end
- read_options = ActiveSupport::HashWithIndifferentAccess.new(options.except(:doi, :id, :url, :sandbox, :validate))
+ read_options = ActiveSupport::HashWithIndifferentAccess.new(options.except(:doi, :id, :url, :sandbox, :validate, :ra))
meta = string.present? ? Maremma.from_json(string) : {}
identifiers = ([options[:doi] || meta.fetch("@id", nil)] + Array.wrap(meta.fetch("identifier", nil))).map do |r|
r = normalize_id(r) if r.is_a?(String)