diff options
Diffstat (limited to 'skate/zippy.go')
-rw-r--r-- | skate/zippy.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/skate/zippy.go b/skate/zippy.go index b36af6c..146d2e7 100644 --- a/skate/zippy.go +++ b/skate/zippy.go @@ -159,9 +159,9 @@ func ZippyVerifyRefs(releases, refs io.Reader, w io.Writer) error { return zipper.Run() } -// ZippyVerifyRefsOnly takes a release and refs reader (tsv, with ident, key, doc) -// and will execute gf for each group found. -func ZippyVerifyRefsOnly(releases, refs io.Reader, w io.Writer) error { +// ZippyVerifyRefsOpenLibrary takes OL editions (as release) and refs (as +// release) and emits biblioref. +func ZippyVerifyRefsOpenLibrary(olr, refs io.Reader, w io.Writer) error { // Define a grouper, working on one set of refs and releases with the same // key at a time. var ( @@ -174,6 +174,7 @@ func ZippyVerifyRefsOnly(releases, refs io.Reader, w io.Writer) error { if len(g.G0) == 0 || len(g.G1) == 0 { return nil } + // We take a single edition from OL; XXX: might want to link to work. if pivot, err = stringToRelease(cut(g.G0[0], "\t", 2)); err != nil { return err } @@ -184,7 +185,6 @@ func ZippyVerifyRefsOnly(releases, refs io.Reader, w io.Writer) error { // The refs have a container name, but not a title, but here we // compare against titles from open library. re.Title = re.ContainerName - result := Verify(pivot, re) fmt.Printf("%s\t%s\t%s\t%s\t%s\n", result.Status.Short(), @@ -196,7 +196,7 @@ func ZippyVerifyRefsOnly(releases, refs io.Reader, w io.Writer) error { return nil } ) - zipper := zipkey.New(releases, refs, keyer, grouper) + zipper := zipkey.New(olr, refs, keyer, grouper) return zipper.Run() } |