hack the freepatentsonline's translator
I find the freepatentsonline(www.freepatentsonline.com) translator does not work very well, because some pages are not formated very well. For example, there are not "<div class='disp_elm_title'>text</div> "at Title and DocumentType section in the source codes of some old pages. This problem could be solved by register an ID of the website. After login, all pages will be formated very well. But some places in the freepatentsonline translator need to be fix.
open the freepatentsonline.js in profiles\zotero\translators
1. change all "disp_doc2" to "disp_doc"
2. find the "associateData (newItem, dataTags, "Abstract:", "abstract");" change abstract to abstractNote, "associateData (newItem, dataTags, "Abstract:", "abstractNote");"
3(optional). add
dataTags["Abstract:"]=dataTags["Abstract:"].replace(/\s\s\s.*$/g,'');
in function scrape(doc, url), this will remove the google ad in abstract.
After these steps, zotero works very well in freepatentsonline pages.
If there are something wrong, please let me know.
open the freepatentsonline.js in profiles\zotero\translators
1. change all "disp_doc2" to "disp_doc"
2. find the "associateData (newItem, dataTags, "Abstract:", "abstract");" change abstract to abstractNote, "associateData (newItem, dataTags, "Abstract:", "abstractNote");"
3(optional). add
dataTags["Abstract:"]=dataTags["Abstract:"].replace(/\s\s\s.*$/g,'');
in function scrape(doc, url), this will remove the google ad in abstract.
After these steps, zotero works very well in freepatentsonline pages.
If there are something wrong, please let me know.
This is an old discussion that has not been active in a long time. Instead of commenting here, you should start a new discussion. If you think the content of this discussion is still relevant, you can link to it from your new discussion.
I couldn't open the .js to edit it as you outline above. I get the following:
Script: c:\Documents and Settings\Charles\Application\Data\Mocilla\Firefox\Profiles\hkwjqva5.default\zotero\translators\FreePatentsOnline.js
Line: 2
Char: 16
Error: Expected ';'
Code: 800A03EC
Source: Microsoft jScript compilation error
This is not my bag so could you please help. I read in the zotero documentation that it imported BibTex and so I exported a bunch of patent bibliographies (from freepatentsonline) as BibTex.txt but then zotero says it doesn't recognize the format. So I came across your thread and tried to edit the .js file. That's where I am stuck.
Charles