Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Abbreviating journal name fails when the full name has uppercase terms in it (e.g. ACM) #19

Open
tzok opened this issue Jul 25, 2023 · 1 comment

Comments

@tzok
Copy link

tzok commented Jul 25, 2023

You can reproduce the problem with doi:10.1145/3589263

  1. BibTeX generated by crossref.org has a protected term in the journal field: {ACM}

    $ curl http://api.crossref.org/works/10.1145/3589263/transform/application/x-bibtex
    @article{Kuschewski_2023,
     ...
     journal = {Proceedings of the {ACM} on Management of Data}
    }
  2. Because of that, the regular expression to replace the journal field with the abbreviated name fails: https://github.com/bibcure/doi2bib/blob/master/doi2bib/crossref.py#L91

  3. In effect, the BibTeX produced by doi2bib has this malformed line:

    @article{Kuschewski_2023,
     ...
         journal = {Proc. ACM Manag. Data} on Management of Data}
    }
  4. In the end, bibtexparser recognizes the whole section as a comment and not an @article

@tzok
Copy link
Author

tzok commented Jul 25, 2023

I can now see that this problem is fixed by this PR from 2021: #10

Can you please merge it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant