diff --git a/zotero.md b/zotero.md index eb09045..ee7b76f 100644 --- a/zotero.md +++ b/zotero.md @@ -1,18 +1,18 @@ --- tags: {% if itemType == "book" %} - - πŸ“₯/πŸ“š{% else %} - - πŸ“₯/πŸ“‘{% endif %} -alias: " - {%- if creators -%} - {{creators[0].lastName}} + - book{% else %} + - paper{% endif %} +title: "{% if creators -%}{{creators[0].lastName}} {%- 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 -%} -" -date: {{importDate|format("YYYY-MM-DD")}} -lastmod: {{importDate|format("YYYY-MM-DD")}} + {%- endif -%} + {%- if date %} ({{date | format("YYYY")}}){% endif -%} + {%- if shortTitle %} {{shortTitle | nl2br}} {%- else %} {{title | nl2br}} + {%- endif -%}" +projekte: {% for tag in tags %}{% if "πŸ““" in tag.tag %} + - "[[{{tag.tag | replace("πŸ““ ", "")}}]]"{% endif %}{% endfor %} +created: {{importDate|format("YYYY-MM-DD")}} +modified: {{importDate|format("YYYY-MM-DD")}} --- {#- METADATA AND PERMANENT INDEX -#} {#- This part only gets inserted once -#} @@ -24,14 +24,21 @@ lastmod: {{importDate|format("YYYY-MM-DD")}} ## πŸ“‡ Index - -> [!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 %} +> [!info]+ Metadata – {% 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 %}{% endpersist %}{% persist "annotations" %} +> - Keywords: +> - Zotero: [Eintrag ΓΆffnen]({{select}}){% if relations %} +> - Related: {% for relation in relations %}{% if relation.citekey %}[[@{{relation.citekey}}]]{% if not loop.last %}, {% endif %}{% endif %}{% endfor %}{% endif %} +> [!example]- Abstract +> *{{abstractNote | nl2br}}* + +> [!important]- Summary +> +> {% endif %}{% endpersist %} + +{#- WARNING: Everything below this line will get overwritten on re-import! -#} {#- COLOR VARIABLES -#} {%- set zoteroColors = { @@ -53,7 +60,7 @@ lastmod: {{importDate|format("YYYY-MM-DD")}} "purple": "🧩 Methodology", "yellow": "πŸ“š Further Reading", "red": "β­• Questions", - "magenta": "β„Ή Info", + "magenta": "πŸ“Ž Info", "other": "Misc" } -%} @@ -75,8 +82,7 @@ lastmod: {{importDate|format("YYYY-MM-DD")}} {%- set newAnnotations = [] -%} {%- set annotations = annotations | filterby("date", "dateafter", lastImportDate) %} -{% if annotations.length > 0 %} -*Imported: {{importDate | format("YYYY-MM-DD HH:mm")}}* +{% if annotations.length > 0 %}*Imported: {{importDate | format("YYYY-MM-DD HH:mm")}}* {%- for annot in annotations -%} @@ -127,4 +133,3 @@ lastmod: {{importDate|format("YYYY-MM-DD")}} {%- endfor -%} {%- endfor -%} {% endif -%} -{% endpersist -%}