Skip to content

Commit

Permalink
Format arxiv: convert entry to @article
Browse files Browse the repository at this point in the history
  • Loading branch information
tdegeus committed Nov 7, 2023
1 parent 33b2c63 commit 7fcf3c2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions GooseBib/bibtex.py
Original file line number Diff line number Diff line change
Expand Up @@ -921,10 +921,12 @@ def format_journal_arxiv(

if "journal" not in entry:
entry["journal"] = fmt.format(arxivid)
entry["ENTRYTYPE"] = "article"
else:
for i in pattern:
if i in entry["journal"].lower():
entry["journal"] = fmt.format(arxivid)
entry["ENTRYTYPE"] = "article"
break

if len(journal_database) > 0:
Expand All @@ -943,6 +945,7 @@ def format_journal_arxiv(
if not re.match(search, entry["doi"]):
continue
entry["journal"] = fmt.format(arxivid)
entry["ENTRYTYPE"] = "article"

return data

Expand Down

0 comments on commit 7fcf3c2

Please sign in to comment.