diff options
Diffstat (limited to 'skate')
-rw-r--r-- | skate/schema.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/skate/schema.go b/skate/schema.go index 23a54b9..2d90735 100644 --- a/skate/schema.go +++ b/skate/schema.go @@ -180,11 +180,17 @@ func ReleaseToUnstructured(r *Release) string { } fmt.Fprintf(&buf, `%s`, r.Publisher) } - if r.ExtIDs.DOI != "" { + switch { + case r.ExtIDs.DOI != "": if buf.Len() > 0 { fmt.Fprintf(&buf, ", ") } fmt.Fprintf(&buf, `%s`, r.ExtIDs.DOI) + case len(r.ExtIDs.ISBN) > 0: + if buf.Len() > 0 { + fmt.Fprintf(&buf, ", ") + } + fmt.Fprintf(&buf, `%s`, r.ExtIDs.ISBN[0]) } return buf.String() } |