What I’m trying to do
I am trying to fit a Zotero Import Template that I got from somebody else to my needs and find myself battling with that. Specifically, I would like to have the “langid” and “pagestotal” of a given source added in the Obsidian note that is created when I import from Zotero as the new properties “language” and “pages”. Below I’ll paste my attempt (the properties from the Zotero Import Template that I’m trying to modify). The result right now is that these properties will always be “empty”, even when the “langid” and “pagestotal” of the corresponding entry in the .bib-file definitely have a value. What am I missing here?
Thanks so much in advance!
Things I have tried
My solution:
citekey: {{citekey}}
aliases: ["
{%- if creators -%}
{{creators[0].lastName}}
{%- if creators|length > 1 %} et al.{% endif -%}
{%- endif -%}
{%- if date %} ({{date | format(“YYYY”)}}){% endif -%}
{%- if shortTitle %} {{shortTitle | safe}} {%- else %} {{title | safe}} {%- endif -%}
"]
doi: “{{DOI}}”
ISBN: “{{ISBN}}”
title: “{{title}}”
authors: {{authors}}
tags: [literatureNote, {% for t in tags %}{{t.tag}}{% if not loop.last %}, {% endif %}{% endfor %}]
year: {{date | format(“YYYY”)}}
language: “{{langid}}”
pages: “{{pagetotal}}”
status:
reference_trail: open
collection: “{{collections[0].name}}”
The outcome:
The corresponding entry in the .bib-file: