datacite/orcid_client

View on GitHub
lib/orcid_client/author.rb

Summary

Maintainability
A
0 mins
Test Coverage
C
75%
module OrcidClient
  module Author
    include Bolognese::AuthorUtils
    include Bolognese::Utils

    def get_credit_name(author)
      [author['given'], author['family']].compact.join(' ').presence || author['literal']
    end

    def get_full_name(author)
      [author['family'], author['given']].compact.join(', ')
    end
  end
end