Skip to content

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

@tzok

Description

@tzok

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions