Obsidian/Templates/Literature Note.md

3.5 KiB
Executable File

title: {{title}} authors: {% for type, creators in creators | groupby('creatorType') -%} {% for creator in creators %} - "{% if creator.name %}{{ creator.name }}{% else %}{{ creator.lastName }}, {{ creator.firstName }}{% endif %}" {% endfor -%} {% endfor %} citekey: "{{ citekey }}" alias: "{{ citekey }}" publish_date: {{ date | format("YYYY-MM-DD") }} {% if itemType == "journalArticle" -%} journal: "{{ publicationTitle }}" {% endif -%} {% if volume -%} volume: {{ volume }} {% endif -%} {% if issue -%} issue: {{ issue }} {% endif -%} {% if itemType == "bookSection" -%} book: "{{ publicationTitle }}" {% endif -%} {% if publisher -%} publisher: "{{ publisher }}" {% endif -%} {% if place -%} location: "{{ place }}" {% endif -%} {% if pages -%} pages: {{ pages }} {% endif -%} last_import: {{ importDate | format("YYYY-MM-DD") }}

Indexing Information

Published: {{ date | format("YYYY-MM") }}

{% if DOI -%} DOI [{{ DOI }}](https://doi.org/{{ DOI }}) {% endif -%}

{% if ISBN -%} ISBN [{{ ISBN }}](https://www.isbnsearch.org/isbn/{{ ISBN }}) {% endif -%}

{% for t in tags -%}#{{ t.tag | replace(' ', '-') | replace('&', 'and') | replace('<', '') | replace('>', '') | replace('#', '') | replace('*', '') | replace('(', '') | replace(')', '') | replace('[', '') | replace(']', '') }}{% if not loop.last -%}, {% endif %}{% endfor %}

{% set in_read = 0 -%} {% set dead = false -%} {%- for collection in collections -%} {%- if collection.name == "! 3. Grok'd" -%} {%- set in_read = 3 -%} {%- elif collection.name =="! 2. Second Pass" -%} {%- set in_read = 2 -%} {%- elif collection.name =="! 1. First Pass" -%} {%- set in_read = 1 -%} {%- elif collection.name == "! dead" -%} {%- set dead = true -%} {%- endif -%} {%- endfor -%}

{% if in_read == 3 %} #Grokd {% elif in_read == 2%} #InSecondPass {% elif in_read == 1%} #InFirstPass {% elif in_read == 0%} #ToRead {%- endif %} {% if dead == true %} #dead {%- endif%}

{% if abstractNote -%}

[!Abstract] {{abstractNote}}{% endif -%}

{% if markdownNotes -%}

[!note] Markdown Notes {{markdownNotes}}}{% endif -%}

[!seealso] Related Papers {% for r in relations %}[{{ r.title }}]({{ r.citekey }}){% if not loop.last %}, {% endif %}{% endfor %}

Annotations

Notes

!Zettelkasten/Literature Notes/Notes on Papers/{{ title

Highlights From Zotero

{#- Process non-Purple highlights -#} {% for a in annotations -%} {% if (a.type == "highlight" or a.type == "underline") and a.colorCategory != "Purple" %} {% if a.colorCategory == "Blue" -%}

[!tip] Brilliant {% elif a.colorCategory == "Green" -%} [!done] Important {% elif a.colorCategory == "Yellow" -%} [!highlight] Highlight {% elif a.colorCategory == "Orange" -%} [!warning] Dubious {% elif a.colorCategory == "Red" -%} [!fail] This ain't right {% else -%} [!quote] Other Highlight {% endif -%} {{ a.annotatedText }} {{ a.date | format("YYYY-MM-DD h:mm a")}} {% if a.comment %} {{ a.comment }} {% endif -%} {% endif %} {% endfor %}

Follow-Ups

{# Create a separate loop for Purple highlights as tasks #} {% for a in annotations -%} {% if a.type == "highlight" and a.colorCategory == "Purple" -%}

[!example] {{ a.annotatedText }}

  • {{ a.comment }} #Follow-Up

{% if a.comment -%} {% endif -%} {% endif -%} {% endfor -%}