diff options
Diffstat (limited to 'skate/schema.go')
-rw-r--r-- | skate/schema.go | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/skate/schema.go b/skate/schema.go index afd9034..a3f261d 100644 --- a/skate/schema.go +++ b/skate/schema.go @@ -433,7 +433,7 @@ type BiblioRef struct { type CSL struct { Accessed CSLDate `json:"accessed,omitempty"` Author []CSLAuthor `json:"author,omitempty"` - CollectionTitle string `json:"collection-title"` + CollectionTitle string `json:"collection-title,omitempty"` ContainerTitle string `json:"container-title,omitempty"` ContainerTitleShort string `json:"container-title-short,omitempty"` DOI string `json:"DOI,omitempty"` @@ -442,8 +442,8 @@ type CSL struct { ISSN string `json:"ISSN,omitempty"` Issue string `json:"issue,omitempty"` Issued CSLDate `json:"issued,omitempty"` - JounralAbbreviation string `json:"journalAbbreviation"` - Language string `json:"language"` + JournalAbbreviation string `json:"journalAbbreviation,omitempty"` + Language string `json:"language,omitempty"` NumberOfPages string `json:"number-of-pages,omitempty"` OriginalTitle string `json:"original-title,omitempty"` PMCID string `json:"PMCID,omitempty"` @@ -480,10 +480,13 @@ type CSLDate struct { // “Prince” or “Plato”). In such cases, the name can be delivered as a lone // family element. Institutional names may be delivered in the same way, but it // is preferred to set them instead as a literal element. +// +// We include Name, for holding unparsed name, which is not a literal. type CSLAuthor struct { Family string `json:"family,omitempty"` Given string `json:"given,omitempty"` Literal string `json:"literal,omitempty"` + Name string `json:"name,omitempty"` } func (b *BiblioRef) Reset() { |