1. can the name of the style be made visible above the style? 2. might it be possible to allow the user see more than one style side by side? there is plenty of space in that column and that can be useful when learning new styles or testing style rendering when modifying styles.
Just the usual: * Download the .ZoteroPreview.xpi file from https://github.com/dcartertod/zotero-plugins * Open Zotero * Tools > Add-ons * Drop down on cogwheel > Install Add-on From File... * Browse to downloaded file... * Error as shown.
When I first started I had had some issues with creating the .xpi, but those shouldn't occur any more. Can you try unzipping and rezipping it to see if that makes a difference?
$ zip -T ZoteroPreview.xpi zip warning: missing end signature--probably not a zip file (did you zip warning: remember to use binary mode when you transferred it?) zip warning: (if you are trying to read a damaged archive try -F)
zip error: Zip file structure invalid (ZoteroPreview.xpi) $
Also, trying the -F and -FF options produces no joy either, and attempting to un/re-zip also does not work.
Strange error. Tested on macOS Monterey with version 0.1.6 of ZoteroPreview. I used Firefox and Chrome to download the .xpi file. No corruption detected
$ zip -T ZoteroPreview.xpi test of ZoteroPreview.xpi OK
I don't know how it works, but other Zotero plugins do not seem to put the xpi file directly in the code in this way, but only in the Releases page. For example: https://github.com/wshanks/Zutilo
The different files are probably identical, but it may be useful to give the precise link you are using to download the file you are testing. I guess you have already tried, but I would try to remove completely the current file (also remove from the Trash folder), before downloading again the latest version from the Releases page.
To make sure you have the correct file, you could check the file hash. I get the following MD5 checksum for the latest version: $ md5sum ZoteroPreview.xpi cacdb83a4e0a989e5271646cb1441fa1 ZoteroPreview.xpi
I have tested on Ubuntu 20.04 (also Debian-based Linux), and everything is working fine (no file corruption and successful installation).
I see. So I guess you were doing a right click -> save link on "ZoteroPreview.xpi" from the main page to download. This "folder" should probably be removed I guess.
Maybe the Zotero Abstract Cleaner plugin should be moved to its own repository? I don't know if renaming the repositories would break the auto-updates. But if this is not too much trouble, maybe the name could be changed to Zotero Citation Preview, to avoid confusions with the Zotero PDF Preview?
- rename the repo does not affect the original link.
- put each plugin in a separate repo would be more clear. for the xpi release, my suggestion is not to put it in the git repo itself, but in the release page of the repo.
the binary file will not be handled by git and will seriously affect the size of your repo, making it extremely big after many updates.
- as for how to easily update and release a plugin, here is my plugin repo. i use release-it package to update the version number and release it automatically. see https://github.com/windingwind/zotero-addon-template
1. can the name of the style be made visible above the style?
2. might it be possible to allow the user see more than one style side by side? there is plenty of space in that column and that can be useful when learning new styles or testing style rendering when modifying styles.
Thanks for considering
Your two suggestions had crossed my mind. Will think on it.
Info:
* Debian-based Linux
* Zotero 6.0.13
I download the add-on from the usual git URL (https://github.com/dcartertod/zotero-plugins), but attempts to Install Add-on From File yields the following error: Is this something others have had happen?
* Download the .ZoteroPreview.xpi file from https://github.com/dcartertod/zotero-plugins
* Open Zotero
* Tools > Add-ons
* Drop down on cogwheel > Install Add-on From File...
* Browse to downloaded file...
* Error as shown.
https://github.com/dcartertod/zotero-plugins/issues/18
I just released a new version in case it makes a difference (no idea if it will)
When I first started I had had some issues with creating the .xpi, but those shouldn't occur any more. Can you try unzipping and rezipping it to see if that makes a difference?
Oh well. Shame. I really did like this add-on.
1) From the main page of the plugin, in the code, there is a folder ZoteroPreview.xpi:
- Download -> https://github.com/dcartertod/zotero-plugins/raw/main/ZoteroPreview.xpi
- View raw -> https://github.com/dcartertod/zotero-plugins/blob/main/ZoteroPreview.xpi?raw=true
2) From the Releases -> https://github.com/dcartertod/zotero-plugins/releases/download/0.1.6/ZoteroPreview.xpi
I don't know how it works, but other Zotero plugins do not seem to put the xpi file directly in the code in this way, but only in the Releases page. For example: https://github.com/wshanks/Zutilo
The different files are probably identical, but it may be useful to give the precise link you are using to download the file you are testing.
I guess you have already tried, but I would try to remove completely the current file (also remove from the Trash folder), before downloading again the latest version from the Releases page.
To make sure you have the correct file, you could check the file hash. I get the following MD5 checksum for the latest version:
$ md5sum ZoteroPreview.xpi
cacdb83a4e0a989e5271646cb1441fa1 ZoteroPreview.xpi
I have tested on Ubuntu 20.04 (also Debian-based Linux), and everything is working fine (no file corruption and successful installation).
There are two different file sizes present in the options for downloading from the links you've given above:
1)-Download and 1)-Raw both produce a file size of 12.5kb;
2)-Releases also produces the same.
BUT: the link:
https://github.com/dcartertod/zotero-plugins/blob/main/ZoteroPreview.xpi
which is accessed from the main repo
https://github.com/dcartertod/zotero-plugins
has been producing a file that is 134 kb, and that it the one that has been failing install.
So, there appears to be another version of the file that is accessible from one of the links on the git.
I've now successfully installed the add-on again - the 12.5 kb file size, not the 134 kb one.
Jolly good!
This "folder" should probably be removed I guess.
Maybe the Zotero Abstract Cleaner plugin should be moved to its own repository?
I don't know if renaming the repositories would break the auto-updates. But if this is not too much trouble, maybe the name could be changed to Zotero Citation Preview, to avoid confusions with the Zotero PDF Preview?
This is my first GitHub project, so I was guessing some of the way! :-)
- rename the repo does not affect the original link.
- put each plugin in a separate repo would be more clear. for the xpi release, my suggestion is not to put it in the git repo itself, but in the release page of the repo.
the binary file will not be handled by git and will seriously affect the size of your repo, making it extremely big after many updates.
- as for how to easily update and release a plugin, here is my plugin repo. i use release-it package to update the version number and release it automatically. see https://github.com/windingwind/zotero-addon-template