Saltar al contenido principal

Export/Import Notes

Purpose

Export and import the three types of structured notes generated by literature-analysis (digest, references, citation analysis), facilitating migration between Zotero instances.

Editing Analysis Results

Notes generated by Literature Analysis are rendered from backend data; directly modifying the note content will not change the backend data. If you need to edit analysis results, the correct approach is: Export Notes → modify the exported files → use Import Notes to re-import.

export-notes (Export Notes)

Use Cases

  • Share literature analysis results with collaborators
  • Import analysis results in another Zotero instance
  • Back up literature analysis artifacts

Input Constraints

Constraint TypeDescription
Input UnitParent item
Selection MethodSupports mixed selection of parent items and three types of notes
Multi-select BehaviorOnly one export directory selection dialog is shown for multi-select

Exported Artifacts

FileDescription
digest.mdLiterature digest Markdown
references.jsonReference list JSON
citation_analysis.jsonCitation analysis data JSON
citation_analysis.mdCitation analysis report Markdown
representative_image.jpgRepresentative image (when digest note contains an embedded image)

The representative image is inserted into digest.md as a zs:representative-image:v1 Markdown comment block, referenced using a same-directory relative path. Image export failure does not block the export of text and JSON artifacts.

Estimated Duration

Completed in seconds (purely local file operations, no backend required).

import-notes (Import Notes)

Use Cases

  • Restore literature analysis results in another Zotero instance
  • Import analysis artifacts shared by collaborators

Input Constraints

Constraint TypeDescription
Input UnitSingle parent item
Import MethodSelect a directory containing exported artifacts

Import Flow

1. Select Import Directory
└── Directory should contain digest.md, references.json, citation_analysis.json

2. Structure Validation
└── references.json and citation_analysis.json undergo structure validation before becoming candidates
└── Validation failure shows a warning but does not block import of other artifacts

3. Image Parsing
└── If digest.md contains a zs:representative-image:v1 marker block
└── Automatically parse the representative image from the same directory
└── User can also manually select or clear the representative image

4. Write
└── Create/update corresponding notes under the parent item

Image import failure does not block digest note import.

Dependencies

  • No backend connection required
  • Only relies on Zotero local storage