diff options
Diffstat (limited to 'skate/schema.go')
-rw-r--r-- | skate/schema.go | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/skate/schema.go b/skate/schema.go index a9b6a96..77460d1 100644 --- a/skate/schema.go +++ b/skate/schema.go @@ -150,6 +150,36 @@ func ReleaseToUnstructured(r *Release) string { } fmt.Fprintf(&buf, `%s`, r.ContainerName) } + if r.Volume != "" { + if buf.Len() > 0 { + fmt.Fprintf(&buf, ", ") + } + fmt.Fprintf(&buf, `vol. %s`, r.Volume) + } + if r.Issue != "" { + if buf.Len() > 0 { + fmt.Fprintf(&buf, ", ") + } + fmt.Fprintf(&buf, `no. %s`, r.Issue) + } + if r.ReleaseYear() > 0 { + if buf.Len() > 0 { + fmt.Fprintf(&buf, ", ") + } + fmt.Fprintf(&buf, `%s`, r.ReleaseYearString()) + } + if r.Pages != "" { + if buf.Len() > 0 { + fmt.Fprintf(&buf, ", ") + } + fmt.Fprintf(&buf, `pp. %s`, r.Pages) + } + if r.Publisher != "" { + if buf.Len() > 0 { + fmt.Fprintf(&buf, ", ") + } + fmt.Fprintf(&buf, `%s`, r.Publisher) + } return buf.String() } |