Mediawiki Citation export
Hello. I use Zotero and a local Mediawiki to record notes.
What I look for is a way to export in the citation with a 'back link' to my Zotero database.
The idea is to click on this link in the mediawiki page and that would open Zotero with the linked item displayed (in zotero panel, not in web snapshot).
Is there any way to to this ?
Philippe
What I look for is a way to export in the citation with a 'back link' to my Zotero database.
The idea is to click on this link in the mediawiki page and that would open Zotero with the linked item displayed (in zotero panel, not in web snapshot).
Is there any way to to this ?
Philippe
This is an old discussion that has not been active in a long time. Instead of commenting here, you should start a new discussion. If you think the content of this discussion is still relevant, you can link to it from your new discussion.
This has been discussed some:
http://forums.zotero.org/discussion/8306/testing-zoteroselect/
But note:
http://forums.zotero.org/discussion/17275/zoteroselect-urls-dont-always-select/
You can get the eight-digit ID by using an export translator as discussed in the first thread, or you can get it through the server API.
But there is one problem left : Firefox (I use 4.0) won't allow Zotero:// links to be clicked for safety reasons. I saw this quoted elsewhere but I didn't find a suitable workaround.
Maybe ther is an extension to cope with that ?
And a possible fix is here: https://developer.mozilla.org/en/Chrome_Registration#contentaccessible
Not sure if Zotero can be made to allow this-- but it'd be nice if it could.
Security Error: Content at http://gimranov.com/research/eduard/tmp.html may not load or link to zotero://select//0_ASDF1234.
Is this not something that Zotero can elect to override?
...
// write out properties
Zotero.write((first ? "" : "\r\n\r\n") + "{{"+type);
for(var key in properties) {
if(properties[key]) Zotero.write("\r\n| "+key+" = "+properties[key]);
}
Zotero.write("\r\n}}");
Zotero.write(" [zotero://select//");
var library_id = item.LibraryID ? item.LibraryID : 0;
Zotero.write(library_id+"_"+item.key+" ");
Zotero.write(" Z]");
first = false;
}
}
I choose to put only a "Z" for the link, because these references are already too long.
The next step is to allow zotero: as a link in mediawiki; this is done by adding :
$wgUrlProtocols[] = "zotero:";
in the LocalSettings.php file of the mediawiki.
--
Of course, it is still not possible to click on this link, but if I right-click on it, and select:
Zotero/Enregistrer le lien en tant que document Zotero (sorry I happen to be french)
Bingo! The Zotero panel opens with the item selected.
This is good enough for me, and I'm happy to this solution.