diff options
-rw-r--r-- | skate/map.go | 2 | ||||
-rw-r--r-- | skate/schema.go | 14 |
2 files changed, 13 insertions, 3 deletions
diff --git a/skate/map.go b/skate/map.go index af6e817..f812464 100644 --- a/skate/map.go +++ b/skate/map.go @@ -31,7 +31,7 @@ type ContainerNameDoc struct { } `json:"biblio"` } -// PartialDoc for docs, that do not have DOI or title. E.g. we found 49701699 +// PartialDoc for ref docs, that do not have DOI or title. E.g. we found 49701699 // (NCVY), 36401044 (NCVYU), 29668363 (NCUY), and so on. Some examples: XXX type PartialDoc struct { ContainerName string `json:"container_name"` diff --git a/skate/schema.go b/skate/schema.go index c2107e4..db94f4a 100644 --- a/skate/schema.go +++ b/skate/schema.go @@ -167,8 +167,18 @@ func ParseIsbn(s string) []string { // Extra field gets a section for "skate" for conversion related values. type Release struct { ContainerID string `json:"container_id,omitempty"` - ContainerName string `json:"container_name,omitempty"` - Contribs []struct { + ContainerName string `json:"container_name,omitempty"` // when not resolved + Container struct { + ContainerType string `json:"container_type"` + Ident string `json:"ident"` + Issnl string `json:"issnl"` + Name string `json:"name"` + Publisher string `json:"publisher"` + Revision string `json:"revision"` + State string `json:"state"` + WikidataQid string `json:"wikidata_qid"` + } `json:"container"` + Contribs []struct { Index int `json:"index,omitempty"` RawName string `json:"raw_name,omitempty"` Role string `json:"role,omitempty"` |