diff options
Diffstat (limited to 'skate/cmd/skate-wikipedia-doi')
-rw-r--r-- | skate/cmd/skate-wikipedia-doi/main.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/skate/cmd/skate-wikipedia-doi/main.go b/skate/cmd/skate-wikipedia-doi/main.go index d9ee135..db40a20 100644 --- a/skate/cmd/skate-wikipedia-doi/main.go +++ b/skate/cmd/skate-wikipedia-doi/main.go @@ -27,11 +27,11 @@ func main() { if err := json.Unmarshal(p, &w); err != nil { return nil, err } - idl := w.ParseIDList() - if idl.DOI == "" { + ids := w.ParseIDList() + if ids.DOI == "" { return nil, nil } - s := fmt.Sprintf("%s\t%s\t%s", strings.TrimSpace(w.PageTitle), idl.DOI, string(p)) + s := fmt.Sprintf("%s\t%s\t%s", ids.DOI, strings.TrimSpace(w.PageTitle), string(p)) return []byte(s), nil }) |