Skip to content

Commit

Permalink
feat: Add more properties that can be synced
Browse files Browse the repository at this point in the history
  • Loading branch information
dvanoni committed Dec 24, 2023
1 parent ec63c6d commit 9c0e5f1
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions src/content/sync/property-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,11 @@ class PropertyBuilder {
type: 'date',
buildRequest: () => buildDate(parseItemDate(this.item.dateAdded)),
},
{
name: 'Date Modified',
type: 'date',
buildRequest: () => buildDate(parseItemDate(this.item.dateModified)),
},
{
name: 'DOI',
type: 'url',
Expand All @@ -239,6 +244,14 @@ class PropertyBuilder {
return buildRichText(editors, { preserveWhitespace: true });
},
},
{
name: 'Extra',
type: 'rich_text',
buildRequest: () =>
buildRichText(this.item.getField('extra'), {
preserveWhitespace: true,
}),
},
{
name: 'File Path',
type: 'rich_text',
Expand Down Expand Up @@ -269,6 +282,26 @@ class PropertyBuilder {
name: Zotero.ItemTypes.getLocalizedString(this.item.itemTypeID),
}),
},
{
name: 'Place',
type: 'rich_text',
buildRequest: () => buildRichText(this.item.getField('place')),
},
{
name: 'Proceedings Title',
type: 'rich_text',
buildRequest: () => buildRichText(this.item.getField('proceedingsTitle')),
},
{
name: 'Publication',
type: 'rich_text',
buildRequest: () => buildRichText(this.item.getField('publicationTitle')),
},
{
name: 'Series Title',
type: 'rich_text',
buildRequest: () => buildRichText(this.item.getField('seriesTitle')),
},
{
name: 'Short Title',
type: 'rich_text',
Expand Down

0 comments on commit 9c0e5f1

Please sign in to comment.