"Item Zotero pane" to "Item on zotero.org", create bibliography from item
When in the Zotero pane (or Zotero stand alone), is it possible to get the link to an item on zotero.org? I.e. does the Zotero pane "know" about the url for the item on zotero.org.
Also, when creating a bibliography item (through the context menu), it it possible to adjust the style so that it includes the above link to zotero.org?
Thanks!
Also, when creating a bibliography item (through the context menu), it it possible to adjust the style so that it includes the above link to zotero.org?
Thanks!
2. No, that information isn't available to citation styles, sorry (unless, of course, you put it into the "URL" field of an item, but you'd have to do that manually).
Bjoern
should the zotero://select/items/... link highlight the item in the zotero library? The link opens the zotero pane, but the item is not highlighted.
Other than that, it's perfect! I've looked at the js examples from the above links, and amended the script as shown below. This gives me authors, year, title, and the zotero links. It could be a lot more sophisticated, but for now it's really good!
function doExport() {
var item;
while(item = Zotero.nextItem()) {
for(var i=0, n=item.creators.length; i<n; i++) {
Zotero.write(item.creators[i].lastName + ", "+ item.creators[i].firstName + ", " );
}
Zotero.write(item.year + ". " );
Zotero.write(item.title+"\n");
var library_id = item.libraryID ? item.libraryID : 0;
Zotero.write(library_id+"\n");
Zotero.write(item.uri + "\n");
Zotero.write("zotero://select/items/");
Zotero.write(library_id+"_"+item.key+"\n");
}
}
If I then close the pane, and revisit the link, it seems to work, i.e. highlight the item.
Thanks!!