From: John Kitchin Date: Thu, 25 Dec 2014 18:44:06 +0000 (-0500) Subject: Merge branch 'master' of https://github.com/jkitchin/org-ref X-Git-Url: https://git.donarmstrong.com/?p=org-ref.git;a=commitdiff_plain;h=04a914fc1dbbfb9758db6eaff10348dfb3a3e64c;hp=23e285a737cb54647830c7184b81cd9fb26248bc Merge branch 'master' of https://github.com/jkitchin/org-ref --- 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