aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2021-05-28 23:59:45 +0200
committerMartin Czygan <martin.czygan@gmail.com>2021-05-28 23:59:45 +0200
commitcebc33d54a74fb0e0aaa0121c54ae78c97341b22 (patch)
treef52c75c8a7e6af9d88551fd368fbd4ad164c2cc9
parent22e7e3373a0a2ee7170b65f4ceaaf5d822778feb (diff)
downloadrefcat-cebc33d54a74fb0e0aaa0121c54ae78c97341b22.tar.gz
refcat-cebc33d54a74fb0e0aaa0121c54ae78c97341b22.zip
schema: mapping example
-rw-r--r--skate/schema.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/skate/schema.go b/skate/schema.go
index 118e124..45f1230 100644
--- a/skate/schema.go
+++ b/skate/schema.go
@@ -574,6 +574,11 @@ func OpenLibraryEditionToRelease(v *OpenLibraryEdition, authorMap map[string]str
}, len(v.Authors))
)
for i, author := range v.Authors {
+ // /authors/OL1076839A Ralph S. Hattox
+ // /authors/OL1054947A Conferenza economica dell'area pisana (1984 Pisa, Italy)
+ // /authors/OL1069856A Terry S. Boutet
+ // /authors/OL1077217A Pamela Beck
+ // ...
name, ok := authorMap[author.Key]
if !ok {
continue