Informaworld Translator Error

This morning I could not save an Informaworld article from

http://www.informaworld.com/smpp/content~db=all?content=10.1207/S15326985EP3801_4

Using the newest versions of Zotero/FF, the FF error console spits out the following error when I try to import the article:
Error: TypeError: newDoc.evaluate("//table[@id=\"tabbar_table\"]//td//a[@title = \"Article\"]", newDoc, null, XPathResult.ANY_TYPE, null).iterateNext() is null
Source file: file:///D:/MyData/Dataset%201/Zotero/translators/Informaworld.js
Line: 0
followed by several
Error: uncaught exception: [Exception... "Illegal operation on WrappedNative prototype object" nsresult: "0x8057000c (NS_ERROR_XPC_BAD_OP_ON_WN_PROTO)" location: "JS frame :: chrome://zotero/content/xpcom/progressWindow.js :: _disableTimeout :: line 310" data: no]
errors.
«1
  • edited May 3, 2010
    This was due to a very small change in the Informaworld navigation bar. Please go to http://github.com/ajlyon/zotero-bits/raw/master/Informaworld.js and save the file to the translators directory of your Zotero data directory (http://www.zotero.org/support/zotero_data).

    It should start working again. If this works for you, please post here so that I can submit this one-line change to be pushed to all users.
  • Works! Thank you very much for your quick reply!
  • Mmm.... I just tried to import another article from Informaworld, but another Javascript error ruined my day :(
  • This was due to a very small change in the Informaworld PDF link location. Please go to http://github.com/ajlyon/zotero-bits/raw/master/Informaworld.js and save the file to the translators directory of your Zotero data directory (http://www.zotero.org/support/zotero_data).

    It should start working again. If this works for you, please post here so that I can submit this change to be pushed to all users.
  • I have experienced the same issues today, also with two Informaworld pages. I tried the saving the translator file directly into my Zotero data directory, but this did not help. I restarted Firefox, and an update was loaded, but no improvement. I have submitted an error report (645136900).
  • You will need to save the file to the translators folder inside your Zotero data directory.

    If it still doesn't work, please post the URL that you can't save.

    @Dan, could you look at the error report and see if this is just an issue with attaching PDFs?
  • edited May 7, 2010
    Yes, jonnogreen is getting the same error as rekcor above.
  • I experienced a similar problem with infomaworld today.
    After updating the translator with ajlyon's version above and restarting Firefox it worked (sorry I didn't see this thread before, but maybe this result might still be helpful in some way)

    Original errormsg was (ReportID: 1820248588):

    [JavaScript Error: "TypeError: newDoc.evaluate("//div[@id=\"content\"]/div/a[1]", newDoc, null, XPathResult.ANY_TYPE, null).iterateNext() is null" {file: "file:///Users/johannes/Library/Application%20Support/Firefox/Profiles/43u191sm.default/zotero/translators/Informaworld.js" line: 0}]
  • I haven't tried overwriting the data file again, but this is the URL (one of two from Informaworld) that I am unable to save <http://www.informaworld.com/smpp/content~content=a713661533&db=all>;
  • Well, that URL works for me using the updated translator. I believe you put the downloaded translator file in the wrong place-- please put it in the translators directory and try again.
  • Okay that did work. Interestingly, as I did previously, I simply overwrote the existing file in 'Translators'. Once done, I tried to save the citation to Zotero, and got the "failed' notice. I then went to the other citation, that was successful, so I went back to the first, and that succeeded on the second attempt!

    Thanks for helping with this.

    P.S. I am on a MacBook Pro 17" running Firefox 3.6.3
  • Yes -- you at least would have to reload the page before the new translator would work.
  • Still does not work for me on OSX 10.6.3, Firefox 3.6.3, Zotero 2.0.3 and the Informaworld.js from this thread. I restarted Firefox, reloaded the page - no success. Does any of the articles in this volume work for you? http://www.informaworld.com/smpp/title~db=all~content=g922087997~tab=toc
  • I too am unable to save any article from that link: others have been working fine, but have not tried any in the last couple of days, so not sure if an update has been loaded (don't think so). I have the same OS and software versions as you.
  • @ajlyon: your patch worked for me, thank you very much!

    @jonnogreen: did you save http://github.com/ajlyon/zotero-bits/raw/master/Informaworld.js to the Translators directory of your Zotero data directory? Did you then close all Firefox instances and restarted the browser?
  • edited May 11, 2010
    @daoane: the articles you provided do not work:
    Error: item has no title
    Source: file:///D:/MyData/Dataset%201/Zotero/translators/Informaworld.js
    Line: 0
  • The problem with that item seems to be in how the Zotero RIS translator parses the RIS data that it gets from Informaworld:
    (4)(+0000679): Translate: RT Journal
    JF GFF
    T1 New exposures of Baltic Ice Lake drainage sediments, Götene, Sweden
    PB Taylor & Francis
    A1 Johnson, Mark D.
    A1 Ståhl, Ylva
    A1 Larsson, Olof
    A1 Seger, Stefan
    SN 1103-5897
    YR 2010
    VO 132
    IS 1
    SP 1
    LK http://www.informaworld.com/10.1080/11035891003597067
    RD May 11, 2010
    (4)(+0000001): Translate: Binding sandbox to http://www.example.com/
    (4)(+0000000): Translate: Parsing code for RIS
    (4)(+0000003): Translate: Setting configure option dataMode to line
    (4)(+0000000): Translate: Setting display option exportNotes to true
    (4)(+0000000): Translate: Setting display option exportCharset to UTF-8
    (4)(+0000001): Translate: tag: 'TY'; data: 'Journal'
    (4)(+0000000): Translate: tag: 'JF'; data: 'GFF - T1 - New exposures of Baltic Ice Lake drainage sediments, Götene, Sweden'

    For a reason that isn't immediately apparent, the T1 field is being processed as the continuation of the JF field. As I have approximately no experience with RIS, I don't know why this is happening. Perhaps an RIS guru in the house could look into fixing this?
  • Thanks @ajlyon and Zotero! I'm a brand new user and most impressed that I could find help to fix this problem so quickly after running into it. Much appreciated.
  • @ajlyon

    thanks for this fix. I applied it an it seems to be working now.
  • I've pushed the updated translators. Thanks to ajlyon for the fix.

    ajlyon: I haven't looked into it, but maybe an issue of the newline used after "GFF"? Just a guess.
  • I can't save an item from informaworld:

    http://info.library.unsw.edu.au/cgi-bin/local/access/ej-access.cgi?url=http://www.informaworld.com/openurl?genre=journal&issn=0307-5079&volume=34&issue=4

    Here is the error report: 791141168

    Does the problem relate to the discussion above and if so what do I need to do to rectify? (sorry- I am struggling to understand the discussion above and am rather inept technically!).
  • That item is a full journal issue; Zotero doesn't have a good way of modeling issues of journals (or volumes, or entire journals), so translators don't try to save them.

    The discussion above is about a small bug that prevents some (one, so far) items from saving.
  • Although that URL goes to the issue it is the same URL for the individual article that I am trying to save so have now gone into 'View article online' and it works. Thanks.
  • ajlyon: I haven't looked into it, but maybe an issue of the newline used after "GFF"? Just a guess.
    I still haven't managed to figure out the root cause here, but I am able to use "Download Citation" to get the article to import correctly, for both Refman and Endnote formats.

    Not sure what the issue is here, but it appears to be a rather limited one.
  • I'm also having Informaworld problems - can't save the following item

    http://www.informaworld.com/smpp/content~db=all?content=10.1080/01442350601084562

    And it's definitely trying to use the Informaworld translator...

    Error report: 1536638774, Firefox 2.0.0.13, Zotero 1.0.10, Linux 2.6.24.2.

    Thanks
  • You need to upgrade to a newer version of Firefox and Zotero. Zotero 1.0 translators are not supported-- you'll find that many of them are broken.

    Upgrade to Firefox 3.6.3 (the current release) and Zotero 2.0.3 (the current release), and many, many things will start to work better.

    See http://www.zotero.org/support/2.0#upgrading_from_zotero_1.0 for Zotero upgrade instructions.
  • Following up on the report http://forums.zotero.org/discussion/13664/, I noticed that there was an easily overlooked flaw in the translator -- it was asking Informaworld for Refworks-style data, but treating it like Refman-style (RIS) data.
    As always, please go to http://github.com/ajlyon/zotero-bits/raw/master/Informaworld.js and save the file to the translators directory of your Zotero data directory (http://www.zotero.org/support/zotero_data).

    This addresses both daoane's problem and peval's problem from the linked thread. Please try out the updated version and post here if it works for you. I'll submit it to the Zotero repository to be pushed to clients if it does.
  • edited September 20, 2010
    Think it's broken again.

    Try here:

    http://www.informaworld.com/smpp/title~content=g926983316~db=all

    and here

    http://www.informaworld.com/smpp/content~db=all~content=a926979871~frm=titlelink

    Where I got this error:
    [JavaScript Error: "TypeError: newDoc.evaluate("//div[@id=\"content\"]/div/a[1]", newDoc, null, XPathResult.ANY_TYPE, null).iterateNext() is null" {file: "file:///home/jon/Documents/zotero/translators/Informaworld.js" line: 0}]

    report id: 938878068
  • That will need to be looked into. The first is a journal table of contents, which might just not be properly supported, but we may be able to add support. The second really should work and I'll see if I can't get it working.
  • Same error as Jon Rubin here, while trying to import http://www.informaworld.com/smpp/content~db=all~content=a780731933

    Error: TypeError: newDoc.evaluate("//div[@id=\"content\"]/div/a[1]", newDoc, null, XPathResult.ANY_TYPE, null).iterateNext() is null
    Source: file:///D:/MyData/Dataset%201/Zotero/translators/Informaworld.js
    Line: 0

    However, using the 'Download citation' link on the top-right, worked for me!

    (I selected 'Endnote Direct Export', 'Citation and Abstract', 'Download File' on the next screen)
Sign In or Register to comment.