Function: org-cite-get-references
org-cite-get-references is a byte-compiled function defined in
oc.el.gz.
Signature
(org-cite-get-references CITATION &optional KEYS-ONLY)
Documentation
Return citations references contained in CITATION object.
When optional argument KEYS-ONLY is non-nil, return the references' keys, as a list of strings.
Assume CITATION object comes from either a full parse tree, e.g., during export, or from the current buffer.
Source Code
;; Defined in /usr/src/emacs/lisp/org/oc.el.gz
(defun org-cite-get-references (citation &optional keys-only)
"Return citations references contained in CITATION object.
When optional argument KEYS-ONLY is non-nil, return the references' keys, as a
list of strings.
Assume CITATION object comes from either a full parse tree, e.g., during export,
or from the current buffer."
(let ((contents (org-element-contents citation)))
(cond
((null contents)
(org-with-point-at (org-element-property :contents-begin citation)
(narrow-to-region (point) (org-element-property :contents-end citation))
(let ((references nil))
(while (not (eobp))
(let ((reference (org-element-citation-reference-parser)))
(goto-char (org-element-property :end reference))
(push (if keys-only
(org-element-property :key reference)
reference)
references)))
(nreverse references))))
(keys-only (mapcar (lambda (r) (org-element-property :key r)) contents))
(t contents))))