arXiv / arxiv-browse

Flask app for article abstract and listing pages
MIT License
109 stars 59 forks source link

bibtex export `primaryClass` field contains cruft #644

Closed collares closed 2 months ago

collares commented 2 months ago

Describe the bug

arXiv's BibTeX exporting recently changed. Now, https://arxiv.org/bibtex/2406.16733 (for example) returns

@misc{dona2024diameter,
      title={The diameter of random Schreier graphs}, 
      author={Daniele Dona and Luca Sabatini},
      year={2024},
      eprint={2406.16733},
      archivePrefix={arXiv},
      primaryClass={id='math.CO' full_name='Combinatorics' is_active=True alt_name=None in_archive='math' is_general=False description='Discrete mathematics, graph theory, enumeration, combinatorial optimization, Ramsey theory, combinatorial game theory'}
}

The primaryClass field in particular contains more information than just {math.CO}, which is what I would expect.

To Reproduce

Steps to reproduce the behavior:

  1. Go to https://arxiv.org/bibtex/2406.16733
  2. See primaryClass field

Expected behavior primaryClass={math.CO}, for example

jweiskoff commented 2 months ago

Thank you for pointing this out. We have created a work ticket for this bug.

bdc34 commented 2 months ago

PR for this: https://github.com/arXiv/arxiv-browse/pull/645

jweiskoff commented 2 months ago

Deployed.