PKM-er / obsidian-zotlit

A third-party project that aims to facilitate the integration between Obsidian.md and Zotero, by providing a set of community plugins for both Obsidian and Zotero.
https://zotlit.aidenlx.top
MIT License
632 stars 28 forks source link

Insert markdown citation never inserting zotero backlink anymore #189

Open siainbuletin opened 11 months ago

siainbuletin commented 11 months ago

A few updates ago this feature was still functional, but now whenever I try to create a citation, the zotero item is missing. it's an empty markdown link [] without any link. I have tried messing with the template provided for the citations, but it hasn't worked either. The backlinking doesn't seem to work.

aidenlx commented 11 months ago

Thank you for reporting this issue with the Obsidian Zotero plugin. To better understand and diagnose the problem, could you please provide the following details:

  1. Console Errors: When you try to create a citation and encounter the issue, are there any console errors? You can access the developer console in Obsidian via View > Toggle Developer Tools and then navigate to the Console tab. If there are any errors or warnings displayed there, please share a screenshot or copy and paste them here.

  2. Screenshot: Can you provide a screenshot of the issue when you try to create a citation? It will give us a visual context of what might be happening.

  3. Template Configuration: You mentioned trying to adjust the template for citations. Could you please share the exact template configuration you're currently using?

  4. Plugin Version: Which version of the Zotero plugin are you currently using?

  5. Obsidian Version: Which version of Obsidian are you on?

github-actions[bot] commented 11 months ago

This issue is stale because it has been open for 14 days with no activity.

siainbuletin commented 10 months ago

hi, really sorry for the late response.

this is the view from the console. image

this is what the markdown citation looks like. it includes no actual link to the zotero database. image

the current template used, which returns nothing for the link:

[<%= it.map(lit =>@${lit.citekey}).join("; ") %>]

I'm on 1.4.14 and this issue keeps appearing even on 1.1.2 (don't remember what the version was when i posted this initially)

github-actions[bot] commented 10 months ago

This issue is stale because it has been open for 14 days with no activity.

kit-zeason commented 9 months ago

Hello my friend,

I think the below template is what you need:

[<%= it.map(lit => `@${lit.citekey}`).join("; ") %>](<%= it.map(lit => `${lit.backlink}`).join("; ")%>)