BibTeX citation export does not produce valid BibTeX because of a stray space #3571
Labels
bug
Something's not working
good first issue
An issue that can be addressed by anyone working in the project for the first time.
Describe the bug
A clear and concise description of what the bug is.
Janeway version
1.4.3 deployed
To Reproduce
Steps to reproduce the behavior:
Download BibTeX
from talk-bubble menu.bib
file locally..bib
file to any BibTeX-aware citation manager (e.g., Zotero, Bibdesk) or process with Biber.This is failing because Janeway's current BibTeX template does not produce valid BibTeX. It's not valid because it produces a citekey with a space between the journalcode and the articleID. In BibTeX a citekey cannot spaces. So, when Janeway outputs "journalcode articleID" as the citekey, the parser treats "journalcode" as the citekey and then breaks because it doesn't know what to do with "articleID" after the space. Removing this space should generate parsable citekeys.
Current example output:
@article{journalcode 4321, author = {Rosalind Franklin}, …
The space causing the error is the one between
journalcode
and4321
.Expected behavior
In BibTeX output, the first element after
@article{
should be the citekey. If the problematic space is removed, the string consisting of the journalcode and the articleID can become the citekey, as I think the developer intended.Proposed output:
@article{journalcode4321, author = {Rosalind Franklin}, …
Progress
I submitted a pull request that I thought would solve the problem (#3565), but my Python is so far very limited, and it failed.
The text was updated successfully, but these errors were encountered: