Skip to content

Commit

Permalink
fix for issue #1100
Browse files Browse the repository at this point in the history
  • Loading branch information
jkitchin committed Nov 24, 2023
1 parent 195b8d3 commit a70ca9a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions org-ref-citation-links.el
Original file line number Diff line number Diff line change
Expand Up @@ -592,13 +592,13 @@ PATH has the citations in it."
"Get a tooltip for the cite at POSITION."
(let ((key (get-text-property position 'cite-key)))
(when key
(let ((bibtex-completion-bibliography (org-ref-find-bibliography))
(has-pdf (when (bibtex-completion-find-pdf key) bibtex-completion-pdf-symbol))
(has-notes (when (cl-some #'identity
(mapcar (lambda (fn)
(funcall fn key))
bibtex-completion-find-note-functions))
bibtex-completion-notes-symbol)))
(let* ((bibtex-completion-bibliography (org-ref-find-bibliography))
(has-pdf (when (bibtex-completion-find-pdf key) bibtex-completion-pdf-symbol))
(has-notes (when (cl-some #'identity
(mapcar (lambda (fn)
(funcall fn key))
bibtex-completion-find-note-functions))
bibtex-completion-notes-symbol)))
(format "%s%s %s" (or has-pdf "") (or has-notes "")
(bibtex-completion-apa-format-reference key))))))

Expand Down

0 comments on commit a70ca9a

Please sign in to comment.