Re: style gallery

"Bruce D'Arcus" <[email protected]> Mon, 26 Nov 2007 09:18:54 -0500
Newsgroups gmane.text.refdb.general
Message-ID <[email protected]>
On Nov 26, 2007 3:55 AM, Markus Hoenicka <[email protected]> wrote:

...

> Don't worry about stepping on toes. If someone else does something
> better, it is always good to know. However, this one-click
> installation thing may be appropriate for a GUI program or for a
> browser-add-on like Zotero. I haven't seen that many Unix command line
> applications that support one-click installations of add-ons. I guess
> it is somehow contrary to the philosophy of these tools. But that
> doesn't mean we couldn't add some convenience to the style
> installation. Right now you just need to run "refdba -C addstyle
> <file>" after downloading the style which isn't that hard either. But
> we could add a little script which detects new styles in the directory
> and adds them automatically. This way, you'd just have to drop them in
> the appropriate directory.

FWIW, the way Zotero is doing it is, when you click on the link, it
results in the server serving up the CSL file with a "text/x-csl"
content type. E.g.:

$  curl -I http://www.zotero.org/styles/mhra/dev/install
HTTP/1.1 200 OK
Date: Sun, 25 Nov 2007 17:35:47 GMT
Server: Apache/2.2.3 (CentOS)
X-Powered-By: PHP/5.2.4
Connection: close
Content-Type: text/x-csl

So Zotero then sets itself to handle that type.

I liike this approach, since it's both simple and general (since other
tools could use it).

Not sure how easy that is to configure outside of the web browser, but
I presume it's doable.

Bruce

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/