From 7c929e9d8c657048218a5cd1c623721e2c1d0128 Mon Sep 17 00:00:00 2001 From: Ihor Radchenko Date: Fri, 25 Aug 2023 11:37:59 +0300 Subject: [PATCH] * lisp/oc-basic.el: Fix parsing "editor" field in json bibliographies (org-cite-basic--parse-json): Parse "editor" field, not "editors". "editors" is a typo - the common field name is "editor". For example, see https://www.bibtex.com/e/book-entry/. Reported-by: Margaret Patterson Link: https://list.orgmode.org/orgmode/ea0d8557-f67d-c8b1-522f-b5ad37612d99@ninecats.org/ --- lisp/oc-basic.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/oc-basic.el b/lisp/oc-basic.el index 1c8c37aa9..5c9aad8f6 100644 --- a/lisp/oc-basic.el +++ b/lisp/oc-basic.el @@ -162,7 +162,7 @@ Return a hash table with citation references as keys and fields alist as values. (puthash (cdr (assq 'id item)) (mapcar (pcase-lambda (`(,field . ,value)) (pcase field - ((or 'author 'editors) + ((or 'author 'editor) ;; Author and editors are arrays of ;; objects, each of them designing a ;; person. These objects may contain