diff options
Diffstat (limited to 'skate/schema.go')
-rw-r--r-- | skate/schema.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/skate/schema.go b/skate/schema.go index 2d90735..0fd429f 100644 --- a/skate/schema.go +++ b/skate/schema.go @@ -190,7 +190,11 @@ func ReleaseToUnstructured(r *Release) string { if buf.Len() > 0 { fmt.Fprintf(&buf, ", ") } - fmt.Fprintf(&buf, `%s`, r.ExtIDs.ISBN[0]) + if isbn13, err := isbn.To13(r.ExtIDs.ISBN[0]); err == nil { + fmt.Fprintf(&buf, `%s`, isbn13) + } else { + fmt.Fprintf(&buf, `%s`, r.ExtIDs.ISBN[0]) + } } return buf.String() } |