Skip to content

Commit

Permalink
chore(gr-sheet): add missing citation fields
Browse files Browse the repository at this point in the history
  • Loading branch information
strogonoff committed Aug 20, 2024
1 parent 5039b7d commit f2ce541
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions packages/gr-sheet/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down

0 comments on commit f2ce541

Please sign in to comment.