Obsidian/1000s Templates/Literature Note.md

85 lines
2.0 KiB
Markdown
Executable File

---
readstatus: false
dateread:
title: "{{ title }}"
year: {{ date | format('YYYY') }}
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 }}"
{% 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 %}
---
# Indexing Information
## DOI
[{{ DOI }}](https://doi.org/{{ DOI }})
## ISBN
[{{ ISBN }}](https://www.isbnsearch.org/isbn/{{ ISBN }})
## Tags:
{% for t in tags %}#{{ t.tag
| replace(' ', '-')
| replace('&', 'and')
| replace('<', '')
| replace('>', '')
| replace('#', '')
| replace('*', '')
| replace('(', '')
| replace(')', '')
| replace('[', '')
| replace(']', '')
}}{% if not loop.last %}, {% endif %}{% endfor %}
>[!Abstract]
>{% if abstractNote %}{{abstractNote}}{% endif %}
>[!note] Markdown Notes
>{% if markdownNotes %}{{markdownNotes}}{% else %}{{ "None!" }}{% endif %}
# Annotations
{% for a in annotations -%}
{%- if a.type == "highlight" -%}
{% if a.colorCategory == "Yellow" %}
>[!attention] Highlight
{%- elif a.colorCategory == "Green" %}
>[!done] Quote
{%- elif a.colorCategory == "Purple" %}
>[!example] Secondary Source
{%- elif a.colorCategory == "Orange" %}
>[!question] Don't Understand
{%- elif a.colorCategory == "Red" %}
>[!fail] Possibly Incorrect
{%- else %}
>[!quote] Other Highlight
{%- endif %}
> *{{a.annotatedText}}*
> {% if a.comment %}
> >[!note] Note
> >{{a.comment}}
{%- endif %}
{% endif %}
{%- endfor %}
### Imported: {{importDate | format("YYYY-MM-DD h:mm a")}}