Possible error in chrome://zotero/content/xpcom/translation/translate.js

Hi,

When testing out this translator:

https://gist.github.com/969751

I get the following error:

zotero(2): Translate: Translation using Washington Monthly failed:
message => title.indexOf is not a function
fileName => chrome://zotero/content/xpcom/translation/translate.js
lineNumber => 343
stack => ([object Object],[object Proxy])@chrome://zotero/content/xpcom/translation/translate.js:343
([object Proxy])@chrome://zotero/content/xpcom/translation/browser_firefox.js:112
@:0

Report ID: 802351434
  • Sorry, should add, this is a URL which, when trying to translate, generates the error:
    http://www.washingtonmonthly.com/archives/individual/2009_11/021135.php
  • See my post on zotero-dev. This just the error triggered by the missing title.
  • Erik - isn't that just the error Zotero throws when it can't find a title? I get that all the time when testing. Maybe try
    title : FW.Xpath('//div[@class="blogbody"]//p/child::*').text().remove(/\.\.\.\./).capitalizeTitle().trim(),
    For the Blogpost Old title xpath instead -
    but that may have it's own problems - don't have a computer to test at the moment. Generally I'd say let's move this to the dev list to the WM translator thread I opened, no need to bother the general publish with xpath geekyness.
This discussion has been closed.