Skip to content

clean bibtex file #31

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

clean bibtex file #31

wants to merge 2 commits into from

Conversation

thomas-saigre
Copy link
Collaborator

When running ./a.cli update-bibtex, it could happen that many empty entries are included in the generated bib file, e.g.

@article{sadeghi_mathematical_2024,
	title = {Mathematical {Models} of {Ocular} {Drug} {Delivery}},
	volume = {65},
	copyright = {http://creativecommons.org/licenses/by-nc-nd/4.0/},
	issn = {1552-5783},
	url = {https://iovs.arvojournals.org/article.aspx?articleid=2800804},
	doi = {10.1167/iovs.65.11.28},
	language = {en},
	number = {11},
	journal = {Investigative Ophthalmology \& Visual Science},
	author = {Sadeghi, Amir and Subrizi, Astrid and Del Amo, Eva M. and Urtti, Arto},
	month = sep,
	year = {2024},
	note = {Publisher: Association for Research in Vision and Ophthalmology (ARVO)},
	pages = {28},
}

@misc{noauthor_notitle_nodate,
}

@misc{noauthor_notitle_nodate-1,
}

@misc{noauthor_notitle_nodate-2,
}

It seems to be an error related to Zotero API, as other services have the same behavior (see for instance typst/webapp-issues#489 or https://forums.zotero.org/discussion/97526/duplicated-noauthor-nodate-entries).

With the modifications of the PR, after generating the bibtex, all empty entries are deleted using a regexp.

@thomas-saigre thomas-saigre requested a review from prudhomm May 23, 2025 13:26
@thomas-saigre thomas-saigre self-assigned this May 23, 2025
@thomas-saigre thomas-saigre added bug Something isn't working 📚 zotero labels May 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📚 zotero bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants