New plugin: ZoteroQuickLook
This is an old discussion that has not been active in a long time. Before commenting here, you should strongly consider starting a new discussion instead. If you think the content of this discussion is still relevant, you can link to it from your new discussion.
http://www.tkk.fi/u/mronkko/zoteroquicklook.xpi
This version fixes the Zotero as a tab issue. Once I have a few people confirming that this works for them, I will publish it through Mozilla Extensions directory.
The current overlays are
overlay chrome://browser/content/browser.xul chrome://zoteroquicklook/content/overlay.xul
overlay chrome://zotero/content/zoteroPane.xul chrome://zoteroquicklook/content/overlay.xul
overlay chrome://zotero/content/integration/addCitationDialog.xul chrome://zoteroquicklook/content/addCitationDialogOverlay.xul
I assume that this combination will work in all current Zotero versions.
Mac OS X 10.6.4, FF 4, Zotero 2.1rc2
http://www.tkk.fi/u/mronkko/zoteroquicklook.xpi
I just realized that in e.g. Mail the QuickLook window can be dismissed with Esc. Would be great to have the same in ZoteroQuickLook.
http://www.tkk.fi/u/mronkko/zoteroquicklook.xpi
If you like the plugin, I would appreciate having more ratings and reviews at the Mozilla extensions directory
https://addons.mozilla.org/en-US/firefox/addon/zoteroquicklook/
There is now a new version available at
http://www.tkk.fi/u/mronkko/zoteroquicklook.xpi
This will be version 1.2
The changes from 1.1 include
-Support for Zotero 2.1
-Small code optimizations
-The plugin now shows also notes, not only attachments (thanks adamsmith for the suggestion of this feature)
-The plugin has an automatic browse mode
The browse mode feature helps when browsing a list of articles where some articles have notes or attachments and some don't. Browse mode is activated by moving up and down an article list using the arrow keys. When browse mode is active, quicklook is opened every time the active item is changes. Previously it needed to be manually activated after being closed by choosing an item that did not have an attachment. Browse mode is stopped by closing the quicklook window.
Testing is more than welcome again. I think that this is quite close to a public release if no major bugs are found.
Thanks, Tom
A quick fix is to copy the MaComfort folder to Program Files. Alternatively you can wait a day or two for me to fix the path in the ZoteroQuickLook code
-Added cleaning of cached notes
-Fixed a bug where MaComfort was not found on 64bit Windows 7
-Increased the version number from 1.2
There is also a new demo video available at
http://www.youtube.com/watch?v=a2qt9H5G5KQ
Thank you for positive reviews at the mozilla extensions directory page.
Thanks!
Tom
-how long it takes to open the quicklook window?
-which PDF reader do you use?
Even better would be a short screen recording on ZoteroQuickLook in action on your system.
You can email these to me at mikko.ronkko@aalto.fi
I'm afraid I don't have the capacity to post a screen recording, but I can say it works quite well. I use it a bit less than I thought I might just because the browse function does not work on Windows.
Thanks,
Tom
I annoyingly repeated this several times. I disabled Z-QL and am now able to perform a 2 finger scroll with seemingly no issues.
White Macbook 2007 OS X 10.6.7
Firefox 3.6.13, Zotero 2.1.1, Zotero QuickLook 1.2.0
How to use:
-Move cursor on a citation
-Press ctrl+option+q to open the items in this citation in quicklook
-Press ctrl+option+q again to close the quicklook dialog
How to install:
-Download the plugin from http://dl.dropbox.com/u/694399/zoteroquicklook.xpi
-Unzip the zoteroquicklook.xpi
-Copy the file ZoteroQuickLook\coq.scpt to ~/Documents/Microsoft User Data/Word Script Menu Items/Zotero/
-Install zoteroquicklook.xpi with Firefox
-Restart firefox. There is no need to restart Word.
I would assume that similar functionality would be quite easy to implement also for OpenOffice.
However, I can't get it to work with ZQL. I changed the about:config preference to the path+name of the Sumatra PDF executable (tried with and without quotes), but when I hit the space bar i Zotero, nothing happens. I briefly tried maComfort and it worked, but I uninstalled maComfort again because I didn#t like it.
The bug can be fixed by changing the content of zoteroquicklook.js, openQuickLook function to the following
[code]
openQuickLook: function(items) {
Zotero.debug("ZoteroQuickLook opening viewer",3);
var args=Array();
// A boolean indicating if we have notes this far.
var notesFound=false;
//Combine all filenames into an array
for (item in items){
if (items[item].isAttachment() || items[item].isNote()){
if(items[item].isNote() &! notesFound){
this.cleanOldNotes();
notesFound=true;
}
this.pushItemToArgs(args,items[item]);
}
//See if it has children and add them. Best attachment comes first.
//Notes come after attachments
else{
var attachments=items[item].getAttachments(false);
var notes=items[item].getNotes(false);
if(notes!==false &! notesFound){
this.cleanOldNotes();
notesFound=true;
}
children=new Array();
if(attachments!=false) children=children.concat(attachments);
if(notes!=false) children=children.concat(notes);
for (childID in children){
var child = Zotero.Items.get(children[childID]);
this.pushItemToArgs(args,child);
}
}
}
///If no files are specified, exit. Custom view commmand does not have base arguments but other view commands have one base argument.
if (args.length==0 ) {
Zotero.debug("ZoteroQuickLook thinks that no files are selected",3);
return false;
}
if(this.viewerBaseArguments!=null){
args=this.viewerBaseArguments.slice().concat(args);
}
var argsString="";
for( i in args){
argsString=argsString+" "+args[i];
}
//Write to debug what is called
Zotero.debug("ZoteroQuickLook calling a shell command: " +this.viewerExecutable.path +argsString,3);
Zotero.ZoteroQuickLook.proc = Components.classes["@mozilla.org/process/util;1"].
createInstance(Components.interfaces.nsIProcess);
Zotero.ZoteroQuickLook.proc.init(Zotero.ZoteroQuickLook.viewerExecutable);
Zotero.ZoteroQuickLook.proc.run(false, args, args.length);
return true;
}
[/code]
I will include this bug fix in the next release of ZoteroQuickLook
Unfortunately, even after changing the code, I still can't get it to work. But maybe I didn't do it correctly, I'll best wait for the next release and then try again.
Could you make a version for the Zotero Standalone? It looks like it is possible, and wouldn't take too much extra coding. Thanks!
http://groups.google.com/group/zotero-dev/browse_thread/thread/e8072da272180c7f
http://www.youtube.com/watch?v=SVe4fKY_Fe4
This version includes the following changes
-Bug fix to a problem affecting custom view command
-Support for Zotero Standalone
-Support for QuickFormat (use cmd+y to open quicklook)
-QuickLook from Word document using the Word script menu. Supported only on Mac and Word 2008 / 2011 for now. See the video in the previous post for demo.
There are still issues with the QuickFormat support.