On 9/13/12 1:01 PM, Bruce D'Arcus wrote:
>
> What about doing as zotero does: serving the file with a special mime 
> (?) type?
>

Then it's just up to the browser. The reason Zotero can intercept such 
files is because it's a browser extension. Some browsers allow 
associating external programs based on content type—optionally without 
confirmation—but that will work only once the user sets it up the first 
time. Other browsers don't support that: Safari, as far as I know, 
doesn't have external helper app functionality, just a "'safe' files" 
list embedded in a plist somewhere. If the ref manager is registered 
with the system for the content type or file extension, browsers that do 
support external helper app functionality might offer it as the default 
choice.

While we're on the subject, though, we should agree on a different 
content type for .csl files. Among other things, Safari (and possibly 
other browsers) will display "text/*" types rather than downloading 
them.*  "x-" is also considered bad practice these days. 
application/vnd.citationstyles.style? Zotero is using 
application/vnd.citationstyles.csl+json for CSL JSON data.


* Downloading isn't as nice as auto-import or external helper app 
functionality, but it's better than displaying in the browser. At least 
users can then double-click the downloaded file to open it in a properly 
registered reference manager.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
xbiblio-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbiblio-devel

Reply via email to