andras-simonyi / citeproc-el

A CSL 1.0.2 Citation Processor for Emacs.
GNU General Public License v3.0
85 stars 9 forks source link

JSON problems #20

Closed bdarcus closed 3 years ago

bdarcus commented 3 years ago

To be clear, I do not know if the problem here is with citeproc-el, oc-csl, or me, but figured I'd start here.

Input:

#+language: en
#+bibliography: "~/org/bib/newer.json"
#+cite_export: csl

two cites, same author: [cite/noauthor:@low2017;@low2001]

two cites, different author: [cite/noauthor:@low2017;@kohn2013]

#+print_bibliography:

Output:


two cites, same author: (NO_ITEM_DATA:low2017, NO_ITEM_DATA:low2001)

two cites, different author: (NO_ITEM_DATA:low2017,
NO_ITEM_DATA:kohn2013)

NO_ITEM_DATA:low2017

NO_ITEM_DATA:low2001

NO_ITEM_DATA:kohn2013

The csl json file is generated with Better BibTeX, and should be correct (edit: per below, I also tested with a json file converted using pandoc, with same results).

I don't know whether:

  1. citeproc can't find the file (doubtful)
  2. can't read the file (?)

... and if 2, why.

bdarcus commented 3 years ago

BTW, I really should know this, but do we have a really good command line biblatex -> csl json converter?

There's this, but it doesn't have a command line app.

https://github.com/fiduswriter/biblatex-csl-converter

This has one, but no biblatex:

https://github.com/larsgw/citation.js

bdarcus commented 3 years ago

Ah, pandoc does (of course):

pandoc -f biblatex -t csljson newer.bib > newer2.json

Using this conversion, I get same results.

bdarcus commented 3 years ago

Closing; the issue was in oc-csl.