Assistance Needed for Developing Org-mode Export Plugin for Zotero 7

Hello everyone,

I am currently developing a plugin for Zotero 7 called "Zorg Export," which aims to facilitate the export of Zotero collections to Org-mode format. The goal is to help integrate bibliographic references into workflows based on Emacs and Org-mode.

To be perfectly transparent, I've used Perplexity.ai for, about, everything. The initial JS script works perfectly so I'm trying to transform it as a plugin...

GitHub Repository: https://github.com/AntheaLiles/zorg-mode

Despite my efforts to follow the documentation and available examples, I am encountering difficulties in getting the plugin to work correctly. Here are the main errors I see when loading the extension:

1. WARN Loading extension 'null': Reading manifest: Property "applications" is unsupported in Manifest Version 3
2. ERROR Loading extension 'null': Reading manifest: applications.zotero.id not provided
3. ERROR Loading extension 'null': Reading manifest: applications.zotero.update_url not provided
4. ERROR Loading extension 'null': Reading manifest: applications.zotero.strict_max_version not provided
5. WARN Invalid XPI: Error: Extension is invalid

I have tried different configurations of the `manifest.json`, alternating between versions 2 and 3 of the manifest, but without success. Here is my latest version of the `manifest.json`:


{
"manifest_version": 2,
"name": "Zorg Export",
"version": "1.0",
"description": "Export Zotero collections to org-mode format",
"homepage_url": "https://github.com/AntheaLiles/zorg-mode",
"applications": {
"gecko": {
"id": "zorgmode@anthealiles.com",
"strict_min_version": "7.0.0",
"strict_max_version": "7.*",
"update_url": "https://raw.githubusercontent.com/AntheaLiles/zorg-mode/main/updates/update.json"
}
},
"icons": {
"48": "icons/icon.png",
"96": "icons/icon@2x.png"
},
"background": {
"scripts": ["background.js"]
},
"experiment_apis": {
"zorgmode": {
"schema": "schema.json",
"parent": {
"scopes": ["addon_parent"],
"paths": [["zorgmode"]],
"script": "background.js"
}
}
}
}


I have also created the files background.js, schema.json, and zorg-export.js as it seems to be recommended for Zotero 7 plugins.

My main questions are:
What is the correct configuration for manifest.json for a Zotero 7 plugin?
How can I resolve the errors related to the "applications" property and the missing information?
Are there significant differences in the structure of plugins between Zotero 6 and Zotero 7 that I should be aware of?

Any help or advice would be greatly appreciated.
Thank you in advance for your assistance!

Best regards,
Anthea
Sign In or Register to comment.