Skip to content

Fix bare month normalization in arxiv_to_publications_correct.py#1109

Merged
pancetta merged 1 commit into
sourcefrom
copilot/fix-date-format-issues
Jun 15, 2026
Merged

Fix bare month normalization in arxiv_to_publications_correct.py#1109
pancetta merged 1 commit into
sourcefrom
copilot/fix-date-format-issues

Conversation

Copilot AI commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

PRs #1098/#1099 fixed issue_to_bibtex.py (bibbot) for bare/unquoted month values from DOI BibTeX (e.g. month = june,), but arxiv_to_publications_correct.py (arxivbot) was never patched. Issue #1105 hit the identical failure: two entries silently dropped with error processing BibTeX from DOI: 'june'.

bibtexparser treats unquoted bare words as string references, throwing UndefinedString: 'june' when no such string is defined.

Changes

bib = "{".join([bType] + [','.join([id]+rest2)] + rest1[1:])
bib = normalize_month_fields(bib)   # <-- new
bib_db = bibtexparser.loads(bib)

@pancetta pancetta marked this pull request as ready for review June 15, 2026 06:30
@pancetta pancetta merged commit 21d0cc7 into source Jun 15, 2026
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

Successfully merging this pull request may close these issues.

2 participants