Skip to content

Month returned by habanero.cn.content_negotiation(ids = doi) no longer in curly brackets #144

Closed
@tardigradus

Description

@tardigradus

With Python 3.6.8 and habanero 0.7.4, I have been successfully downloading BibTeX files and parsing them with BibtexParser for the last couple of years. However, some time between the middle of September 2023 and now, the format of the BibTex file I get via habanero.cn.content_negotiation(ids = doi) changed: The value of the field month is no longer enclosed in curly brackets.

So whereas in the middle of September 2023 I got:

@article{Zupan2023,
 author = {Hana Zupan and Frederick Heinz and Bettina G. Keller},
 doi = {10.1139/cjc-2022-0282},
 journal = {Canadian Journal of Chemistry},
 month = {sep},
 number = {9},
 pages = {710--724},
 publisher = {Canadian Science Publishing},
 title = {Grid-based state space exploration for molecular binding},
 url = {https://doi.org/10.1139/cjc-2022-0282},
 volume = {101},
 year = {2023}
}

I now get

@article{Zupan2023,
 author = {Hana Zupan and Frederick Heinz and Bettina G. Keller},
 doi = {10.1139/cjc-2022-0282},
 journal = {Canadian Journal of Chemistry},
 month = sep,
 number = {9},
 pages = {710--724},
 publisher = {Canadian Science Publishing},
 title = {Grid-based state space exploration for molecular binding},
 url = {https://doi.org/10.1139/cjc-2022-0282},
 volume = {101},
 year = {2023}
}

This is then causing BibtexParser to fail.

I assume this is not directly a problem with habanero, but this a known issue?

Edit: doi2bib has the same issue: https://www.doi2bib.org/bib/10.1139/cjc-2022-0282

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions