OO plugin: patch to enable Zotero toolbar in master documents

149 views
Skip to first unread message

lasse

unread,
May 8, 2009, 9:33:00 AM5/8/09
to zotero-dev
I have uploaded a simple patch for the OpenOffice plugin (2.02a) that
enables the Zotero toolbar in master documents:
http://groups.google.com/group/zotero-dev/web/ooo-2.02a-enable-toolbar-in-master-documents.patch

I think this is a very important patch that will drastically improve
usability and acceptance of Zotero by OpenOffice users who have larger
writing projects such as a thesis or dissertation. So far, using a
master document in OO, users had to manually add links to the Zotero
macros to have Zotero functionality (e.g inserting a bibliogrphy) in
the master document:

http://forums.zotero.org/discussion/1671/zotero-and-master-document-in-openoffice/

This work-around doesn't even work anymore with the new 2.x Python-
based plugin, so without this patch users will not be able to use
Zotero functionality in master documents!

I have successfully tested the plugin with OpenOffice 3.0.1 on Ubuntu
9.04 and OpenOffice 2.4 on Ubuntu 8.04.

This is my first contribution to Zotero, I hope posting the patch like
this is okay.

Lasse

NikGuitar

unread,
Jun 3, 2009, 10:54:09 AM6/3/09
to zotero-dev


On May 8, 2:33 pm, lasse <la...@zeromail.org> wrote:
> I have uploaded a simple patch for the OpenOffice plugin (2.02a) that
> enables the Zotero toolbar in master documents:http://groups.google.com/group/zotero-dev/web/ooo-2.02a-enable-toolba...

Hi Lasse, thanks for this fantastic patch, could you explain me how to
apply it?
Thanks again,
Nik

Richard Karnesky

unread,
Jun 4, 2009, 12:09:27 PM6/4/09
to zotero-dev
> Hi Lasse, thanks for this fantastic patch, could you explain me how to
> apply it?

Just cross-referencing in case someone stumbles on this thread:
http://forums.zotero.org/discussion/7333/zotero-buttons-in-oo-master-documents/#Item_4

--R

lasse

unread,
Jun 5, 2009, 5:22:53 AM6/5/09
to zotero-dev
> Hi Lasse, thanks for this fantastic patch, could you explain me how to

The file to patch is "Addons.xcu" which is in the root directory of
the OpneOffice plugin.

With "Addons.xcu" and the patch file I uploaded in the same directory,
just execute the following command to apply the patch:

patch Addons.xcu ooo-2.02a-enable-toolbar-in-master-documents.patch

Glad to hear the patch will find its way into the plugin! :)

Lasse

NikGuitar

unread,
Jun 5, 2009, 6:12:02 AM6/5/09
to zotero-dev
I applied the patch and now everything works well with my master
documents, I use OO 3.1.0 for mac. I have uploaded the patched plugin
ver.2.0a2 here:
http://tinyurl.com/nwr262

Cheers,
Nik

Joel Shaver

unread,
Jun 5, 2009, 7:06:10 AM6/5/09
to zotero-dev
Tried applying the patch in XP with GnuWin32 and got an error right
away... But then I just did a find/replace on the Addon.xcu files
with the patched data, and it seems to be working!

SteveL

unread,
Jun 5, 2009, 11:47:18 PM6/5/09
to zotero-dev
Hey thanks! I was going to try to patch on Windows but you saved me
from that horror. Works perfectly btw. OOO 3.1 on MS Windows Vista.

I hope someone posts a link to this thread on the main Zotero plugin
download page.

lasse

unread,
Jun 7, 2009, 6:11:51 AM6/7/09
to zotero-dev
> documents, I use OO 3.1.0 for mac. I have uploaded the patched plugin
> ver.2.0a2 here:http://tinyurl.com/nwr262

Great, I'm happy people are already using the patch! :)
Any plans for releasing a new "official" version of the plugin?

SteveL

unread,
Jun 19, 2009, 2:29:31 AM6/19/09
to zotero-dev
Couple of minor bugs:

1. The patched plugin seems to allow inserting cites or bibliographies
directly on top of read-only areas of the master document (that is,
the subdocuments in the master document window). But these inserted
Zotero items are not visible in the sub-document if opened separately,
so it isn't actually writing to the file (which is good).

2. I also had a problem sometimes when trying to insert a
bibliography. It deleted the previous character (usually a CR-LF) and
then just entered the text {Zotero} (no bibliography). Not sure if
it's a problem with the patch or a bug in Zotero itself.

Joel Shaver

unread,
Jul 2, 2009, 6:20:23 AM7/2/09
to zotero-dev
I'm having that trouble now too. Haven't figured it out yet...

Mathieu Payn

unread,
Jan 20, 2015, 5:31:09 PM1/20/15
to zoter...@googlegroups.com, la...@zeromail.org
Hi everyone
I am digging up an old topic. I came to this discussion through this topic: http://feedback.mendeley.com/forums/4941-general/suggestions/750724-make-the-openoffice-plugin-work-in-master-document
It seems that the patch for th Zotero plugin  does work for the Mendely plugin as well! We are in 2015, and i am still stuck with a master document in which i cannot insert the bibliography!
Is anyone kind enough to put this patch online again? The two listed links lead to a 404 error.

lasse

unread,
Jan 21, 2015, 3:25:11 PM1/21/15
to zoter...@googlegroups.com
Digging through my files I was able to locate my original patch file from way back when!

No idea though if it still works with a current version of Zotero/OpenOffice/LibreOffice.
ooo-2.02a-enable-toolbar-in-master-documents.patch

Mathieu Payn

unread,
Jan 21, 2015, 4:44:06 PM1/21/15
to zoter...@googlegroups.com, la...@zeromail.org
Ohohoh! Excellent! Thank you for the positive answer! I will give it a try and let you know.


Le vendredi 8 mai 2009 15:33:00 UTC+2, lasse a écrit :

Mathieu Payn

unread,
Jan 22, 2015, 5:40:01 AM1/22/15
to zoter...@googlegroups.com, la...@zeromail.org
So i implemented (?) a patch for the first time. It worked like a charm. \o/
6 years later, nothing has changed. We cannot say that the Mendeley dev time had this point in its priorities! :-/
This is a handiwork and i would not experiment so much on it, but it will do the job!
Thank you very much for your quick response lasse!

Mathieu

Le vendredi 8 mai 2009 15:33:00 UTC+2, lasse a écrit :
Reply all
Reply to author
Forward
0 new messages