diff options
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 { |