Skip to content

Commit

Permalink
Merge pull request #1141 from romanchyla/orcid-profile-fix
Browse files Browse the repository at this point in the history
Fix for the orcid profile not being displayed
  • Loading branch information
romanchyla authored Jan 18, 2017
2 parents 38bd445 + a1fb99a commit 64959d5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/js/modules/orcid/orcid_api.js
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,9 @@ define([
_.each(orcidWorks, function(w, idx) {
if (w['work-external-identifiers'] && w['work-external-identifiers']['work-external-identifier']) {
_.each(w['work-external-identifiers']['work-external-identifier'], function(el) {
ret[el['work-external-identifier-id']['value']] = {idx: idx, type: el['work-external-identifier-type'], "put-code": w['put-code']};
if (el['work-external-identifier-id'] && el['work-external-identifier-id']['value']) {
ret[el['work-external-identifier-id']['value']] = {idx: idx, type: el['work-external-identifier-type'], "put-code": w['put-code']};
}
});
}
});
Expand Down

0 comments on commit 64959d5

Please sign in to comment.