pcubillos / bibmanager

A BibTeX manager for LaTeX projects
https://bibmanager.rtfd.io
MIT License
62 stars 13 forks source link

Feature request: Add more robust way to query ADS for bulk update of bibtex entries (not just from bibcode) #109

Open emirkmo opened 2 years ago

emirkmo commented 2 years ago

It is possible to query ADS entries even if they don't contain the bibcode. In fact, by default, ADS bibtex citation exports don't include the bibcode as key. It is simply the name of the entry, which is often overwritten by users.

However, using the API it is possible to match bibtex entries anyway, even if they do not have a bibcode.

This is useful not just for automatically updating Arxiv papers with their published version, but also updating old or incompatible Bibtex styles with the new standardized ADS style.

In fact, I will make a second issue for this, requesting that the bulk update allow using httpx AsyncClient so that ADS does not time you out and connections can be managed much more efficiently.

I have a simple script that does this already (searches ads by a combination of the existing keys to get verified matches), and downloads the new ADS bibtex entry. It would be great if I could integrate that with bibmanager, what do you say? It would go in the ads_manager script.

Additionally, I can add in the async support that I wanted while I am at it..

Please let me know if you are open to PRs @pcubillos, else I will work on a fork :)! Thanks

P.S. Thanks so much for the script, it's going into the software citations of my thesis! Really helpful!

pcubillos commented 2 years ago

Hi Emir, I'm glad that you found this tool useful. Yes, I'm always happy to take PRs that improve the code. Feel free to open one, I'll take a look and we go from there. Thanks!