]> git.donarmstrong.com Git - org-ref.git/commitdiff
Merge branch 'journaltitle' of https://github.com/brabalan/org-ref into brabalan...
authorJohn Kitchin <jkitchin@andrew.cmu.edu>
Mon, 20 Apr 2015 23:39:55 +0000 (19:39 -0400)
committerJohn Kitchin <jkitchin@andrew.cmu.edu>
Mon, 20 Apr 2015 23:39:55 +0000 (19:39 -0400)
doi-utils.el
sci-id.el

index 78736871a7c4852c4bd24e5e82ddae9282b86040..fa79d577f7e7db972ed98d4cc70e2c8477ec029f 100644 (file)
@@ -555,15 +555,16 @@ prompt. Otherwise, you have to type or pste in a DOI."
   ;; Wrap in save-window-excursion to restore your window arrangement after this
   ;; is done.
   (save-window-excursion
-    (find-file bibfile)
-    ;; Check if the doi already exists
-    (goto-char (point-min))
-    (if (search-forward doi nil t)
-       (message "%s is already in this file" doi)
-      (end-of-buffer)
-      (insert "\n\n")
-      (doi-utils-insert-bibtex-entry-from-doi doi)
-      (save-buffer))))
+    (with-current-buffer
+      (find-file-noselect bibfile)
+      ;; Check if the doi already exists
+      (goto-char (point-min))
+      (if (search-forward doi nil t)
+         (message "%s is already in this file" doi)
+       (end-of-buffer)
+       (insert "\n\n")
+       (doi-utils-insert-bibtex-entry-from-doi doi)
+       (save-buffer)))))
 
 
 ;; * Updating bibtex entries
index 7f4b880cc7f2a5f43d5e6922889a5375e8c6fde6..e29388c2b382cef037a230a3057b487be103530f 100644 (file)
--- a/sci-id.el
+++ b/sci-id.el
@@ -59,7 +59,7 @@
  (lambda (keyword desc format)
    (cond
     ((eq format 'latex)
-     (format "\\href{http://www.scopus.com/authid/detail.url\\?origin=AuthorProfile&authorId=%s}{%s}" keyword keyword))
+     (format "\\href{http://www.scopus.com/authid/detail.url\\?origin=AuthorProfile&authorId=%s}{%s}" keyword desc))
     ((eq format 'html)
      (format "<a href=\"http://www.scopus.com/authid/detail.url?origin=AuthorProfile&authorId=%s\">scopusid:%s</a>" keyword keyword)))))