emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals-release/org 7c929e9d8c: * lisp/oc-basic.el: Fix parsing


From: ELPA Syncer
Subject: [elpa] externals-release/org 7c929e9d8c: * lisp/oc-basic.el: Fix parsing "editor" field in json bibliographies
Date: Sat, 26 Aug 2023 12:58:17 -0400 (EDT)

branch: externals-release/org
commit 7c929e9d8c657048218a5cd1c623721e2c1d0128
Author: Ihor Radchenko <yantar92@posteo.net>
Commit: Ihor Radchenko <yantar92@posteo.net>

    * 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 <emacs-m@ninecats.org>
    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 1c8c37aa94..5c9aad8f6a 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]