Zotlit (previously Obsidian-Zotero) import templates?

Hello, your template is great! I have already applied it to my own notes. However, there is a problem with one spot that doesn’t seem to work properly. I copied it below:

Do you know how to solve this issue? I’ve checked my notes and noticed that some areas don’t work when using “-”.

Hi @8wy727, thanks for the feedback. I don’t have this issue when using the template.

I tried to see what the differences might be, and it is not apparent. It could be an issue with indentation. In the code I shared, the various template elements are not indented, as they appear to be in your screenshot. Only the annotated text below the comment is indented. All the other lines should not have spaces or tabs at the start.

Another thing is that in your test here, there is not actually any highlighted text. What kind of highlights are you importing? I haven’t tested the sticky note feature (standalone comments), is that what you are importing in your test?

1 Like

Hi, I am having an issue with the templating of Obsidian-Zotero and I thought it might be relevant to this topic. Every time I close Obsidian, I lose all the templates configurations, which they go back to default.

Anybody experiencing that? Might it be related to the fact that my vault is in Google Drive for syncing?

Thanks!

Hi,
Did you export / “eject” the template files from the plugin settings into your vault?

Sorry to add another question here, but it seems relevant. I have gotten the basic templates for this plugin up and running, but I can’t seem to get the actual “notes” in Zotero to transfer over to the Obsian literature note. I get the annotations (the highlighted bits), which I don’t really need, to show up but not the actual notes I typed out while reading in Zotero. I take these notes in the Zotero PDF reader in the right sidebar, where you have to click “+” in order to add a note; then I just type everything into one long note. (To be clear, I don’t want to type my notes in Obsidian–I just want to transfer notes I’ve typed in Zotero into Obsidian to take advantage of the latter’s linking capacities.) I have tried adding an entry like “# <%= it.notes %>” to the zt-note.eta file, but no luck. Does anyone know what the syntax would be here?

I checked an item’s available metadata fields using the Annotation sidebar → Show details. The standalone notes from Zotero are not available.

I take it that this is a current limitation of the plugin.

In general, Obsidian-Zotero has fewer metadata fields available compared to Zotero Integration, as I noted in limitation 4 listed in this comment above.

1 Like

Ah that’s really too bad! Obsidian-Zotero is in many ways superior to the Integration plugin (such as speed, the ability to track highlights in a separate panel, and the ability to update notes without totally re-importing), but this is one big reason I might have to stay with Integration. Thank you for your reply.

Yeah, it’s too bad about these deal-breaker bugs and limitations.

I am also using Zotero Integration for now, and it is serving me well. But I am keeping an eye out for updates to Obsidian-Zotero, as it is very promising.

So I actually did find a plugin that does this! It may have other deal-breakers for you but, so far (last half day), it’s working pretty well for my purposes. It has a bunch of templates for keeping notes that seem to break with each update to the plugin, so that might not be worth the hassle, but the basic syncing function works smoothly, I find.

If you could share a somewhat detailed workflow (potentially open a new thread and send the link here) that’d be great. The documentation is hard for me to understand. I’ve kept an eye on it for a while and have tried to learn how it works multiple times but still don’t understand most of its features.

Could you be a bit more precise (e.g. replace “this” and “it” with what you are referring to specifically)?

It is unclear which parts of your comment refer to which plugin.

Does what?

Obsidian-Zotero or Better Notes?

Obsidian-Zotero or Better Notes?

Did you see @michaeta’s guide here? Beginner's set up for AidenLX’s Zotero Integration Plugin · GitHub

It’s currently waiting in a pull request to be added to the official documentation.

2 Likes

2 posts were split to a new topic: Zotero Better Notes plugin

I was actually referring to @macrospect’s comment before yours (I thought I had used the reply button, but apparently not). Nevertheless, less use of “it” and “this” is almost always helpful.

But my later comment to you was also because you didn’t use the reply button, so I thought you were asking me about Obsidian-Zotero. So, if anything, we might all gain from using the reply button more.

Sorry for any confusion, which seems to abound among the three of us right now.

I agree that it would be better to have the Better Notes info elsewhere to keep the thread on topic. I don’t know who can help with that.

I think you did, and I surely did, but if your reply is right next to the one you reply to, it doesn’t show the reply sign. But you told me about AidenLX Obsidian Zotero plugin, which I didn’t ask about, so I thought you were confused about my language too, which you were, just because the reply button didn’t show. And I was complacent that it’s clear that my reply was for macrospect’s comment. I’m glad we’ve cleared things up :smiley:

Regarding splitting to a new topic, apparently I can’t tag @moderators here, so I’ll try get some help from Discord. (Edit: Thanks @ CawlinTeffid!)

1 Like

Did you ever manage to get the blockID stuff working? I saw the comment on the GitHub issue that it “should” be working now, but I’m not having much luck - either it doesn’t update at all, or it ends up duplicating.

I haven’t used Obsidian-Zotero in a while due to the unresolved bugs, so I am using Zotero Integration for now. But as I recall, some duplication issues were resolved, but the only update method that works for my custom templates is overwriting. In-place updating is still not supported. This is tracked in this open issue: [FR] Implement full support for updating literature notes with grouped annotations in bullet lists · Issue #115 · PKM-er/obsidian-zotero · GitHub

1 Like

Hey @Feralflora, are you considering switching over to this plugin, now that most issues seem resolved since the recent updates? Any major issues or downsides remaining?

1 Like

The Zotlit plugin generally works fine for me, but I encountered two issues:

  1. there is no implementation for related items transferring in Obsidian; I did not find corresponding field in JSON schema.
  2. the “notes” field is always blank. The array “notes” contains 0 elements in JSON schema regardless of the presence of item notes in Zotero db. Using Zotlit plugin, Zotero db was refreshed without any notes appeared. I left an issue on project page, but there is no feedback yet.

These are the reason not to import my annotations and notes to Obsidian to avoid further rewrite with full-update. Have you faced the same troubles in importing notes via Zotlit plugin?

Update: In the machine with the latest Zotero beta (that of remastered UI) notes are not available in ZotLit template editor (see image) but do persist in the database. In the machine with Zotero 7.0.0-beta.54+6b996d4f9 notes could be successfully imported and rendered via ZotLit.
Screenshot from 2024-02-18 13-03-58

There is new info on this issue. ZotLit has a bug crushing data retrieval from Zotero while there is coloured highlighted text in item notes. Cleaning text formatting is a workaround enabling Zotero items’ data to be imported via ZotLit. The developer did not response neither in github nor to e-mail so I apologize the ZotLit not to be the thing of the first priority for him. I left some traceback of the error on GitHub. Someone experienced in JS o Typescript might wish to fix this issue in the near future. There are also another three issues opened on the project page those are related to the same bug.

So, to temporally resolve the issue one should clear all coloured highlights in the item note text. There is no cases of another workaroind known.