]> git.donarmstrong.com Git - org-ref.git/commitdiff
added summary citation back to menu. removed : from end.
authorJohn Kitchin <jkitchin@andrew.cmu.edu>
Fri, 19 Dec 2014 20:16:26 +0000 (15:16 -0500)
committerJohn Kitchin <jkitchin@andrew.cmu.edu>
Fri, 19 Dec 2014 20:16:26 +0000 (15:16 -0500)
org-ref.org

index 28ea7d8e9a8a13e83da52620a63bf317fca6e22d..23c02501aa3217da07496a0972d7f8aa4fba6274 100644 (file)
@@ -1554,11 +1554,20 @@ Provides a menu of context sensitive actions. If the bibtex entry has a pdf, you
     ;; construct menu string as a message
     (message
      (concat
+      (let* ((results (org-ref-get-bibtex-key-and-file))
+            (key (car results))
+            (bibfile (cdr results)))
+       (save-excursion
+         (with-temp-buffer
+           (insert-file-contents bibfile)
+           (bibtex-search-entry key)
+           (org-ref-bib-citation))))
+      "\n"
       (mapconcat
        (lambda (tup)
         (concat "[" (elt tup 0) "]"
                 (elt tup 1) " "))
-       org-ref-cite-menu-funcs "") ": "))
+       org-ref-cite-menu-funcs "")))
     ;; get the input
     (let* ((input (read-char-exclusive))
           (choice (assoc
@@ -1571,6 +1580,9 @@ Provides a menu of context sensitive actions. If the bibtex entry has a pdf, you
          2))))))
 #+END_SRC
 
+#+RESULTS:
+: org-ref-cite-onclick-minibuffer-menu
+
 *** A function to format a cite link
 
 Next, we define a formatting function for the cite link. This is done so that the cite link definition is very short, and easy to change. You just need to specify the functions in the definition. This function is deprecated. The formatting is defined later automatically.