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

{{containerTitle}} Always empty #218

Open putzwasser opened 1 year ago

putzwasser commented 1 year ago

Describe the bug I tried to add type: {{containerTitle}} to my YAML frontmatter, but it seems that this field doesn't get populated.

To Reproduce Steps to reproduce the behavior:

  1. Create literature note template in plugin settings
---
title: "{{title}}"
authors: "{{authorString}}"
year: {{year}}
type: {{containerTitle}}
aliases: ["{{title}}","{{titleShort}}"]
---
# {{title}} [🔗]({{zoteroSelectURI}})

<% tp.file.include("[[N_Cornell Notes]]") %>

***
**Links**
  1. Press Ctrl+Shift+O, open a note that isn't yet created.
  2. Find all YAML fields populated except {{containerTitle}}

Console output There's no console output.

Expected behavior A YAML field like this: type: book

Screenshots If applicable, add screenshots to help explain your problem.

Platform

Additional context