Zotero notes persistence and order

What I’m trying to do

I have setup Zotero integration with Obsidian and it works well apart from two things:

  1. When i rerun “Zotero Integration: Create new research note” after adding new highlights to a research paper the new highlights are pulled in but are always added at the bottom and not in correct order of where they appear in the research paper. How can have highlights reordered so they are all always in page order

  2. When i rerun “Zotero Integration: Create new research note” to pull in new highlights all notes I have written manually into the file are lost - how can i make these persistent no matter how many times the zotero integration is run

[!Cite]
{{bibliography}}
[!Synth]
Contribution::
[!md]
{%- for creator in creators %} {%- if creator.name == null %} {{creator.creatorType | capitalize}}:: {{creator.lastName}}, {{creator.firstName}}{%- endif -%}

{%- if creator.name %}{{creator.creatorType | capitalize}}:: {{creator.name}}{%- endif -%}{%- endfor %}
Title:: {{title}}
Year:: {{date | format(“YYYY”)}}
Citekey:: @{{citekey}}
{%- if itemType %}itemType:: {{itemType}}{%- endif %}
{%- 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 %}
{%- if DOI %}DOI:: {{DOI}} {%- endif %}
{%- if ISBN %}ISBN:: {{ISBN}} {%- endif %}
[!LINK]
{%- for attachment in attachments | filterby(“path”, “endswith”, “.pdf”) %}
[{{attachment.title}}](file://{{attachment.path | replace(" ", “%20”)}}) {%- endfor -%}.
[!Abstract]
{%- if abstractNote %}
{{abstractNote}}
{%- endif -%}
{%- set important = annotations | filterby(“comment”, “startswith”, “important”) -%}
{%- if important.length > 0 %}
[!important] Callouts
{%- for annotation in important -%}
{%- if annotation.annotatedText %}

  • {{annotation.annotatedText | nl2br}}
    {%- endif -%}
    {%- if annotation.imageRelativePath %}
  • ![[{{annotation.imageRelativePath}}]]
    {%- endif %}
    [page {{annotation.page}}](file://{{annotation.attachment.path | replace(" ", “%20”)}})
    {%- endfor -%}
    {%- endif %}
    {%- if annotations.length %}## Annotations
    {%- endif %}

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.