Revision 58450
Added by Konstantinos Triantafyllou about 4 years ago
searchResearchResults.service.ts | ||
---|---|---|
169 | 169 |
this.parsingFunctions.parseTypes(result.types, types, instance); |
170 | 170 |
} |
171 | 171 |
/////////////////////////// Athena Code /////////////////////////// |
172 |
for(let i=0; i<resData['pid'].length; i++){ |
|
173 |
if(resData['pid'][i].classid == 'doi'){ |
|
174 |
if(resData['pid'][i].content != '' && resData['pid'][i].content != null){ |
|
175 |
result.DOI = resData['pid'][i].content.replace("https://doi.org/",""); |
|
176 |
break; |
|
172 |
if(resData['pid']) { |
|
173 |
for(let i=0; i<resData['pid'].length; i++){ |
|
174 |
if(resData['pid'][i].classid == 'doi'){ |
|
175 |
if(resData['pid'][i].content != '' && resData['pid'][i].content != null){ |
|
176 |
result.DOI = resData['pid'][i].content.replace("https://doi.org/",""); |
|
177 |
break; |
|
178 |
} |
|
177 | 179 |
} |
178 | 180 |
} |
179 | 181 |
} |
Also available in: Unified diff
[Library | Trunk]: SearchResultService: Add an if condition to check if pid exists on the results