From f2ce541624b7598c2d15f86fb0a986aec45990a7 Mon Sep 17 00:00:00 2001 From: Anton Date: Tue, 20 Aug 2024 16:18:45 +0800 Subject: [PATCH] chore(gr-sheet): add missing citation fields --- packages/gr-sheet/src/index.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/packages/gr-sheet/src/index.ts b/packages/gr-sheet/src/index.ts index 5e3b50f..1386324 100644 --- a/packages/gr-sheet/src/index.ts +++ b/packages/gr-sheet/src/index.ts @@ -773,11 +773,20 @@ const SupportedSheets = { }), }), [Sheets.CITATIONS]: makeProcessor({ - fields: ['title', 'alternateTitles', 'author', 'publisher', 'publicationDate', 'revisionDate', 'edition', 'editionDate', 'seriesName', 'issue', 'page', 'otherDetails', 'uri'], - toItem: function parseCitation ({ title, publisher }) { + fields: ['title', 'alternateTitles', 'author', 'publisher', 'publicationDate', 'revisionDate', 'edition', 'editionDate', 'seriesName', 'seriesIssueID', 'seriesPage', 'otherDetails', 'uri'], + toItem: function parseCitation ({ title, publicationDate, revisionDate, edition, author, publisher, otherDetails, seriesName, seriesIssueID, seriesPage, uri }) { return { // XXX title, + publicationDate, + revisionDate, + edition, + author, + seriesName, + seriesIssueID, + seriesPage, + otherDetails, + uri, //alternateTitles: item.alternateTitles.split(';').map(t => t.trim()), publisher, };