X-Git-Url: https://git.donarmstrong.com/?p=org-ref.git;a=blobdiff_plain;f=org-ref.org;h=fd9e3d65fd425b68d15e4cb3b08171f9d3bc00a7;hp=23c02501aa3217da07496a0972d7f8aa4fba6274;hb=979d4932571956628e51f29f9e900dea7ab4187c;hpb=4a6d64c999a0155e3e1790b632bee580a476486a diff --git a/org-ref.org b/org-ref.org index 23c0250..fd9e3d6 100644 --- a/org-ref.org +++ b/org-ref.org @@ -1428,7 +1428,9 @@ The function must take no arguments and work on the key at point. Do not modify (with-temp-buffer (insert-file-contents bibfile) (bibtex-search-entry key) - (bibtex-autokey-get-field "doi"))))) + (bibtex-autokey-get-field "doi") + ;; in case doi is a url, remove the url part. + (replace-regexp-in-string "^http://dx.doi.org/" "" doi))))) ;; functions that operate on key at point for click menu