Skip to content

Commit

Permalink
Don't return empty geoLocationPolygons
Browse files Browse the repository at this point in the history
  • Loading branch information
richardhallett committed Mar 24, 2021
1 parent db09275 commit 8087419
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bolognese/readers/datacite_reader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def read_datacite(string: nil, **options)
}.compact.presence,
"geoLocationPolygon" => Array.wrap(gl.dig("geoLocationPolygon")).map do |glp|
Array.wrap(glp.dig("polygonPoint")).map { |glpp| { "polygonPoint" => glpp } }.compact.presence
end,
end.compact.presence,
"geoLocationPlace" => parse_attributes(gl["geoLocationPlace"], first: true).to_s.strip.presence
}.compact
end
Expand Down

0 comments on commit 8087419

Please sign in to comment.