Hello everybody,
I'm trying to update the obsolete Zotero ODF Scan plugin
https://zotero-odf-scan.github.io/zotero-odf-scan/ for Zotero 7 (hopefully v8 as well...) - it looks like it could be useful for some people, for example Scrivener users (as seen on
https://forums.zotero.org/discussion/comment/490952#Comment_490952 , for example).
Right now I'm stuck with something that looks very basic, so I'm probably missing something along the way.
When the relevant command is selected from the main menu, the plugin needs to open a dialog similar to what the native Zotero RTF scan. I have looked at the Zotero Github repository, apparently the dialog is opened from chrome/content/zotero/zoteroPane.xhtml as:
window.openDialog('chrome://zotero/content/rtfScan.xhtml', 'rtfScan', 'chrome,centerscreen');
This also works when I copy it vertbatim into my Javascript code, but when I try to specifiy my own XHTML template as the first argument nothing happens. Not even en error message.
I guess I need to figure out the proper reference to the resource inside my plugin, but I don't understand how to do that. I have tried several variants (just the file name, rootURI + filename, ...) nothing seems to work.
In case something was wrong with my XHTML I have included a copy of the original rtfScan.xhtml in my XPI as myrtfScan.xhtml and tried to load that, but it doesn't change anything: the dialog doesn't open.,
Can anybody tell me what I should do? It's probably quite simple but I'd be happy if someone could offer their guidance.
Thanks in advance,
Alain Borel