Function: org-cite-csl--bibliography-filter

org-cite-csl--bibliography-filter is a byte-compiled function defined in oc-csl.el.gz.

Signature

(org-cite-csl--bibliography-filter BIB-PROPS)

Documentation

Return the sub-bibliography filter corresponding to bibliography properties.

BIB-PROPS should be a plist representing the properties associated with a "print_bibliography" keyword, as returned by org-cite-bibliography-properties.

Source Code

;; Defined in /usr/src/emacs/lisp/org/oc-csl.el.gz
(defun org-cite-csl--bibliography-filter (bib-props)
  "Return the sub-bibliography filter corresponding to bibliography properties.

BIB-PROPS should be a plist representing the properties
associated with a \"print_bibliography\" keyword, as returned by
`org-cite-bibliography-properties'."
  (let (result
	(remove-keyword-colon (lambda (x) (intern (substring (symbol-name x) 1)))))
    (map-do
     (lambda (key value)
       (pcase key
         ((or :keyword :notkeyword :nottype :notcsltype :filter)
          (dolist (v (split-string value ","))
	    (push (cons  (funcall remove-keyword-colon key) v) result)))
         ((or :type :csltype)
          (if (string-match-p "," value)
              (user-error "The \"%s\" print_bibliography option does not support comma-separated values" key)
            (push (cons (funcall remove-keyword-colon key) value) result)))))
     bib-props)
    result))