-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement locator-date and locator-extra
- Loading branch information
1 parent
cfa30b6
commit da69ebd
Showing
3 changed files
with
40 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
;;; citeproc.el --- A CSL 1.0.2 Citation Processor -*- lexical-binding: t; -*- | ||
|
||
;; Copyright (C) 2017-2023 András Simonyi | ||
;; Copyright (C) 2017-2024 András Simonyi | ||
|
||
;; Author: András Simonyi <[email protected]> | ||
;; Maintainer: András Simonyi <[email protected]> | ||
|
@@ -87,10 +87,12 @@ CITATIONS is a list of `citeproc-citation' structures." | |
(new-ids (--remove (gethash it itemdata) uniq-ids))) | ||
;; Add all new items in one pass | ||
(citeproc-proc-put-items-by-id proc new-ids) | ||
;; Add itemdata to the cite structs and add them to the cite queue. | ||
;; Internalize the cites dealing with locator-extra if present, add itemdata to | ||
;; the cite structs and add them to the cite queue. | ||
(dolist (citation citations) | ||
(setf (citeproc-citation-cites citation) | ||
(--map (cons (cons 'itd (gethash (alist-get 'id it) itemdata)) it) | ||
(--map (cons (cons 'itd (gethash (alist-get 'id it) itemdata)) | ||
(citeproc-cite--internalize-locator it)) | ||
(citeproc-citation-cites citation))) | ||
(queue-append (citeproc-proc-citations proc) citation)) | ||
(setf (citeproc-proc-finalized proc) nil)))) | ||
|