From bd21a76e7209e7b59b847a1bb99b8c2e33d7cd31 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Fri, 31 May 2024 14:00:37 +0300 Subject: [PATCH] [master --- src/app/openaireLibrary | 2 +- src/app/shared/irish.ts | 25 ++++++++++++++++++++++++- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/src/app/openaireLibrary b/src/app/openaireLibrary index ea5275d..2b2aaed 160000 --- a/src/app/openaireLibrary +++ b/src/app/openaireLibrary @@ -1 +1 @@ -Subproject commit ea5275da2dafb10b650f9af66ae4ca029055c5bb +Subproject commit 2b2aaed2b80f2c5a9a15adf0da4d352c546ab541 diff --git a/src/app/shared/irish.ts b/src/app/shared/irish.ts index 1f10091..d2a1315 100644 --- a/src/app/shared/irish.ts +++ b/src/app/shared/irish.ts @@ -6,6 +6,7 @@ import {Stakeholder} from "../openaireLibrary/monitor/entities/stakeholder"; import {LinksResolver} from "../search/links-resolver"; import {BelongsTo} from "../openaireLibrary/utils/entities/resultLandingInfo"; import {properties} from "../../environments/environment"; +import {OpenaireEntities} from "../openaireLibrary/utils/properties/searchFields"; export class Irish { public static irishAdminToolsPortalType = "country"; @@ -68,7 +69,29 @@ export class Irish { ], message: 'This ((result)) is not specific to Ireland. For more details, please visit ' + 'OpenAIRE Explore.' - } + }; + BelongsTo.project = { + fields: [ + {path: ['organizations', 'country'], value: 'Ireland'}, + {path: ['funding', 'funderJurisdiction'], value: 'IE'} + ], + message: 'This ' + OpenaireEntities.PROJECT + ' is not specific to Ireland. For more details, please visit ' + + 'OpenAIRE Explore.' + }; + BelongsTo.organization = { + fields: [ + {path: ['country'], value: 'Ireland'} + ], + message: 'This ' + OpenaireEntities.ORGANIZATION + ' is not specific to Ireland. For more details, please visit ' + + 'OpenAIRE Explore.' + }; + BelongsTo.datasource = { + fields: [ + {path: ['countries'], value: 'Ireland'} + ], + message: 'This ' + OpenaireEntities.DATASOURCE + ' is not specific to Ireland. For more details, please visit ' + + 'OpenAIRE Explore.' + }; } public static initializeOAIndicators(): void {