Closed anyuzx closed 3 years ago
Sorry, that is an issue with my BibTeX parser. This version does not recognize fields that are not lowercase yet. I am working on a new version, and I think I might take some time in the next two weeks to finish it.
Alternatively, you can add this snippet (once, when importing citation-js) to proxy the BibTeX parser to fix it:
citejs.plugins.input.addDataParser('@bibtex/object', {
async: false,
parser (data) {
for (const prop in data.properties) {
data.properties[prop.toLowerCase()] = data.properties[prop]
delete data.properties[prop]
}
return citejs.parse.bibtex.json(data)
}
})
@larsgw thanks for the snippet. This works well.
This issue should be fixed in v0.5.0-alpha.10. If not, please re-open the issue.
Hello, I am trying to parse a bibtex file, it seems the result CSL-JSON miss many fields in the bibtex entry.
Here is the test.bib file
I tried to read it like this,
The output is,
The title, authors, etc are missing from the result. Thanks.