Skip to content

Commit

Permalink
current dc export has name last, first
Browse files Browse the repository at this point in the history
  • Loading branch information
nics committed Oct 19, 2023
1 parent b0ae015 commit e114971
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions backends/oaidc/encoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,18 +94,18 @@ func (e *Encoder) encode(r *frontoffice.Record) ([]byte, error) {
}

for _, val := range r.Author {
writeField(b, "creator", val.Name)
writeField(b, "creator", val.NameLastFirst)
}
for _, val := range r.Promoter {
writeField(b, "contributor", val.Name)
writeField(b, "contributor", val.NameLastFirst)
}
if r.Type == "bookEditor" || r.Type == "issueEditor" {
for _, val := range r.Editor {
writeField(b, "creator", val.Name)
writeField(b, "creator", val.NameLastFirst)
}
} else {
for _, val := range r.Editor {
writeField(b, "contributor", val.Name)
writeField(b, "contributor", val.NameLastFirst)
}
}

Expand Down

0 comments on commit e114971

Please sign in to comment.