Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions internal/eutils/fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ func convertArticle(pa pubmedArticle) Article {
if len(au.AffiliationInfo) > 0 {
author.Affiliation = au.AffiliationInfo[0].Affiliation
}
author.DisplayName = author.FullName()
a.Authors = append(a.Authors, author)
}

Expand Down
1 change: 1 addition & 0 deletions internal/eutils/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ type Author struct {
LastName string `json:"last_name"`
ForeName string `json:"fore_name"`
Initials string `json:"initials"`
DisplayName string `json:"display_name"`
CollectiveName string `json:"collective_name,omitempty"`
Affiliation string `json:"affiliation,omitempty"`
}
Expand Down
Loading