[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['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");
|
let canId = ParsingFunctions.parseRelCanonicalId(Array.isArray(data) ? data[i] : data, "result");
|
||||||
if (canId) {
|
if (canId) {
|
||||||
result['id'] = canId;
|
result['id'] = canId;
|
||||||
|
|
|
@ -4,6 +4,7 @@ export class SearchResult {
|
||||||
title: ResultTitle;
|
title: ResultTitle;
|
||||||
id: string;
|
id: string;
|
||||||
relcanId: string;
|
relcanId: string;
|
||||||
|
objId: string;
|
||||||
DOIs: string[]=[];
|
DOIs: string[]=[];
|
||||||
identifiers: Map<string, string[]>;
|
identifiers: Map<string, string[]>;
|
||||||
measure: Array<string>;
|
measure: Array<string>;
|
||||||
|
|
|
@ -346,7 +346,7 @@
|
||||||
Popularity: Citation-based measure reflecting the current impact.
|
Popularity: Citation-based measure reflecting the current impact.
|
||||||
</div>
|
</div>
|
||||||
<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
|
View more details
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -385,7 +385,7 @@
|
||||||
Influence: Citation-based measure reflecting the total impact.
|
Influence: Citation-based measure reflecting the total impact.
|
||||||
</div>
|
</div>
|
||||||
<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
|
View more details
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -72,6 +72,7 @@ export interface Organization {
|
||||||
}
|
}
|
||||||
|
|
||||||
export class ResultPreview {
|
export class ResultPreview {
|
||||||
|
objId: string;
|
||||||
relcanId: string;
|
relcanId: string;
|
||||||
id: string;
|
id: string;
|
||||||
title: string;
|
title: string;
|
||||||
|
@ -146,6 +147,7 @@ export class ResultPreview {
|
||||||
let resultPreview: ResultPreview = new ResultPreview();
|
let resultPreview: ResultPreview = new ResultPreview();
|
||||||
resultPreview.id = result.id;
|
resultPreview.id = result.id;
|
||||||
resultPreview.relcanId = result.relcanId;
|
resultPreview.relcanId = result.relcanId;
|
||||||
|
resultPreview.objId = result.objId;
|
||||||
resultPreview.title = result.title.name;
|
resultPreview.title = result.title.name;
|
||||||
resultPreview.accessMode = result.title.accessMode;
|
resultPreview.accessMode = result.title.accessMode;
|
||||||
// resultPreview.sc39 = result.title.sc39;
|
// resultPreview.sc39 = result.title.sc39;
|
||||||
|
|
Loading…
Reference in New Issue