Inter Research import fails
I tried to import the following reference from an inter research journal into zotero and it failed:
http://www.int-res.com/abstracts/meps/v347/p127-138/
The error message (also in bug report #1351574521) was:
Error: TypeError: doc.evaluate("//div[@class=\"abs-footer\"]", doc, null, XPathResult.ANY_TYPE, null).iterateNext().textContent.match(/date:\s+(.*)P/) is null
Source File: file:///home/dmk/docs/refs/zotero/translators/Inter-Research%20Science%20Center.js
Line: 0
http://www.int-res.com/abstracts/meps/v347/p127-138/
The error message (also in bug report #1351574521) was:
Error: TypeError: doc.evaluate("//div[@class=\"abs-footer\"]", doc, null, XPathResult.ANY_TYPE, null).iterateNext().textContent.match(/date:\s+(.*)P/) is null
Source File: file:///home/dmk/docs/refs/zotero/translators/Inter-Research%20Science%20Center.js
Line: 0
http://www.int-res.com/abstracts/meps/v393/p173-183/
Rooting around in the translator, I made a couple of changes to fix importation of the date and the DOI of a reference and it now works fine for me. I would like to contribute this back to zotero, but I don't think I have svn permissions for the translators (I do have it for the csl files). Therefore, I have placed the modified translator on a website:
http://www.ur097.ird.fr/team/dkaplan/personal/inter-research-science-center.js
Note that I have changed the name of the file to make the link simple.
Cheers,
David