Skip to content

Commit

Permalink
Merge pull request #1109 from ahmed-shariff/master
Browse files Browse the repository at this point in the history
Fix for inactive doi in arxiv data
  • Loading branch information
jkitchin authored Feb 8, 2024
2 parents b1ceada + 104fc0a commit ae7e789
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions org-ref-arxiv.el
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ Returns a formatted BibTeX entry."
(org-ref-replace-nonascii)
(bibtex-generate-autokey)))
(doi (assq 'doi entry)))
(if doi
(doi-utils-doi-to-bibtex-string (nth 2 doi))
;; no doi, so we fall back to the simple template
(unless (and doi
(ignore-errors (doi-utils-doi-to-bibtex-string (nth 2 doi))))
;; no doi or inactive doi, so we fall back to the simple template
(format arxiv-entry-format-string key title names year arxiv-number category abstract url)))))


Expand Down

0 comments on commit ae7e789

Please sign in to comment.