Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ You can set up your own template for both the title and content of literature no
* {{publisher}}
* {{publisherPlace}}
* {{title}}
* {{type}}
* {{URL}}
* {{year}}
* {{zoteroSelectURI}}
Expand Down
5 changes: 3 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export const TEMPLATE_VARIABLES = {
publisher: '',
publisherPlace: 'Location of publisher',
title: '',
type: '',
URL: '',
year: 'Publication year',
zoteroSelectURI: 'URI to open the reference in Zotero',
Expand Down Expand Up @@ -60,6 +61,7 @@ export class Library {
publisher: entry.publisher,
publisherPlace: entry.publisherPlace,
title: entry.title,
type: entry.type,
URL: entry.URL,
year: entry.year?.toString(),
zoteroSelectURI: entry.zoteroSelectURI,
Expand Down Expand Up @@ -315,6 +317,7 @@ const BIBLATEX_PROPERTY_MAPPING: Record<string, string> = {
pages: 'page',
shortjournal: 'containerTitleShort',
title: 'title',
type: 'type',
shorttitle: 'titleShort',
url: 'URL',
venue: 'eventPlace',
Expand All @@ -339,6 +342,7 @@ const BIBLATEX_PROPERTY_TAKE_FIRST: string[] = [
'pages',
'shortjournal',
'title',
'type',
'shorttitle',
'url',
'venue',
Expand Down