New Espacenet translator

28 views
Skip to first unread message

Edouard

unread,
May 5, 2011, 4:46:20 AM5/5/11
to zotero-dev
Hi everyone,

I've updated the xpath definitions in the espacenet translator to make
it work on the new espacenet website (http://worldwide.espacenet.com).

https://gist.github.com/951329

Any comments are welcome,

Edouard.

Avram Lyon

unread,
May 5, 2011, 11:13:11 AM5/5/11
to zoter...@googlegroups.com
On Thu, May 5, 2011 at 12:46 PM, Edouard <edol...@gmail.com> wrote:
> I've updated the xpath definitions in the espacenet translator to make
> it work on the new espacenet website (http://worldwide.espacenet.com).
>
> https://gist.github.com/951329

Thanks!

I've made some small changes, the revised version is at:
http://github.com/ajlyon/zotero-bits/raw/master/ESpacenet.js

Changes:
1. Escape the full stops (.) in the target regex so they aren't
interpreted as wildcards;
2. Call scrape(doc,url) directly on single-page saves to save a request;
3. Use Zotero.Utilities.capitalizeTitle() to fix capitalization
(better handling of non-capitalized words)

I'd also like to add you, Edouard, to the contributors-- do you have a
last name I can put in the author field?

Avram

Edouard

unread,
May 5, 2011, 12:04:45 PM5/5/11
to zotero-dev
Yes, Leroy.

On May 5, 5:13 pm, Avram Lyon <ajl...@gmail.com> wrote:

Avram Lyon

unread,
May 6, 2011, 6:50:38 AM5/6/11
to zoter...@googlegroups.com
Committed to repository.
https://www.zotero.org/trac/changeset/9169

Thanks again for working this out!

> --
> You received this message because you are subscribed to the Google Groups "zotero-dev" group.
> To post to this group, send email to zoter...@googlegroups.com.
> To unsubscribe from this group, send email to zotero-dev+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/zotero-dev?hl=en.
>
>

Reply all
Reply to author
Forward
0 new messages