Module: OrcidClient::Author

Includes:
Bolognese::AuthorUtils, Bolognese::Utils
Included in:
Notification, Work
Defined in:
lib/orcid_client/author.rb

Instance Method Summary collapse

Instance Method Details

#get_credit_name(author) ⇒ Object



6
7
8
# File 'lib/orcid_client/author.rb', line 6

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

#get_full_name(author) ⇒ Object



10
11
12
# File 'lib/orcid_client/author.rb', line 10

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