diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2021-06-04 00:36:19 +0200 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2021-06-04 00:36:19 +0200 |
commit | d31b54d4c16c4a79be10817cfdc666f7f8601b40 (patch) | |
tree | 8f235a27b78258455d827c0f36b735af91f930ed /skate | |
parent | 59c33782bd73da39586b746414f6cd6aa28d1d31 (diff) | |
download | refcat-d31b54d4c16c4a79be10817cfdc666f7f8601b40.tar.gz refcat-d31b54d4c16c4a79be10817cfdc666f7f8601b40.zip |
schema: source records example
Diffstat (limited to 'skate')
-rw-r--r-- | skate/schema.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/skate/schema.go b/skate/schema.go index db94f4a..e6c33ec 100644 --- a/skate/schema.go +++ b/skate/schema.go @@ -611,7 +611,14 @@ func OpenLibraryEditionToRelease(v *OpenLibraryEdition, authorMap map[string]str if len(v.Works) > 0 { release.Extra.OpenLibrary.WorkID = v.Works[0].Key } + // e.g. + // "source_records": [ + // "amazon:0531203093", + // "ia:multiplebirths0000land", + // "marc:marc_loc_2016/BooksAll.2016.part25.utf8:104915596:921" + // ] release.Extra.OpenLibrary.SourceRecords = v.SourceRecords + for _, l := range openLibraryDateLayouts { t, err := time.Parse(l, v.PublishDate) if err != nil { |