A New Wiley Translator
I found many friends reported their troubles with Wiley Translator, I also met some errors when I tried with it. I could not correctly save multiple results from a issue page or search results page because it just saved the last selected one for several times. So, I tried my best to resolve this problem and got a good result. Here is my new code for Wiley publisher. It can scribe the search results page and an issue page, also PDF will be downloaded when you save an item.
[Code removed — see below. – D.S.]
[Code removed — see below. – D.S.]
I added a link to this thread to the existing ticket. https://www.zotero.org/trac/ticket/1243 Once someone from the dev team has a chance to test it we can push it out.
How I can use your corrected translator? Do I need to use Scaffold or maybe there is a way to simply copy and paste your code somewhere?
I just tried scaffold. I am new user so of course the new translator returned an error.
What I did:
Open scaffold
Loaded Wiley InterScience from the database
Pasted new code into Detect Code and Code tabs
Changed Translator ID in the Metadata tab to match that one from the "translator.setTranslator("881f60f2-0802-411a-9228-ce5f47b64c7d"); //EndNote/Refer/BibIX" line in the Code tab (was that necessary?)
Saved to database
Restarted firefox
Tested on http://www3.interscience.wiley.com/journal/106559009/abstract
and get an error (Could not save an item).
Repeated twice (after reseting all translators).
I guess I am doing something wrong ;-)
Note that the translator above isn't quite correct, for rather complicated reasons I explain in a dev list post.
Dan Stillman, thanks for your expaination. But, the updated Wiley translator also has error, It catchs same PDFs for all items!
Line 113, id in "var pdfurl " is fixed at last selected items.
Line 61, "(/abstract\/([\d]+)\//)" changed to "(/\/([\d]+)\/abstract/)" will get istems from wiley journal issue page.
https://www.zotero.org/trac/browser/extension/trunk/translators/Wiley InterScience.js?rev=3976#L61
I will fixed the ACS translator based on your wiley one.
Both issues should now be fixed, and the updated translator is available. Thanks.
Could I ask you for checking that link with both versions of the wiley translator (yours Santawort and the zotero official one):
http://www3.interscience.wiley.com/journal/116327420/abstract
Do you have PDF attachment automatically attached to zotero record or it opens in a default pdf viewer instead? This problem has been already reported on the forum.
I am still being prompted to open the file instead.
Moreover, when I grab & drop the "PDF" link to zotero entry (what works for me for many other journals) I get only some empty snapshot with a title "Wiley InterScience :: Journal :: Article PDF" (PDFSTART.html on disk).
I tested on firefox-linux and firefox-windows. Zotero reinstalled, checked for updates. I've checked that I do have changes in doWeb at least from https://www.zotero.org/trac/changeset/3981 So I think updates worked.
Maybe it is related to some settings of the browser... I wonder whether others have this problems still.