hans / obsidian-citation-plugin

Obsidian plugin which integrates your academic reference manager with the Obsidian editor. Search your references from within Obsidian and automatically create and reference literature notes for papers and books.
MIT License
1.12k stars 83 forks source link

Setup: Citations not being added after loading library. #273

Open SeaOfBloodRedRoses opened 1 month ago

SeaOfBloodRedRoses commented 1 month ago

Describe the bug According to the tutorial, it should automatically load citations once you give it the appropriate file. Well, after giving it the database path, it says "Loaded library with 53 citations" (this is how many I have in Zotero), but nothing happens. There are no citations displayed in Obsidian. I have restarted both programs. I feel like I'm missing some sort of crucial piece of information that was left out from the tutorial. I'm using BibLaText, and yes, I exported using the recommended Better BibLaText.

I have a template, name: @{{citekey}}


Title: {{title}} Pages: {{page}} Authors: {{authorString}} Year: {{year}} Container: {{containerTitle}} Publisher: {{publisher}} Zotero Link: {{zoteroSelectURI}}

{{abstract}}

{{note}}

Expected behavior According to the tutorial, it should automatically load citations once you give it the appropriate file. Which is what I expect to happen. It says:

Now open the Obsidian preferences and view the "Citations" tab. Paste the path to the exported file (.bib or .json, depending on the format you chose) in the text field labeled "Citation export path." After closing the settings dialog, you should now be able to search your references from within Obsidian!

This is exactly what I did. The settings said it loaded the library with 53 citations. But that last sentence is not accurate. Nothing happens.

Screenshots I'm attaching two here. One is of the settings telling me it loaded with 53 citations. The second is immediately after closing the settings window, and it's just a blank Vault. Capture d’écran 2024-10-19 174104 Capture d’écran 2024-10-19 174111

Platform

orionpilot commented 1 month ago

The plugin needs you to choose to create the literature notes, it does not create them automatically. The "loaded library" tells you that the plugin is able to read the file you have set (so its like a check for the file path or the number of items in your library). Have you tried the commands listed in the Usage section of the tutorial for steps after setup?

This appears to be the same issue as #173 so I will copy my comment from that issue here for next steps:

If you are expecting that once the plugin dialog closes, you instantly get a literature note for every item in the library, this is incorrect. The plugin does not work like this. To me it sounds like you have correctly setup the plugin but you have just not yet created a literature note.

In your vault, if you open the command palette and select the Citations: Open Literature Note command, do you get the list of items from your library? And when you select an item, do you get a literature note created/opened? If so, then the plugin is correctly setup and its working properly.