I’ve added a preview pane to the Zotero styles page:
http://www.zotero.org/styles
The previews are processed by a copy of Zotero running on one of our
servers (in a JSSh-enabled build of Firefox
http://www.croczilla.com/jssh) and should be generated automatically
whenever a style is committed (though I haven’t actually tested that
part). While this setup isn’t exactly an ideal long-term solution, it
should get the job done until Zotero’s JavaScript citation processor is
abstracted from the rest of the code. (We could also use one of the
other CiteProc implementations once they’re brought up-to-date, but
using the same processor that’s used in Zotero has some obvious advantages.)
It’s currently using the test data that Bruce checked into the Xbib SVN
recently. I’d be happy to add additional data.
Note that the preview pane uses the white-space: pre-wrap CSS value,
which is only supported in recent browsers (e.g., Firefox 3).
This was mostly just a proof-of-concept, so let me know if there are any
other tweaks that would be helpful.
Quick followup …On Mon, Apr 28, 2008 at 8:58 PM, Bruce D’Arcus <@Bruce_D_Arcus1> wrote:
- I’m not so sure the current preview UI quite works. The preview
itself is clipped on my (fairly large) screen. What about more of a
Netflix-style pop-up? Maybe Jon L. has some ideas on that.
An easy temporary fix for this would be to give the stylePreview div a
height of 50% (though this is in general still a real estate
inefficient approach).
Bruce
Another solution might be to use a combination of jQuery and the
Hovertips code found here… http://www.dave-cohen.com/node/1186
This will produce a popup, in which could render your preview, when the
user hovers over the style link.
Ron.> -----Original Message-----
From: xbiblio-devel-bounces@lists.sourceforge.net [mailto:xbiblio-
devel-bounces@lists.sourceforge.net] On Behalf Of Bruce D’Arcus
Sent: May 1, 2008 10:13 AM
To: development discussion for xbiblio
Subject: Re: [xbiblio-devel] CSL previewing on Zotero styles page
Quick followup …
On Mon, Apr 28, 2008 at 8:58 PM, Bruce D’Arcus <@Bruce_D_Arcus1> > wrote:
- I’m not so sure the current preview UI quite works. The preview
itself is clipped on my (fairly large) screen. What about more of a
Netflix-style pop-up? Maybe Jon L. has some ideas on that.
An easy temporary fix for this would be to give the stylePreview div a
height of 50% (though this is in general still a real estate
inefficient approach).
Bruce
–
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don’t miss this year’s exciting event. There’s still time to save
$100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/
Yes, this is what I was originally meaning by the Netflix-style pop-ups.
Bruce