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:
- Select
Download BibTeX from talk-bubble menu
- Save
.bib file locally.
- Attempt to import
.bib file to any BibTeX-aware citation manager (e.g., Zotero, Bibdesk) or process with Biber.
- failure
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 and 4321.
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.
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 BibTeXfrom talk-bubble menu.bibfile locally..bibfile 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
journalcodeand4321.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.