Revision 60623
Added by Konstantina Galouni over 3 years ago
modules/uoa-services-library/trunk/ng-openaire-library/src/app/services/searchResearchResults.service.ts | ||
---|---|---|
320 | 320 |
for (let i = 0; i < length; i++) { |
321 | 321 |
let author = Array.isArray(authors) ? authors[i] : authors; |
322 | 322 |
if (author) { |
323 |
if(author.orcid) { |
|
324 |
author.orcid = author.orcid.toUpperCase(); |
|
325 |
} |
|
326 |
if(author.orcid_pending) { |
|
327 |
author.orcid_pending = author.orcid_pending.toUpperCase(); |
|
328 |
} |
|
323 | 329 |
result['authors'][author.rank] = { |
324 | 330 |
"fullName": author.content, |
325 | 331 |
"orcid": author.orcid, |
modules/uoa-services-library/trunk/ng-openaire-library/src/app/landingPages/result/resultLanding.service.ts | ||
---|---|---|
349 | 349 |
for(let i=0; i<length; i++) { |
350 | 350 |
let author = Array.isArray(authors) ? authors[i] : authors; |
351 | 351 |
if(author) { |
352 |
if(author.orcid) { |
|
353 |
author.orcid = author.orcid.toUpperCase(); |
|
354 |
} |
|
355 |
if(author.orcid_pending) { |
|
356 |
author.orcid_pending = author.orcid_pending.toUpperCase(); |
|
357 |
} |
|
352 | 358 |
this.resultLandingInfo['authors'][author.rank] = {"fullName": author.content, "orcid": author.orcid, "orcid_pending": author.orcid_pending}; |
353 | 359 |
} |
354 | 360 |
} |
modules/uoa-services-library/trunk/ng-openaire-library/src/app/landingPages/result/deletedByInference/deletedByInference.service.ts | ||
---|---|---|
146 | 146 |
/*if (author.orcid && author.orcid.indexOf(properties.orcidURL) != -1) { |
147 | 147 |
author.orcid = author.orcid.substr(properties.orcidURL.length); |
148 | 148 |
}*/ |
149 |
if(author.orcid) { |
|
150 |
author.orcid = author.orcid.toUpperCase(); |
|
151 |
} |
|
152 |
if(author.orcid_pending) { |
|
153 |
author.orcid_pending = author.orcid_pending.toUpperCase(); |
|
154 |
} |
|
149 | 155 |
result['authors'][author.rank] = {"fullName": author.content, "orcid": author.orcid, "orcid_pending": author.orcid_pending}; |
150 | 156 |
} |
151 | 157 |
} |
Also available in: Unified diff
[Trunk | Library]: deletedByInference.service.ts & resultLanding.service.ts & searchResearchResults.service.ts: [Bug fix] In parsing <creator> before setting orcid and orcid_pending fields call .toUpperCase().