[Library]: searchResult.ts & result-preview.ts: Added field objId: string; | searchResearchResults.service.ts: Set in parsing objId | result-preview.component.html: Updated link to Bip Finder - use objId (openaire id) instead of id (pid related).
This commit is contained in:
parent
1f30f9d88a
commit
cb57b78351
|
@ -315,6 +315,7 @@ export class SearchResearchResultsService {
|
|||
}
|
||||
|
||||
result['id'] = Array.isArray(data) ? data[i]['result']['header']['dri:objIdentifier'] : data['result']['header']['dri:objIdentifier'];
|
||||
result['objId'] = result['id'];
|
||||
let canId = ParsingFunctions.parseRelCanonicalId(Array.isArray(data) ? data[i] : data, "result");
|
||||
if (canId) {
|
||||
result['id'] = canId;
|
||||
|
|
|
@ -4,6 +4,7 @@ export class SearchResult {
|
|||
title: ResultTitle;
|
||||
id: string;
|
||||
relcanId: string;
|
||||
objId: string;
|
||||
DOIs: string[]=[];
|
||||
identifiers: Map<string, string[]>;
|
||||
measure: Array<string>;
|
||||
|
|
|
@ -346,7 +346,7 @@
|
|||
Popularity: Citation-based measure reflecting the current impact.
|
||||
</div>
|
||||
<div>
|
||||
<a title="Link to Bip!Finder" class="uk-float-right" target="_blank" href="https://bip.imis.athena-innovation.gr/site/details?id={{result.id}}">
|
||||
<a title="Link to Bip!Finder" class="uk-float-right" target="_blank" href="https://bip.imis.athena-innovation.gr/site/details?id={{result.objId}}">
|
||||
View more details
|
||||
</a>
|
||||
</div>
|
||||
|
@ -385,7 +385,7 @@
|
|||
Influence: Citation-based measure reflecting the total impact.
|
||||
</div>
|
||||
<div>
|
||||
<a title="Link to Bip!Finder" class=" uk-float-right" target="_blank" href="https://bip.imis.athena-innovation.gr/site/details?id={{result.id}}">
|
||||
<a title="Link to Bip!Finder" class=" uk-float-right" target="_blank" href="https://bip.imis.athena-innovation.gr/site/details?id={{result.objId}}">
|
||||
View more details
|
||||
</a>
|
||||
</div>
|
||||
|
|
|
@ -72,6 +72,7 @@ export interface Organization {
|
|||
}
|
||||
|
||||
export class ResultPreview {
|
||||
objId: string;
|
||||
relcanId: string;
|
||||
id: string;
|
||||
title: string;
|
||||
|
@ -146,6 +147,7 @@ export class ResultPreview {
|
|||
let resultPreview: ResultPreview = new ResultPreview();
|
||||
resultPreview.id = result.id;
|
||||
resultPreview.relcanId = result.relcanId;
|
||||
resultPreview.objId = result.objId;
|
||||
resultPreview.title = result.title.name;
|
||||
resultPreview.accessMode = result.title.accessMode;
|
||||
// resultPreview.sc39 = result.title.sc39;
|
||||
|
|
Loading…
Reference in New Issue