---
citekey: '{{citekey}}'
categories: "[[Literature]]"
title: '{{title | escape}}'
{%- set camelRegex = r/([a-z])([A-Z])/g %}
{%- for type, creators in creators | groupby("creatorType") %}
{% if creators.length > 1 %}{{type | replace(camelRegex, "$1 $2") | lower | trim}}:{%- for creator in creators %}{% if creator.name %}
- '[[{{creator.name}}]]'{% else%}
- '[[{{creator.firstName}} {{creator.lastName}}]]' {% endif %}{%- endfor %} {% else -%}
{{type | replace(camelRegex, "$1-$2") | lower | trim}}:{%- for creator in creators %}{% if creator.name %}
- '[[{{creator.name}}]]'{% else%}
- '[[{{creator.firstName}} {{creator.lastName}}]]'{% endif -%}{%- endfor -%}{% endif -%}{% endfor %}
pubyear: '{{date | format("YYYY")}}'
type: '{{itemType}}'
publication: {%- if itemType == "journalArticle" %} '[[{{publicationTitle}}]]' {%- elif itemType == "Book" %} '{{title}}' {%- else %} '{{bookTitle}}' {%- endif %}
doi: {% if DOI %}[https://doi.org/{{DOI}}]{% endif %}
ISBN: {% if itemType == "book" %}{{ISBN}}{% endif %}
topics: {% for t in tags %}
- '[[{{t.tag}}]]'{% if not loop.last %}{% endif %}{% endfor %}
related: {% for relation in relations | selectattr("citekey") %}
- '[[{{relation.citekey}}]]'{% if not loop.last %}{% endif%} {% endfor %}
zotero: '{{desktopURI}}'
---
[!Citation]- {{bibliography}}
[!Abstract]- {{abstractNote}}
{%- if markdownNotes %} {{markdownNotes}}{%- endif -%}.
{% persist "annotations" %}{% set annots = annotations | filterby("date", "dateafter", lastImportDate) -%}{% if annots.length > 0 %}
{% for annot in annots -%}{% if annot.annotatedText and annot.color == "#2ea8e5" %}
Highlight {{annot.annotatedText}} (pg. {{annot.page}}) {#page link#} {% if annot.imageRelativePath %}![[{{annot.imageRelativePath}}]] {% endif %}{% if annot.comment %}{{annot.comment}}{%endif %} {% endif %}{% endfor %}
{% for annot in annots -%}{% if annot.annotatedText and annot.color == "#ffd400" %}
Highlight {{annot.annotatedText}} (pg. {{annot.page}}) {#page link#} {% if annot.imageRelativePath %}![[{{annot.imageRelativePath}}]] {% endif %}{% if annot.comment %}{{annot.comment}}{%endif %} {% endif %}{% endfor %}
{% for annot in annots -%}{% if annot.annotatedText and annot.color == "#5fb236" %}
Highlight {{annot.annotatedText}} (pg. {{annot.page}}) {#page link#} {% if annot.imageRelativePath %}![[{{annot.imageRelativePath}}]] {% endif %}{% if annot.comment %}{{annot.comment}}{%endif %} {% endif %}{% endfor %}
{% for annot in annots -%}{% if annot.annotatedText and annot.color == "#f19837" %}
Highlight {{annot.annotatedText}} (pg. {{annot.page}}) {#page link#} {% if annot.imageRelativePath %}![[{{annot.imageRelativePath}}]] {% endif %}{% if annot.comment %}{{annot.comment}}{%endif %} {% endif %}{% endfor %}
{% for annot in annots -%}{% if annot.annotatedText and annot.color == "#ff6666" %}
Highlight {{annot.annotatedText}} (pg. {{annot.page}}) {#page link#} {% if annot.imageRelativePath %}![[{{annot.imageRelativePath}}]] {% endif %}{% if annot.comment %}{{annot.comment}}{%endif %} {% endif %}{% endfor %}
{% for annot in annots -%}{% if annot.annotatedText and annot.color == "#a28ae5" %}
Highlight {{annot.annotatedText}} (pg. {{annot.page}}) {#page link#} {% if annot.imageRelativePath %}![[{{annot.imageRelativePath}}]] {% endif %}{% if annot.comment %}{{annot.comment}}{%endif %} {% endif %}{% endfor %}
{% for annot in annots -%}{% if annot.annotatedText and annot.color == "#aaaaaa" %}
Highlight {{annot.annotatedText}} (pg. {{annot.page}}) {#page link#} {% if annot.imageRelativePath %}![[{{annot.imageRelativePath}}]] {% endif %}{% if annot.comment %}{{annot.comment}}{%endif %}{% endif %} {% endfor %} {% endif %} {% endpersist %}
{% persist "annotations" %}{% set annots = annotations | filterby("date", "dateafter", lastImportDate) -%}{% if annots.length > 0 %} {% for annot in annots -%}{% if annot.annotatedText %}
Highlight {{annot.annotatedText}} (pg. {{annot.page}}) {#page link#} {% endif %} > {% if annot.imageRelativePath %} ![[{{annot.imageRelativePath}}]] {% endif %}{% if annot.comment %}{{annot.comment}}{%endif %} {% endfor %}{% endif %} {% endpersist %}