Skip to content

Commit

Permalink
Update crossref.go
Browse files Browse the repository at this point in the history
  • Loading branch information
mfenner committed Apr 19, 2024
1 parent bfa2d7e commit 8744bfb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions crossref/crossref.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,12 @@ func ReadCrossref(content types.Content) (types.Data, error) {
}

for _, v := range content.Subject {
data.Subjects = append(data.Subjects, types.Subject{
subject := types.Subject{
Subject: v,
})
}
if !slices.Contains(data.Subjects, subject) {
data.Subjects = append(data.Subjects, subject)
}
}

if content.GroupTitle != "" {
Expand Down

0 comments on commit 8744bfb

Please sign in to comment.