diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2021-06-01 17:06:37 +0200 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2021-06-01 17:06:37 +0200 |
commit | 00c08c0776972544bfae315b50081596079214f2 (patch) | |
tree | 69688e97127f6c889be049ae45b530be42daaaf7 | |
parent | c3ceffd4e1d6fb90336578d862f806b8955a9a91 (diff) | |
download | refcat-00c08c0776972544bfae315b50081596079214f2.tar.gz refcat-00c08c0776972544bfae315b50081596079214f2.zip |
skate: extend release schema
-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"` |