Tana and Zotero Workflow
Because of the amazing Tana Paste, you can create some basic workflows to integrate different tools with Tana. In order to make Zotero play nice with Tana, there are a few configurations required.
# Metadata Import
Zotero has a great Quick Copy feature that enables you to copy information from the Zotero database, into whatever format you require. Usually it is used to copy bibliographies and citations to be used in word processors, but we can customize it to output data that can be ingested into Tana. Here are the steps to configure that:
- Navigate to Zotero Translators directory. By default, it is located in
C:\Users\{username}\Zotero\translatorson Windows. You can also locate it from theZotero Preferences. - Download the script from the official tana paste examples:
tana-paste-examples/zotero-translator-tana.js , and place it in the
translatorsdirectory.- You can also modify it according to your needs.
- Here’s my slightly modified one: Tana Paste Translator (github.com)
- Restart Zotero, so it can load the newly added Tana Translator.
- Go to
Zotero Preferences, then select theExporttab, and in the drop-down menu forItem format, select theTana Metadata Exportoption. - Now, whenever you select an item from your library, and press
Ctrl + Shift + Cto copy it, you can paste it in Tana with proper formatting, and all the fields pre-populated.
# Annotations Import
Zotero 6 introduced a built-in PDF reader and annotator as well, which is quite feature packed already. We can annotate documents and images using different colors, and we can then export them to whatever format we require, which is usually markdown. Let’s customize the output format so it is easily ingestible in Tana.
- Go to
Zotero Preferences -> Advanced, and under theGeneraltab, selectConfig Editor. - In the
Config Editor, search forannotations.note. It should show three settings.
- Modify the values of these settings like so:
extensions.zotero.annotations.noteTemplates.titlechange it to<br><ul>extensions.zotero.annotations.noteTemplates.notechange it to<li>{{comment}}</li>extensions.zotero.annotations.noteTemplates.highlightchange it to<li>{{highlight quotes='false'}}</li>{{if comment}}<li><ul><li>{{comment}}</li></ul></li>{{endif}}.
- Make sure that the drop-down value of
Note Format, underZotero Preferences -> Export, is set toMarkdown + Rich Text. - Right click on a library item which has annotations, and select the
Add Note from Annotaitonsoption. This will create a new note under that item. - To copy the annotations, select the newly generated
Note, and pressCtrl + Shift + C. Now you can paste it into Tana. It will be correctly formatted, with links to the actual location of the highlight in thePDFas well.
Sadly there’s no way to dynamically upload images to Tana as of yet. So all the images from the annotations will be relaced with [image] text. You can manually copy and past the images to upload them, if required.
This is what I’ve managed to hack together for now. I’ll try to improve it further, and see what better ways are there to manage and export the data from Zotero into Tana.