first I wanted to say that I like Zoteros features very much.
However, writing mainly documents for academic purposes, I would like
to ask:
if there is a possibility to Link an inserted citation (for example
[1] IEEE style) to the corresponding full reference in the
Bibliography in OpenOffice 3.2.
This feature is supported by many other software solutions like LateX.
Then, when you insert a citation, it should be possible to click on a
citation reference (like a link) and be taken to the corresponding
position within the bibliography.
This could be done by inserting internal links within the OO
document.
Maybe there is already a simple way to do this? I've searched this
group and found only old references to a feature request. Adding those
type of links manually is certainly not an option.
Also, an exported PDF may contain those links for easy reference
browsing. However, the Links which are transformed to bookmarks within
the PDF should have a meaningful name (like the original citation ID,
for example [1], [2], and so on.
I am perfectly willing to modify the code myself, but I do not know
there to start in the code at the moment. Perhaps someone could give
me a hint?
There is not a simple way of doing this with Zotero as it stands.
If you want to work on adding this feature, the first thing you should
do is try to create links like this from notes in the main text to
specified points in the document manually, then try to make them using
an OpenOffice macro
(http://wiki.services.openoffice.org/wiki/Documentation/FAQ/Writer).
If you can find a reliable way to create such a link using the macro
system, then you're most of the way there. You should then be able to
look at the macros Zotero uses, in the OpenOffice template file that
the word processor plugin installs, and work out how you might add the
linking behavior.
I think that this behavior would be appreciated by many, and I'm sure
you'd find plenty of willing beta testers if you start working on
something.
Avram
2010/3/28 lreimann <lars.r...@googlemail.com>:
> --
> You received this message because you are subscribed to the Google Groups "zotero-dev" group.
> To post to this group, send email to zoter...@googlegroups.com.
> To unsubscribe from this group, send email to zotero-dev+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/zotero-dev?hl=en.
>
>
I had independently raised this issue some time ago over here:
<http://forums.zotero.org/discussion/7534/hyperlinking-citations-to-
bibliography-in-openoffice/>
but just came on this thread now.
So: since, as far as I can see, nobody else has yet addressed
this (have they?), I have now hacked a very rough
"proof-of-concept". The basic idea is to use CSL to output some
extra (meta-)markup, both in citations and bibliography items,
which contains the information needed to reliably link them (in
this particular use-case, the CSL "citation-number" variable does
the trick: we only need a label for each item that is guaranteed
unique within the one file); then, back in the ooo world we
"just" have to turn this into the correct ODT hyperlinkage.
A sample CSL file is here:
<http://ojs.aishe.org/static/csl/aishe-j-test.csl>
which "works" only in conjunction with this very crude perl
script:
<http://ojs.aishe.org/static/tools/zotero-bib-tweak.perl>
which is used to post-process the resulting ODT file to turn the
(meta-)markup into "real" ODT internal hyper-links.
(NB: That script is offered "AS IS": no warranties, support,
etc. etc. It is a proof of concept. Please don't even think of
using it in any real live workflow!)
Of course, what we really want is *not* such a standalone script,
but rather to integrate the postprocessing into the ooo zotero
extension, so that it automatically and transparently happens
"there and then" whenever citations and bibliography are touched
(rather than, as now, exposing the ugly meta-markup to the user,
until s/he closes ooo and manually re-runs the script).
Unfortunately, with the (very limited) digging I have done, I
can't immediately see where/how to integrate this postprocessing
in the ooo zotero extension. (Of course, it doesn't help that I
have never coded an ooo macro in my life...) I'm currently
looking at:
... /Zotero_OpenOffice_Integration.oxt/Zotero/Zotero.xba
and I can see (I think) that requests are all passed to Zotero
there via:
Call SendMessage(ThWnd, WM_COPYDATA, 0, cds)
What I can't see is where the result of the request gets caught
or processed back in oowriter. I'm guessing that maybe the ooo
integration extension back in firefox opens a separate
communication channel back to oowriter and "directly" writes back
into the document. Is that right? (I did try to see if I could
dig into the firefox side of this interaction; but the
integration extension there seems to be coded in java, and all I
can immediately get at are compiled .class files - have not been
able to figure out where I can see the sources of these?)
So: apologies for this probably naive question: but can anyone
help out by identifying where, if anywhere, there are hooks where
I could insert the required post-CSL (and word-processor
specific) processing into "real" hyperlinks?
(There are actually other things that one would like to handle in
a similar way: for example, applying desired, named, ooo styles
to citations or fields in the reference list etc. So I would
quite like to know how to do this...)
Of course, I may be trying completely the wrong approach here: so
if you can see a better way of doing this, please let me know!
Best regards - Barry.