Skip to content

Commit

Permalink
bug duplicate DOI for datasets in frontoffice record (#1383)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasfranck authored Mar 6, 2024
1 parent 27998af commit 81945e9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontoffice/record.go
Original file line number Diff line number Diff line change
Expand Up @@ -925,6 +925,10 @@ func MapDataset(d *models.Dataset, repo *repositories.Repo) *Record {
}

for typ, values := range d.Identifiers {
// already in attribute DOI
if typ == "DOI" {
continue
}
for _, value := range values {
rec.Identifier = append(rec.Identifier, Identifier{
Type: typ,
Expand Down

0 comments on commit 81945e9

Please sign in to comment.