[angular-16-irish-monitor | ADDED]: Add originalId to datasources results in order to use it for provide.
This commit is contained in:
parent
bc4e30c3f2
commit
f81f5d7bfb
|
@ -36,6 +36,7 @@ export class Stakeholder {
|
||||||
isUpload: boolean = false;
|
isUpload: boolean = false;
|
||||||
description: string;
|
description: string;
|
||||||
topics: any[];
|
topics: any[];
|
||||||
|
details?: any;
|
||||||
|
|
||||||
constructor(_id: string, type: StakeholderType, index_id: string, index_name: string, index_shortName: string, alias: string, visibility: Visibility, logoUrl: string, defaultId: string = null, description: string = null) {
|
constructor(_id: string, type: StakeholderType, index_id: string, index_name: string, index_shortName: string, alias: string, visibility: Visibility, logoUrl: string, defaultId: string = null, description: string = null) {
|
||||||
this._id = _id;
|
this._id = _id;
|
||||||
|
|
|
@ -116,7 +116,7 @@ export class SearchDataprovidersService {
|
||||||
} else {
|
} else {
|
||||||
result['englishname'] = "";
|
result['englishname'] = "";
|
||||||
}
|
}
|
||||||
|
result['originalId'] = resData.originalId;
|
||||||
//result['title'].url = OpenaireProperties.getsearchLinkToDataProvider();
|
//result['title'].url = OpenaireProperties.getsearchLinkToDataProvider();
|
||||||
//result['title'].url += Array.isArray(data) ? data[i]['result']['header']['dri:objIdentifier'] : data['result']['header']['dri:objIdentifier'];
|
//result['title'].url += 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['id'] = Array.isArray(data) ? data[i]['result']['header']['dri:objIdentifier'] : data['result']['header']['dri:objIdentifier'];
|
||||||
|
|
|
@ -69,6 +69,7 @@ export class SearchResult {
|
||||||
compatibilityUNKNOWN: boolean;
|
compatibilityUNKNOWN: boolean;
|
||||||
countries: string[];
|
countries: string[];
|
||||||
subjects: string[];
|
subjects: string[];
|
||||||
|
originalId: string;
|
||||||
|
|
||||||
entityType: string;
|
entityType: string;
|
||||||
types: string[];
|
types: string[];
|
||||||
|
|
Loading…
Reference in New Issue