aboutsummaryrefslogtreecommitdiffstats
path: root/skate/schema.go
diff options
context:
space:
mode:
Diffstat (limited to 'skate/schema.go')
-rw-r--r--skate/schema.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/skate/schema.go b/skate/schema.go
index 77460d1..23a54b9 100644
--- a/skate/schema.go
+++ b/skate/schema.go
@@ -180,6 +180,12 @@ func ReleaseToUnstructured(r *Release) string {
}
fmt.Fprintf(&buf, `%s`, r.Publisher)
}
+ if r.ExtIDs.DOI != "" {
+ if buf.Len() > 0 {
+ fmt.Fprintf(&buf, ", ")
+ }
+ fmt.Fprintf(&buf, `%s`, r.ExtIDs.DOI)
+ }
return buf.String()
}