aboutsummaryrefslogtreecommitdiffstats
path: root/skate/cmd
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2021-07-09 18:17:21 +0200
committerMartin Czygan <martin.czygan@gmail.com>2021-07-09 18:17:21 +0200
commit5962c0eb9d3f6b870af65873322dadfcc4eb50e8 (patch)
tree640e5c0746b3b009912c4018287769fa5c88fa9c /skate/cmd
parent4df87f9381ce73074abdb1b00635a342f2abadfd (diff)
downloadrefcat-5962c0eb9d3f6b870af65873322dadfcc4eb50e8.tar.gz
refcat-5962c0eb9d3f6b870af65873322dadfcc4eb50e8.zip
wiki: flip doi and page title column
Diffstat (limited to 'skate/cmd')
-rw-r--r--skate/cmd/skate-wikipedia-doi/main.go6
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
})