Obsidian Zotero Integration

GitHub mgmeyers/obsidian-zotero-integration

Plugin to create literature notes from your Zotero database. Annotations can be fetched from the highlights of your PDF.

Zotero Import Template File

Example Template File

Heres a template you can start using.

# {{title}}
Authors:: {{authors}}
Zotero: {{pdfZoteroLink}}
PDF: {{pdfLink}}

### Formatted Bibliography
{{bibliography}}
{% if abstractNote %}

### Abstract
{{abstractNote}}{% endif %}

### Notes
{% persist "notes" %}
{% endpersist %}

### Annotations
{% for annotation in annotations -%}
>[!Annotation|{{annotation.color}}]
> {%- if annotation.annotatedText -%}{{annotation.annotatedText}}
> [Page {{annotation.page}}](zotero://open-pdf/library/items/{{annotation.attachment.itemKey}}?page={{annotation.page}}&annotation={{annotation.id}}){% endif %}{% if annotation.imageRelativePath %}![[{{annotation.imageRelativePath}}]]{% endif %}{% if annotation.comment %}
>{{annotation.comment}}{%- endif %}

{% endfor %}

Persisting Personal Notes

Note that by using the persist tag like above you can reserve a section in your template which is not deleted when reimporting the same reference. Just include this in the imported file.

### Notes
{% persist "notes" %}
{% endpersist %}

Notes