scholar.js icon indicating copy to clipboard operation
scholar.js copied to clipboard

Uncaught TypeError: Cannot read property 'replace' of undefined

Open tsantalis opened this issue 8 years ago • 2 comments

Very useful project. I tried to use it for my Google Scholar profile, but I am getting the following error

Uncaught TypeError: Cannot read property 'replace' of undefined at Object.success (scholar.min.js:8) at i (jquery-2.2.0.min.js:2) at Object.fireWith [as resolveWith] (jquery-2.2.0.min.js:2) at z (jquery-2.2.0.min.js:4) at HTMLScriptElement.c (jquery-2.2.0.min.js:4) at HTMLScriptElement.dispatch (jquery-2.2.0.min.js:3) at HTMLScriptElement.r.handle (jquery-2.2.0.min.js:3)

tsantalis avatar Aug 29 '17 09:08 tsantalis

I used the Ajax Cross Origin JQuery Plugin with a local PHP proxy and everything works great!

Live demo Here is the updated scholar.js I also added some code to get to the total number of citations, and h-index

tsantalis avatar Sep 03 '17 15:09 tsantalis

thanks @tsantalis , your fix works like a charm for me

dcoeurjo avatar Nov 10 '17 07:11 dcoeurjo