Revision 57989
Added by Konstantina Galouni over 4 years ago
resultLanding.service.ts | ||
---|---|---|
190 | 190 |
} |
191 | 191 |
|
192 | 192 |
if(data[3].hasOwnProperty("externalreference")) { |
193 |
let externalResults: [Map<string, Map<string, string>>, { "name": string, "url": string}[]] = this.parseBioentitiesAndSoftware(data[3]); |
|
194 |
this.resultLandingInfo.bioentities = externalResults[0]; |
|
195 |
this.resultLandingInfo.software = externalResults[1]; |
|
193 |
let externalResults: Map<string, Map<string, string>> = this.parseBioentitiesAndSoftware(data[3]); |
|
194 |
this.resultLandingInfo.bioentities = externalResults; |
|
196 | 195 |
} |
197 | 196 |
} |
198 | 197 |
|
... | ... | |
325 | 324 |
return organizations; |
326 | 325 |
} |
327 | 326 |
|
328 |
parseBioentitiesAndSoftware(children: any) : [Map<string, Map<string, string>>, { "name": string, "url": string}[]] {
|
|
327 |
parseBioentitiesAndSoftware(children: any) : Map<string, Map<string, string>> {
|
|
329 | 328 |
let bioentities: Map<string, Map<string, string>>; |
330 |
let software: {"name": string, "url": string}[]; |
|
331 | 329 |
|
332 | 330 |
let length = Array.isArray(children['externalreference']) ? children['externalreference'].length : 1; |
333 | 331 |
|
... | ... | |
347 | 345 |
} |
348 | 346 |
bioentities.get(externalreference.sitename).set(externalreference.refidentifier, externalreference.url); |
349 | 347 |
|
350 |
} else if(externalreference['qualifier'].classid == "software") { |
|
351 |
|
|
352 |
if(software == undefined) { |
|
353 |
software = new Array<{"name": string, "url": string}>(); |
|
354 |
} |
|
355 |
|
|
356 |
software.push({"name": externalreference.sitename, "url": externalreference.url}); |
|
357 | 348 |
} |
358 | 349 |
} |
359 | 350 |
} |
360 | 351 |
|
361 |
return [bioentities, software];
|
|
352 |
return bioentities;
|
|
362 | 353 |
} |
363 | 354 |
|
364 | 355 |
getOpenCitations(id: string, properties:EnvProperties) { |
Also available in: Unified diff
[Trunk | Library]:
1. showIdentifiers.component.ts: Rename "Related identifiers" to "Identifiers".
2. organization.component.html & organization.component.ts & resultLanding.component.html & resultLanding.component.ts: Rename "Original versions" to "Other versions".
3. resultLanding.component.html & resultLanding.component.ts & resultLanding.service.ts & resultLandingInfo.ts:
Remove accordion "Software" from the bottom of the page (implementation of mining that used to return them, is removed).