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.09k stars 81 forks source link

ISBN #193

Closed ClusterWood closed 2 years ago

ClusterWood commented 2 years ago

Thank you for the great plugin. Unfortunately, the ISBN field is not transferred. Is it possible to add this?

orionpilot commented 2 years ago

If a biblatex field exists in your entry and does not have a shortcode with {{field}} for example, than you may access it with {{entry.data.fields.FIELD}}. In the ISBN case, you can access it with {{entry.data.fields.isbn}} in the template settings of the plugin.

ClusterWood commented 2 years ago

Yes, this works in principle, but not if you use 'Citation' in conjunction with 'QuickAdd' and 'Templater', e.g. as described here: https://bagerbach.com/blog/how-i-read-research-papers-with-obsidian-and-zotero

orionpilot commented 2 years ago

Ah, that's interesting. Thank you for this additional information, it was needed to properly understand your problem. I was able to add the ISBN by manually editing the quickadd user script mentioned in the link you shared. See the edit in the image, it's just one additional line.

quickadd_script_edit

With that added in the user script, I also added {{VALUE:isbn}} in the template that quickadd uses. With those two changes, the ISBN (if it exists) autofills like the other properties when quickadd is triggered. Hopefully these two changes work for you as well.

ClusterWood commented 2 years ago

Thank you very much! This is how it works!