By looking at the code, I figured that the "citation_author" case was missing. I added it beneath "citation_authors" case and it seems to have fixed the above two issues.
Another request- When I right click on a downloaded reference article from IEEE Xplore, and click on "View online", I am not taken to the original article's webpage but instead it opens the pdf file. I looked at an article that I downloaded from sciencedirect -
and it does the right thing. When I click on "View Online", it takes me to the webpage of the article. I noticed that the ScienceDirect translator stores the webpage url in the "URL" attribute in zotero. I did not see any such attribute for articles downloaded from IEEE Xplore. Would that explain the difference? If so, would it be possible to add the URL attribute to the saved list of attributes? I am not sure how to do it myself. I looked at the ScienceDirect translator but could not figure out where it does it.
The URL field is intended to be used only for URIs that resolve to stable representations of the item itself, usually on the site of the publisher. Thus it should be set for stable URLs of newspaper articles on their publishers' websites, and not set for most articles in journal databases. IEEE is an edge case, and we could go either way-- I opted to not include the URL because there are several candidate URLs (abs_all, etc.), and they don't seem particularly authoritative or stable. DOIs are a better choice for finding them in the future, since the URL structure of IEEE Xplore may well not prove stable.
ScienceDirect has not been significant modified in some time, and it is probably doing the wrong thing in including the URLs from the journal database.
As far as I know, we already save the DOI when IEEE provides it. It would be good if Zotero opened the DOI just as it opens URLs, but you can click on the text label "DOI" to open the item as well.
it is - should have with the 2.1.8 version of Zotero. Make sure you have that installed and if you do post with any problems. Same applies to your other post.
I click the icon on the address bar with the preview of the PDF in a FF window (after click on Access Full Text icon in IEEEXplore site) and then fails.
But if I do it without the accessing the full text, then the translator works and the PDF it is saved.
rbianchi, I tried downloading it and it worked fine without any issues. Could you please post the error message you see in the logs? Also, are you sure to placed the downloaded file from git in the right place?
skrisna, I also can download the paper.
The problem is when I try to add the item to Zotero clicking the icon in the address bar while reading the PDF in a window of FF. I remember it worked before.
The copy of the entire message is:
No chrome package registered for chrome://webclipper3/style/mac/webclipperOverlay.css
[JavaScript Error: "Translator with ID 92d4ed84-8d0-4d3c-941f-d4b9124cfbb already loaded from "IEEE Xplore.js"" {file: "file:///Users/raulbianchi/Documents/Docus_PDF/zotero/translators/IEEE%20Xplore.js.old" line: 0}]
[JavaScript Error: "TypeError: newItem.publicationTitle is undefined" {file: "file:///Users/raulbianchi/Documents/Docus_PDF/zotero/translators/IEEE%20Xplore.js" line: 0}]
[JavaScript Error: "TypeError: newItem.publicationTitle is undefined" {file: "file:///Users/raulbianchi/Documents/Docus_PDF/zotero/translators/IEEE%20Xplore.js" line: 0}]
Ok Dan, I delete the .old file, restart FF, and the problem continues...
It's possible in some way to add a screen copy to this forum, only to be more clear?
I click the icon on the address bar with the preview of the PDF in a FF window (after click on Access Full Text icon in IEEEXplore site) and then fails.
Don't do that. Translators are rarely written to work when you're viewing a PDF, and generally when the icon shows up there it's a bug. That should be fixed, but just save from the main article page, which works fine for me.
Also, you don't need the version from GitHub. As adamsmith said above, that was included with Zotero 2.1.8.
Ok Dan, thank you very much.
"Translators are rarely written to work when you're viewing a PDF", but worked before, hence my confusion. Will not do it again.
I know that previous versions of the translator supported adding a document into Zotero while viewing the PDF online. With the way I use IEEE Xplore I like to preview the paper first to see that it is what I'm looking, so that is usually the most convenient point.
While viewing the following link (I think any IEEE pdf should exhibit the same behaviour):
http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=278089
I get the following:
(4)(+0000000): Translate: Parsing code for IEEE Xplore
(3)(+0000001): Translate: Beginning translation with IEEE Xplore
(5)(+0000000): Translate: running handler 0 for done
(3)(+0000006): HTTP POST id=92d4ed84-8d0-4d3c-941f-d4b9124cfbb&lastUpdated=2011-06-04%2012%3A17%3A06&diagnostic=version%20%3D%3E%202.1.8%2C%20platform%20%3D%3E%20Win32%2C%20oscpu%20%3D%3E%20Windows%20NT%205.1%2C%20locale%20%3D%3E%20en-US%2C%20appName%20%3D%3E%20Firefox%2C%20appVersion%20%3D%3E%205.0.1%2C%20extensions%20%3D%3E%20Microsoft%20.NET%20Framework%20Assistant%20(1.1%2C%20extension)%2C%20Download%20Statusbar%20(0.9.8%2C%20extension)%2C%20Java%20Console%20(6.0.24%2C%20extension)%2C%20Java%20Quick%20Starter%20(1.0%2C%20extension)%2C%20Add%20Bookmark%20Here%20%C2%B2%20(4.0.20110615%2C%20extension)%2C%20Foxit%20Reader%20Plugin%20for%20Mozilla%20(2.1.1.720%2C%20plugin)%2C%20Mozilla%20ActiveX%20control%20and%20plugin%20support%20(1.0.0.4%2C%20plugin)%2C%20LizardTech%20DjVu%20(6.1.1.1574%2C%20plugin)%2C%20Microsoft%20Office%202003%20(11.0.8161.0%2C%20plugin)%2C%20QuickTime%20Plug-in%207.6%20(7.6.0.0%2C%20plugin)%2C%20Adobe%20Acrobat%20(10.0.1.434%2C%20plugin)%2C%20Java%20Deployment%20Toolkit%206.0.240.7%20(6.0.240.7%2C%20plugin)%2C%... (2198 chars) to http://www.zotero.org/repo/report
(4)(+0009123): Registering observer for [collection,search,share,group,bucket] in notifier with hash 92'
(5)(+0000001): SELECT itemTypeID AS id, typeName AS name, custom FROM itemTypesCombined WHERE display=2
(5)(+0000001): SELECT itemTypeID AS id, typeName AS name, custom FROM itemTypesCombined WHERE display=1
Adding this capability back into the translator would be appreciated.
I tried using the translator on github, I still doesn't work for me. I recently upgraded Firefox and therefore had to upgrade my zotero installation. The version # in the translator I had and the one I downloaded from github were the same.
Here's the software version #'s of what I'm using:
Zotero 2.1.8, Firefox 5.0.1, Acrobat plugin 10.0.1.434
Let me know if there is any other information you need.
(5)(+0000000): Translate: running handler 0 for done
(3)(+0000007): HTTP POST id=92d4ed84-8d0-4d3c-941f-d4b9124cfbb&lastUpdated=2011-06-04%2012%3A17%3A06&diagnostic=version%20%3D%3E%202.1.8%2C%20platform%20%3D%3E%20Win32%2C%20oscpu%20%3D%3E%20Windows%20NT%205.1%2C%20locale%20%3D%3E%20en-US%2C%20appName%20%3D%3E%20Firefox%2C%20appVersion%20%3D%3E%205.0.1%2C%20extensions%20%3D%3E%20Microsoft%20.NET%20Framework%20Assistant%20(1.1%2C%20extension)%2C%20Download%20Statusbar%20(0.9.8%2C%20extension)%2C%20Java%20Console%20(6.0.24%2C%20extension)%2C%20Java%20Quick%20Starter%20(1.0%2C%20extension)%2C%20Add%20Bookmark%20Here%20%C2%B2%20(4.0.20110615%2C%20extension)%2C%20Foxit%20Reader%20Plugin%20for%20Mozilla%20(2.1.1.720%2C%20plugin)%2C%20Mozilla%20ActiveX%20control%20and%20plugin%20support%20(1.0.0.4%2C%20plugin)%2C%20LizardTech%20DjVu%20(6.1.1.1574%2C%20plugin)%2C%20Microsoft%20Office%202003%20(11.0.8161.0%2C%20plugin)%2C%20QuickTime%20Plug-in%207.6%20(7.6.0.0%2C%20plugin)%2C%20Adobe%20Acrobat%20(10.0.1.434%2C%20plugin)%2C%20Java%20Deployment%20Toolkit%206.0.240.7%20(6.0.240.7%2C%20plugin)%2C%... (2198 chars) to http://www.zotero.org/repo/report
It sounds like you're running the translator from a different page than I expected. The debug output for a successful save looks like this:
(4)(+0003426): Translate: Parsing code for IEEE Xplore (3)(+0000007): Translate: Beginning translation with IEEE Xplore (3)(+0000019): created hidden browser (1) (3)(+0000000): loading http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=278089 (3)(+0003193): http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=278089 has been loaded (3)(+0000003): Translate: Ignoring meta tag: citation_author_institution => Dept. of Electr. & Electron. Eng., Auckland Univ. (3)(+0000005): Translate: Ignoring meta tag: null => text/html; charset=utf-8 (3)(+0000000): Translate: Ignoring meta tag: null => text/html; charset=utf-8 (3)(+0000017): created hidden browser (1) (3)(+0000000): loading http://ieeexplore.ieee.org/iel1/2196/6877/00278089.pdf?arnumber=278089 [... lots more ...]
It honestly looks like you're still using an outdated version of the translator. Save the newest translator from Github, and check the translator directory for any old copies of the IEEE translator; they could interfere here. Then restart Firefox and try again. As I said, I'm trying from the article at http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=278089&tag=1 -- try that one in particular, to minimize the variables in play.
http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=865189
The names of the authors are blank. Against the names, I see "(full name)" in zotero. All the other fields appear to be intact.
http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=1238663
Thanks.
http://www.sciencedirect.com/science/article/pii/S016763930200050X
and it does the right thing. When I click on "View Online", it takes me to the webpage of the article. I noticed that the ScienceDirect translator stores the webpage url in the "URL" attribute in zotero. I did not see any such attribute for articles downloaded from IEEE Xplore. Would that explain the difference? If so, would it be possible to add the URL attribute to the saved list of attributes? I am not sure how to do it myself. I looked at the ScienceDirect translator but could not figure out where it does it.
Thanks.
http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=1590227
in which the conference title is mentioned under "citation_conference".
The URL field is intended to be used only for URIs that resolve to stable representations of the item itself, usually on the site of the publisher. Thus it should be set for stable URLs of newspaper articles on their publishers' websites, and not set for most articles in journal databases. IEEE is an edge case, and we could go either way-- I opted to not include the URL because there are several candidate URLs (abs_all, etc.), and they don't seem particularly authoritative or stable. DOIs are a better choice for finding them in the future, since the URL structure of IEEE Xplore may well not prove stable.
ScienceDirect has not been significant modified in some time, and it is probably doing the wrong thing in including the URLs from the journal database.
I agree with you about the URL. DOI would certainly be a more stable option. Is DOI integration something that is being thought about?
Thank you for your great support.
I download and install the Github version, but fails too.
Report ID 1518733143
It's the IEEEXplore translator ready for FF5?
Thanks in advance for any help...
I use zotero 2.1.8, but with Firefox 3.6.18, in iMac (Snow Leopard 10.6.7)
http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=826740
I click the icon on the address bar with the preview of the PDF in a FF window (after click on Access Full Text icon in IEEEXplore site) and then fails.
But if I do it without the accessing the full text, then the translator works and the PDF it is saved.
The problem is when I try to add the item to Zotero clicking the icon in the address bar while reading the PDF in a window of FF. I remember it worked before.
The copy of the entire message is:
No chrome package registered for chrome://webclipper3/style/mac/webclipperOverlay.css
[JavaScript Error: "Translator with ID 92d4ed84-8d0-4d3c-941f-d4b9124cfbb already loaded from "IEEE Xplore.js"" {file: "file:///Users/raulbianchi/Documents/Docus_PDF/zotero/translators/IEEE%20Xplore.js.old" line: 0}]
[JavaScript Error: "TypeError: newItem.publicationTitle is undefined" {file: "file:///Users/raulbianchi/Documents/Docus_PDF/zotero/translators/IEEE%20Xplore.js" line: 0}]
[JavaScript Error: "TypeError: newItem.publicationTitle is undefined" {file: "file:///Users/raulbianchi/Documents/Docus_PDF/zotero/translators/IEEE%20Xplore.js" line: 0}]
It's possible in some way to add a screen copy to this forum, only to be more clear?
Also, you don't need the version from GitHub. As adamsmith said above, that was included with Zotero 2.1.8.
"Translators are rarely written to work when you're viewing a PDF", but worked before, hence my confusion. Will not do it again.
While viewing the following link (I think any IEEE pdf should exhibit the same behaviour):
http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=278089
I get the following:
(4)(+0000000): Translate: Parsing code for IEEE Xplore
(3)(+0000001): Translate: Beginning translation with IEEE Xplore
(3)(+0000005): created hidden browser (1)
(3)(+0000000): loading http://ieeexplore.ieee.org/ielx1/2196/6877/00278089.pdf?tp=&arnumber=278089&isnumber=6877
(3)(+0000412): http://ieeexplore.ieee.org/ielx1/2196/6877/00278089.pdf?tp=&arnumber=278089&isnumber=6877 has been loaded
(3)(+0000002): deleted hidden browser
(2)(+0000000): Translate: Translation using IEEE Xplore failed:
message => newItem.publicationTitle is undefined
fileName => chrome://zotero/content/xpcom/translation/browser_firefox.js
lineNumber => 322
stack => scrape([object Proxy])@chrome://zotero/content/xpcom/translation/browser_firefox.js:322
@:0
name => TypeError
url => http://ieeexplore.ieee.org/ielx1/2196/6877/00278089.pdf?tp=&arnumber=278089&isnumber=6877
downloadAssociatedFiles => true
automaticSnapshots => true
(5)(+0000000): Translate: running handler 0 for done
(3)(+0000006): HTTP POST id=92d4ed84-8d0-4d3c-941f-d4b9124cfbb&lastUpdated=2011-06-04%2012%3A17%3A06&diagnostic=version%20%3D%3E%202.1.8%2C%20platform%20%3D%3E%20Win32%2C%20oscpu%20%3D%3E%20Windows%20NT%205.1%2C%20locale%20%3D%3E%20en-US%2C%20appName%20%3D%3E%20Firefox%2C%20appVersion%20%3D%3E%205.0.1%2C%20extensions%20%3D%3E%20Microsoft%20.NET%20Framework%20Assistant%20(1.1%2C%20extension)%2C%20Download%20Statusbar%20(0.9.8%2C%20extension)%2C%20Java%20Console%20(6.0.24%2C%20extension)%2C%20Java%20Quick%20Starter%20(1.0%2C%20extension)%2C%20Add%20Bookmark%20Here%20%C2%B2%20(4.0.20110615%2C%20extension)%2C%20Foxit%20Reader%20Plugin%20for%20Mozilla%20(2.1.1.720%2C%20plugin)%2C%20Mozilla%20ActiveX%20control%20and%20plugin%20support%20(1.0.0.4%2C%20plugin)%2C%20LizardTech%20DjVu%20(6.1.1.1574%2C%20plugin)%2C%20Microsoft%20Office%202003%20(11.0.8161.0%2C%20plugin)%2C%20QuickTime%20Plug-in%207.6%20(7.6.0.0%2C%20plugin)%2C%20Adobe%20Acrobat%20(10.0.1.434%2C%20plugin)%2C%20Java%20Deployment%20Toolkit%206.0.240.7%20(6.0.240.7%2C%20plugin)%2C%... (2198 chars) to http://www.zotero.org/repo/report
(4)(+0009123): Registering observer for [collection,search,share,group,bucket] in notifier with hash 92'
(5)(+0000001): SELECT itemTypeID AS id, typeName AS name, custom FROM itemTypesCombined WHERE display=2
(5)(+0000001): SELECT itemTypeID AS id, typeName AS name, custom FROM itemTypesCombined WHERE display=1
Adding this capability back into the translator would be appreciated.
Cheers,
David
It should start working again. If this works for you, please post here.
Here's the software version #'s of what I'm using:
Zotero 2.1.8, Firefox 5.0.1, Acrobat plugin 10.0.1.434
Let me know if there is any other information you need.
David
(4)(+0000000): Translate: Parsing code for IEEE Xplore
(3)(+0000002): Translate: Beginning translation with IEEE Xplore
(3)(+0000003): created hidden browser (1)
(3)(+0000001): loading http://ieeexplore.ieee.org/ielx1/2196/6877/00278089.pdf?tp=&arnumber=278089&isnumber=6877
(3)(+0000305): http://ieeexplore.ieee.org/ielx1/2196/6877/00278089.pdf?tp=&arnumber=278089&isnumber=6877 has been loaded
(3)(+0000002): deleted hidden browser
(2)(+0000000): Translate: Translation using IEEE Xplore failed:
message => newItem.publicationTitle is undefined
fileName => chrome://zotero/content/xpcom/translation/browser_firefox.js
lineNumber => 322
stack => scrape([object Proxy])@chrome://zotero/content/xpcom/translation/browser_firefox.js:322
@:0
name => TypeError
url => http://ieeexplore.ieee.org/ielx1/2196/6877/00278089.pdf?tp=&arnumber=278089&isnumber=6877
downloadAssociatedFiles => true
automaticSnapshots => true
(5)(+0000000): Translate: running handler 0 for done
(3)(+0000007): HTTP POST id=92d4ed84-8d0-4d3c-941f-d4b9124cfbb&lastUpdated=2011-06-04%2012%3A17%3A06&diagnostic=version%20%3D%3E%202.1.8%2C%20platform%20%3D%3E%20Win32%2C%20oscpu%20%3D%3E%20Windows%20NT%205.1%2C%20locale%20%3D%3E%20en-US%2C%20appName%20%3D%3E%20Firefox%2C%20appVersion%20%3D%3E%205.0.1%2C%20extensions%20%3D%3E%20Microsoft%20.NET%20Framework%20Assistant%20(1.1%2C%20extension)%2C%20Download%20Statusbar%20(0.9.8%2C%20extension)%2C%20Java%20Console%20(6.0.24%2C%20extension)%2C%20Java%20Quick%20Starter%20(1.0%2C%20extension)%2C%20Add%20Bookmark%20Here%20%C2%B2%20(4.0.20110615%2C%20extension)%2C%20Foxit%20Reader%20Plugin%20for%20Mozilla%20(2.1.1.720%2C%20plugin)%2C%20Mozilla%20ActiveX%20control%20and%20plugin%20support%20(1.0.0.4%2C%20plugin)%2C%20LizardTech%20DjVu%20(6.1.1.1574%2C%20plugin)%2C%20Microsoft%20Office%202003%20(11.0.8161.0%2C%20plugin)%2C%20QuickTime%20Plug-in%207.6%20(7.6.0.0%2C%20plugin)%2C%20Adobe%20Acrobat%20(10.0.1.434%2C%20plugin)%2C%20Java%20Deployment%20Toolkit%206.0.240.7%20(6.0.240.7%2C%20plugin)%2C%... (2198 chars) to http://www.zotero.org/repo/report