2011/3/11 Josh (EP) <jge...@ebscohost.com>:
> Attached is a patch to account for the fact that our form tag will change a
> bit in June. Our form will now look like the following on the detail page,
> so it had to be accounted for in the translator. This patch is against the
> Zotero 2.0 branch.
[..]
> Oddly enough I can't get this translator to work on the Mac against our
> existing pages, although it seems to work fine on Windows. Before committing
> this patch can you verify Zotero + this patch works against the existing
> EBSCOhost interface in your environment?
I ran into problems under Linux as well, so I did some more tweaking
-- I feel like it has to do with the escaping of the persistent link
URI, but I'm not sure. A revised translator that should work on the
new system, and which has a slightly less fragile regular expression
for the download URI, is up at Github:
https://github.com/ajlyon/zotero-bits/raw/master/EBSCOhost.js
Please try it out. If it passes muster, I'll get it into the repo right away.
Avram
Looks good. My patched version is now at
http://github.com/ajlyon/zotero-bits/raw/master/EBSCOhost.js -- please
confirm that this works on the updated EBSCO that's on its way, and
I'll get this into the repo ASAP, so clients have it before the switch
on your end.
And apologies for dropping off the translator review radar there for a bit.
Avram
On Wed, Jul 20, 2011 at 10:19 PM, Josh (EP) <jrge...@gmail.com> wrote:
> I was alerted to some issues with interface changes we made that will break
> Zotero. We are releasing a new version of EBSCOhost today. I have attached a
> new version of the translator that should work. I am wondering if there is a
> better way than using retrieveDocument, but I need data from the result list
> to pass into the next function for the next page. Let me know what you
> think.
I changed the translator to use ZU.processDocuments(..) instead of
retrieveDocument(..), so that it works in the Safari and Chrome
connectors after their imminent update.
Take a look at make sure it works on the new site:
http://github.com/ajlyon/translators/raw/master/EBSCOhost.js
I'll commit it as soon as you tell me that it works (since I can't
test it until the new interface is rolled out).
Thanks for being so proactive on this-- it's a pleasure!
Avram
I just pushed an updated version to my fork on github:
https://github.com/ajlyon/translators/commit/fb34ca3559db176a88b5cdaf873123142df4594b
It's a little hard to program in the dark, but that should work if
there aren't any redirects happening on the EBSCO side of things.
Worst case, we can push the retrieveDocument version now, and find a
solution later that supports connectors. The current generation of
connectors runs everything inside Standalone anyway, so it'll work
fine for now.
Avram
I've pushed a new version that recurses more intelligently, I think:
https://github.com/ajlyon/translators/commit/af029e501e3cf571a343f72fa52ce3f6aad1986d
Avram
I won't be able to do any more work on this until tomorrow-- it's late
here in Russia. I think we can roll this out as is for now, and push
an additional update as soon as I get a chance to troubleshoot, or you
find a solution.
Dan: Can you push the updated version from the main branch on Github to clients?
It'd also be great if we could get 2.1.9 out the door soon, so I don't
have to maintain 2.1.8 compatibility in translators...
Avram
The syntax error was mainly because I was trying to code this at 2 am
local time... Thanks for catching it, and thanks for addressing the
line number issue. Now we can finally bring back error highlighting in
Scaffold.
Has this been pushed yet?
Avram
It's been pushed.