Closed ulli-steiner closed 6 years ago
It seems that there is an issue with orcid.js. It fails at the following routine:
client.apis["Public API v2.0_rc4"].viewActivities({orcid:orcidID}, function(data) { if (data && data.obj && data.obj.works) console.log(data.obj.works.group.length + " works found"); var simpleWorks = orcid.activitiesToSimpleWorks(data); if (oneByOne) orcid.fetchCiteprocJSONForSimpleWorksOneByOne(simpleWorks,resolveCiteproc); else orcid.fetchCiteprocJSONForSimpleWorks(simpleWorks,resolveCiteproc); });
With the message:
Uncaught TypeError: Cannot read property 'viewActivities' of undefined
PR #7 should fix this issue. If you remove "_rc4" from the file and use the 2.0 API it should work as expected.
fixed and merged
It seems that there is an issue with orcid.js. It fails at the following routine:
With the message:
Uncaught TypeError: Cannot read property 'viewActivities' of undefined