I need to make a plugin
Since I am a newbie, I need a lot of help, especially because I installed the Hello-World plugin as a model for making my own, but it never gave me a message in any circumstance (adding, editing, deleting an item), as expected and explained in GitHub.
I do need something to aid me in my research, but since what should be a basis for a more complex plugin does not work, I feel lost.
I use a desktop Zotero 5.0.88 on Windows 7 64-bit, with adm credentials and all.
I do need something to aid me in my research, but since what should be a basis for a more complex plugin does not work, I feel lost.
I use a desktop Zotero 5.0.88 on Windows 7 64-bit, with adm credentials and all.
This is an old discussion that has not been active in a long time. Before commenting here, you should strongly consider starting a new discussion instead. If you think the content of this discussion is still relevant, you can link to it from your new discussion.
The first issue is to make that Hello_World thing responsive. It was supposed to return a message, right? If I could see it working, I would be able to figure out what I need to do, but somehow it's dead. Is it going to have any sort of update, bugfix?
I don't use the Hello World scaffold, I have my own scaffold generator but that will likely bring in more complexity (typescript, npm modules) than you need. I know a bit about general plugin development but not about the Hello World scaffold in particular.
Zotero.HelloWorldZotero = {
DB: null,
init: function () {
// Connect to (and create, if necessary) helloworld.sqlite in the Zotero directory
this.DB = new Zotero.DBConnection('helloworld');
if (!this.DB.tableExists('changes')) {
this.DB.query("CREATE TABLE changes (num INT)");
this.DB.query("INSERT INTO changes VALUES (0)");
}
(etc)
This example is quite old, Mr. Dan Stillman made it in 2016.
=======
What I need is merely a plugin that creates/opens a database and shows a window where I can insert/modify data besides the ones existent in Zotero. Then, it has to offer a way for me to make a query using both databases (Zotero's and mine).
I'm sorry if I don't make myself very clear; English is not my primary language).
There's a way that I think is easier (XUL) but it's a deprecated technology and you're going to have to rewrite to a DOM user interface when Zotero eventually migrates to Electron.
Regarding my goal, I would like to automate a couple things when I add a reference to my collection: populate some fields according to a personal convetion, rename the attachment also according to a personal convention, create a symbolic link of the /zotero/storage file in another directory on my computer...among others. I have already written a program to do all these things but I currently have to run it in the "Run Javascript" box every time. When I switched to a linux operating system my "OS.File.unixSymLink()" command stopped working of course and I couldn't patch it. So I have decided to try to do this the right way, which I assume is with a plugin.