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.