mgmeyers / obsidian-zotero-integration

Insert and import citations, bibliographies, notes, and PDF annotations from Zotero into Obsidian.
GNU General Public License v3.0
1.06k stars 54 forks source link

'Select Area' annotations error #246

Closed saintduxi closed 1 year ago

saintduxi commented 1 year ago

I'm trying to get Zotero integration set up, and have run into an issue.

I work with a lot of older documents that OCR doesn't handle well, so I tend to use the 'select area'/image function in Zotero to capture quotations rather than the highlighter.

When I import as a literature note in Obsidian everything looks as it should except the same image appears repeatedly throughout the note. It's always the last image that was selected in the item in Zotero.

So instead of:

Image 1
Comment 1

Image 2
Comment 2

Image 3
Comment 3

I get:

Image 3
Comment 1

Image 3
Comment 2

Image 3
Comment 3

I've tried altering the import settings but nothing seems to fix this. I can set up the destination folder for the images, and that folder appears with all of the correct images in it, named as set up in the settings. But the literature note itself does not point to any of these images; instead, all of the images in the note always point to a single file that appears in my default attachments folder, and which has a file name that bears no relation to the specifications in the settings (e.g. instead of 'image-1-x123-y456.jpg' it's something like 'XQIJFLQ.png').

I'm using: Zotero 6.0.26 Obsidian 1.3.5 (installer 1.3.4)

I'm a bit out of my depth tech-wise here, so apologies if there's important info I'm missing out. Any help very much appreciated!

saintduxi commented 1 year ago

After spending a few hours wrestling with Nunjucks template syntax I think I've got to the bottom of this - please ignore OP!