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.04k stars 76 forks source link

Field "Issue" #231

Open GitHubFriendlyUser opened 1 year ago

GitHubFriendlyUser commented 1 year ago

Hello everyone,

I was reading here all day and I found all about my problems. Thanks a lot for what you're doing.

My issue here, and I didn't find a solution :

I used mdnotes export, mais now, I find citation plugin much more efficient. How do I insert the field "collection".

I manage my zotero with a lot of folders. So I want to put it in tags.

For now, my template is like this (if it helps someone). It's in french, but I think you get the idea :


Titre : {{title}} Auteur : {{authorString}} Année : {{year}} Citekey : {{citekey}} Directeur d'ouvrage : {{entry.data.creators.editor.[0].lastName}} Type : {{entry.type}} Date de création : <% tp.file.creation_date() %> tags: 🟠️, 🌱, Lecture, {{entry.data.fields.keywords}}, <%tp.system.suggester(["Aucune","Enthousiasme","Inspiration","Raison","Génie","Ravissement","Esthétique","Passion","Sublime","Folie","Corps","Fureur","Secte","Beau","Mélancolie","Matérialisme","Vérité","Fanatisme","Imagination","Ivresse","Art","Théâtre","Convulsions"],[" ","Notion/Enthousiasme","Notion/Inspiration","Notion/Raison","Notion/Génie","Notion/Ravissement","Notion/Esthétique","Notion/Passion","Notion/Sublime","Notion/Folie","Notion/Corps","Notion/Fureur","Notion/Secte","Notion/Beau","Notion/Mélancolie","Notion/Matérialisme","Notion/Vérité","Notion/Fanatisme","Notion/Imagination","Notion/Ivresse","Notion/Art","Notion/Théâtre","Notion/Convulsions"], true, "Notion mobilisée")%> Importance: <%tp.system.suggester(["⭐","⭐⭐","⭐⭐⭐","⭐⭐⭐⭐","⭐⭐⭐⭐⭐","Théâtre"],["⭐","⭐⭐","⭐⭐⭐","⭐⭐⭐⭐","⭐⭐⭐⭐⭐"], false, "Comment notes-tu ce document ?")%>

All I want to do here is to put, in addition of all of that, the field {{collections}}. Thank you for your help in advance !

orionpilot commented 1 year ago

collection here is a bibtex entry correct? If so, you can add it by adding {{entry.data.fields.collection}} to the template. See #164 for a similar problem.