diff --git a/app/graphql/types/doi_item.rb b/app/graphql/types/doi_item.rb index 8b43306df..c66d30f55 100644 --- a/app/graphql/types/doi_item.rb +++ b/app/graphql/types/doi_item.rb @@ -324,7 +324,7 @@ def descriptions(first: nil) end def identifiers - Array.wrap(object.identifiers).select { |r| [object.doi, object.url].exclude?(r["identifier"]) } + Array.wrap(object.identifiers).select { |r| [doi_from_url(object.doi), object.url].compact.exclude?(r["identifier"]) } end def bibtex