New plugin: Citations (with Zotero)

After setting the hotkey, now it works!!! Thanks a lot!!!
P.S. I don’t have two forum accounts. I just registered to this forum a hour ago and changed my username. :smiley:
P.S.2. My other files are not in the “Literature Notes” folder. My attempt was to show that it was empty.

1 Like

@phlind, using the embedded search tool with the citekey is super smart I really like this and added it to my template. Thanks.

1 Like

Thank you very much for creating this incredibly useful plugin, including the pandoc-style markdown citation much appreciated!

In the plugin settings, in Literature note content template, I’ve tried to make a template inspired by the mdNotes batch export template, shown in this post: Zotero best practices - #118 by PR-C

However, I’ve experienced some issues using the template included below, perhaps because I’ve close-to-zero experience with this stuff :sweat_smile:

  • some fields (e.g. page or page range) do not show while these contain data in Zotero.
  • links to attached file are not imported/shown
  • abstract is not imported
  • note lists and content are not imported

Could you please guide me (towards sources) to make a fully functional template. Also, I’m open to alternative templates as this is a first version I’ve drafted just now.

Wishing you a pleasent sunday!

{{title}}

{{containerTitle}}

[[{{authorString}}]]

Metadata

Item Type: {{itemType}}
Author(s): {{author}}
Proceeding Title: {{proceedingsTitle}}
Date: {{date}}
Date added: {{dateAdded}}
URL: {{url}}
DOI: {{DOI}}
Cite key: [[{{citekey}}]]
Topics: {{collections}}
Tags: {{tags}} #zotero, #literature-notes, #reference
{{related}}
Attachments:
[Link to pdf]({{file}}

  • {{pdfAttachments}}
  • {{localLibrary}}
  • {{cloudLibrary}}

Abstract

{{abstractNote}}

Notes and Highlights

{{notes}}

{{noteContent}}

2 Likes

@Opi You are using Zotero API…

The possible variables for the citations plugin templates can be found in the plugin settings:

  • Abstract = {{abstract}} (not: {{abstractNote}} like in Zotero!)
  • you can’t import your Zotero notes, as far as I know…
  • pdf attachment is not {{pdfAttachments}} as in Zotero, but {{entry.files.[0]}} (this has been mentioned further up in this thread…)

@alltagsverstand Thank you for the quick reply, this is much appreciated!

TL;DR (Especially) if I interpreted your message correctly, I’ll take more time and be more thorough in my attempt to understand and fix future issues.

Based on the …, I feel like I should apologize for the lack of effort invested in understanding this plugin and perhaps APIs in general. Although I’ve read the thread, looked at the mdNotes guide and citations plugin documentation, I’ll take more time and be more thorough in my attempt to understand and fix future issues.

No problem, wasn’t meant in such a way! I don’t think it is important to have an understanding of APIs in general - you should just be aware that variables can differ among different applications!

1 Like

Hi everyone,

I am wondering if the plugin has the functionality where it watches the CSL-JSON/Bibtex file for changes and automatically updates the reference list? As far as I know, this doesn’t work without a restart/refresh of the loaded library so I can’t immediately pull a reference that was added to Zotero. It’d be nice if it’d automatically refresh/watch the file every few seconds.

1 Like

I have the same question here.

You don’t have to reload the library - if you add a new citation in zotero, it is integrated immediately

I’m not able to replicate this feature. It doesn’t integrate immediately for me.

Are you using BetterBibtex in zotero? Have you set automatic export to “on change”?

1 Like

I’m using BetterBibtex and it is setup to export to CSL-JSON “onChange”. I just tested it by adding references and I can see that it is making the export when the change was made. However, when I tried to add the item using “Insert Literature…” option, it did not show up in the search list.

:thinking: As it is working for me, the plugin should at least have this feature… :wink: : No idea why it isn’t working for you…

Okay, looks like I figured out why it isn’t working. The path to the CSL-JSON file was located inside Google Drive File Stream path. For whatever reason, the changes to a file inside this repository isn’t being picked up by the plugin / obsidian. When I changed the export path to a normal local /Users/ path, it picked up the change. Perhaps, a bug? Could you try and see if you can reproduce this? Thanks in advance.

@raivivek I am not the developer of the plugin… :wink:

I can’t try to reproduce this as I am not using Google Drive - but if you think this is a bug, you might better report it here

1 Like

Hi,

Thanks for this great plugin !
I’m looking to improve my configuration a little bit. Mdnotes proposes something that I find very useful and that I would like to integrate in the “citations” plugin: the possibility to directly insert a wikilink in the name of the authors.

Would it be possible to consider an option for this ? An adaptation of “authorString” allowing to generate

[[Surname Name]] [[Surname Name]]

Instead of

Surname Name, Surname Name

:thinking:

Hey. I’m here to say that I love your plugin. It is now an indispensable part of my workflow. I absolutely love it.
If there is one friction I noticed, was that when I search for citationkeys it fails to find them. I don’t know if that’s intentional or not, but if you could add the ability to search for citationkeys as well, it would be great!
Again thank you for your amazing plugin!

As I said before, awesome plugin. I wonder if you could make a little tiny addition: please, add Usage information (like you have here: https://github.com/hans/obsidian-citation-plugin/tree/0.1.3) into “Citation plugin settings”. It will be very convenient to have a reminder about hotkeys handy.

I might be doing something wrong, but Ctrl + Shift + I does not work on Mac (Ctrl + Shift + O works fine).

1 Like

I think (based on a previous post) that search by citekey is on the roadmap.

@raivivek, I’m not the developer either, but I seem to recall reading somewhere that the auto-refresh only works with biblatex files. (Maybe that’s not the case any more.) Did you try to export it to bibtex instead of json and see if it works then?

1 Like