diff --git a/zotero.md b/zotero.md index 5220571..eb09045 100644 --- a/zotero.md +++ b/zotero.md @@ -1,11 +1,12 @@ --- -tags: {%- if itemType == "book" %} +tags: {% if itemType == "book" %} - πŸ“₯/πŸ“š{% else %} - πŸ“₯/πŸ“‘{% endif %} alias: " {%- if creators -%} {{creators[0].lastName}} - {%- if creators|length > 1 %} et al.{% endif -%} + {%- if creators|length == 2 %} & {{creators[1].lastName}}{% endif -%} + {%- if creators|length > 2 %} et al.{% endif -%} {%- endif -%} {%- if date %} ({{date | format("YYYY")}}){% endif -%} {%- if shortTitle %} {{shortTitle | safe}} {%- else %} {{title | safe}} {%- endif -%} @@ -13,20 +14,25 @@ alias: " date: {{importDate|format("YYYY-MM-DD")}} lastmod: {{importDate|format("YYYY-MM-DD")}} --- -{% if isFirstImport %} +{#- METADATA AND PERMANENT INDEX -#} +{#- This part only gets inserted once -#} +{#- You can use this space to take permanent notes, e.g. to create an index or write a summary, or link to other notes #} +{% persist "notes" %}{% if isFirstImport %} + # {{title}} ## πŸ“‡ Index - -> [!meta]+ Metadaten – {% for attachment in attachments | filterby("path", "endswith", ".pdf") %}[PDF{% if not loop.first %} {{loop.index}}{% endif %}]({{attachment.desktopURI|replace("/select/", "/open-pdf/")}}){% if not loop.last %}, {% endif %}{% endfor %} +> [!important]+ Metadaten – {% for attachment in attachments | filterby("path", "endswith", ".pdf") %}[PDF{% if not loop.first %} {{loop.index}}{% endif %}]({{attachment.desktopURI|replace("/select/", "/open-pdf/")}}){% if not loop.last %}, {% endif %}{% endfor %} > {{bibliography}} > > - **Projekte**:: > - **Keywords**:: > - [Zotero ΓΆffnen]({{select}}) -> {% endif %}{% persist "annotations" %} +> {% endif %}{% endpersist %}{% persist "annotations" %} +{#- COLOR VARIABLES -#} {%- set zoteroColors = { "#2ea8e5": "blue", @@ -45,12 +51,14 @@ lastmod: {{importDate|format("YYYY-MM-DD")}} "blue": "⭐ Main", "green": "βœ… Definition", "purple": "🧩 Methodology", - "yellow": "πŸ“š Investigate", - "red": "β­• Caveats/Lookup", + "yellow": "πŸ“š Further Reading", + "red": "β­• Questions", + "magenta": "β„Ή Info", "other": "Misc" } -%} +{#- ANNOTATION TYPES -#} {%- macro calloutHeader(type) -%} {%- switch type -%} {%- case "highlight" -%} @@ -62,6 +70,7 @@ lastmod: {{importDate|format("YYYY-MM-DD")}} {%- endswitch -%} {%- endmacro %} +{#- SET CUSTOM ANNOTATION COLORS -#} {%- set newAnnot = [] -%} {%- set newAnnotations = [] -%} {%- set annotations = annotations | filterby("date", "dateafter", lastImportDate) %} @@ -112,10 +121,10 @@ lastmod: {{importDate|format("YYYY-MM-DD")}} {%- endif %} {%- if annot.comment %} -> **{{annot.comment|nl2br}}** +> β†’ **{{annot.comment|nl2br}}** {%- endif -%} {%- endfor -%} {%- endfor -%} -{% endif %} -{% endpersist -%} \ No newline at end of file +{% endif -%} +{% endpersist -%}