Skip to content

Obsidian plugin to insert link to Zotero item

License

Notifications You must be signed in to change notification settings

vanakat/zotero-link

Repository files navigation

Zotero Link

Prerequisites

Zotero >= 7

Enable Local API feature in settings: Zotero 7 > Settings > Advanced > Allow other applications on this computer to communicate with Zotero

Zotero <= 6

Install Zotero addon ZotServer

Installation

Install zotero-bridge and this plugin from Obsidian Community Plugins settings screen.

Usage

When this plugin installed it adds new command to the Command Palette: Zotero Link: Insert. You can add a keyboard shortcut for this command in Obsidian settings.

Exact text of the link can be changed with template configuration in plugin settings.

Following keywords are acceptable in the template:

  • {{ key }} – Zotero item key
  • {{ title }} – item title
  • {{ date.year }} – publication year e.g. 2011
  • {{ date.month }} – publication month e.g. 10
  • {{ date.day }} – publication day e.g. 31
  • {{ firstAuthor.fullName }} – first author's full name
  • {{ firstAuthor.firstName }} – first author's first name
  • {{ firstAuthor.lastName }} – first author's last name
  • {% for author in authors %}{{ author.lastName}}, {{ author.firstName | first }}., {% endfor %} – advanced use of template to output all authors

Template language is based on Nunjucks, so its syntax and built-in filters are also available.

There is also a good video review and demonstration of the plugin, made by Curtis McHale.

License

MIT