How to create new plugin for Zotero

12 views
Skip to first unread message

Kanhaiya kale ( कન્હૈযা ਕਾளெ )

unread,
May 12, 2008, 10:30:44 AM5/12/08
to zoter...@googlegroups.com
Hi all,
I want to create new plugin which after installation get integrated with already installed zotero plugin.
Actually, i customized the zotero plugin and add some google map related features.Now, i want to create seperate plugin of this google map features which will after installation get integrated with already installed zotero plugin.
Can anybody guide me on this ?

Regards,
--
kanhaiya kale (KK)
IndicTrans, Pune
http://kanhaiya.indictrans.in
Message has been deleted

Dan Stillman

unread,
May 12, 2008, 10:52:39 AM5/12/08
to zoter...@googlegroups.com
On 5/12/08 10:30 AM, Kanhaiya kale ( कન્હૈযা ਕਾளெ ) wrote:
> I want to create new plugin which after installation get integrated
> with already installed zotero plugin.
> Actually, i customized the zotero plugin and add some google map
> related features.Now, i want to create seperate plugin of this google
> map features which will after installation get integrated with already
> installed zotero plugin.
> Can anybody guide me on this ?

Could you go into a bit more detail on the the parts of Zotero you're
modifying? While JavaScript and the Mozilla architecture allow you to
access and modify pretty much anything from privileged code, Zotero
doesn't currently offer hooks to extend all of its parts very elegantly
or in ways that aren't likely to break (or break Zotero) in the future.
But if you let us know what you're doing, it'll help us figure out what
parts to focus on opening up in future versions, and we may be able to
suggest workarounds in the meantime.

- Dan

Kanhaiya kale ( कન્હૈযা ਕਾளெ )

unread,
May 12, 2008, 11:37:58 AM5/12/08
to zoter...@googlegroups.com
Hi Dan,
Actually, we have customized zotero plugin by adding exhibit's timeplot and timeline feature.
Now we want to create seperate plugin for timeline and timeplot. So that after installing this plugin, it will get integrate with already installed zotero plugin.
Just like "A Sample Zotero Plugin" of zotero.


Stuart Thiel

unread,
May 14, 2008, 6:39:41 AM5/14/08
to zotero-dev
What we've done with Vertov (an extension that sits on top of Zotero)
is try to be as non-invasive as possible. The key part is grabbing the
event of someone clicking on the item pane in our overlay:
<tree
id="zotero-items-tree"
onselect="ZoteroPane.itemSelected();mediannotate.prepareMediAnnotate();" /
>

where "ZoteroPane.itemSelected()" was the original and
"mediannotate.prepareMediAnnotate();" is ours. From that point on,
it's a matter of making our visual representations come up instead of
the Zotero items (and catching a few other events).

In terms of storage, our annotations make use of Zotero notes and we
store all our information as xml content. It's not the most normalized
approach, but it isolates our stuff and keeps it completely compatible
with Zotero (uninstalling vertov doesn't lose things, things can be
exported and imported, when remote Zotero synchronization is finished,
vertov will automatically be compatible).

So, it's a simplistic approach to piggybacking on Zotero, but I think
a similar thing could be done by you. The trick would be improving the
mechanism by which an extension on Zotero piggybacks on events to make
sure there wasn't any incompatibility when to Zotero extensions get
installed.

Stuart

On May 12, 11:37 am, "Kanhaiya kale ( कન્હૈযা ਕਾளெ )"
<kanhaiya.k...@gmail.com> wrote:
> Hi Dan,
> Actually, we have customized zotero plugin by adding exhibit's timeplot and
> timeline feature.
> Now we want to create seperate plugin for timeline and timeplot. So that
> after installing this plugin, it will get integrate with already installed
> zotero plugin.
> Just like "*A Sample Zotero Plugin"* of zotero.
Reply all
Reply to author
Forward
0 new messages