This commit is contained in:
Konstantinos Triantafyllou 2024-05-31 14:00:37 +03:00
parent 4f18099557
commit bd21a76e72
2 changed files with 25 additions and 2 deletions

@ -1 +1 @@
Subproject commit ea5275da2dafb10b650f9af66ae4ca029055c5bb Subproject commit 2b2aaed2b80f2c5a9a15adf0da4d352c546ab541

View File

@ -6,6 +6,7 @@ import {Stakeholder} from "../openaireLibrary/monitor/entities/stakeholder";
import {LinksResolver} from "../search/links-resolver"; import {LinksResolver} from "../search/links-resolver";
import {BelongsTo} from "../openaireLibrary/utils/entities/resultLandingInfo"; import {BelongsTo} from "../openaireLibrary/utils/entities/resultLandingInfo";
import {properties} from "../../environments/environment"; import {properties} from "../../environments/environment";
import {OpenaireEntities} from "../openaireLibrary/utils/properties/searchFields";
export class Irish { export class Irish {
public static irishAdminToolsPortalType = "country"; public static irishAdminToolsPortalType = "country";
@ -68,7 +69,29 @@ export class Irish {
], ],
message: 'This ((result)) is not specific to Ireland. For more details, please visit ' + message: 'This ((result)) is not specific to Ireland. For more details, please visit ' +
'<a href="https://' + (properties.environment !== 'production' ? 'beta.' : '') + 'explore.openaire.eu/search/result?((type_id))=((id))" target="_blank">OpenAIRE Explore.</a>' '<a href="https://' + (properties.environment !== 'production' ? 'beta.' : '') + 'explore.openaire.eu/search/result?((type_id))=((id))" target="_blank">OpenAIRE Explore.</a>'
} };
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 ' +
'<a href="https://' + (properties.environment !== 'production' ? 'beta.' : '') + 'explore.openaire.eu/search/project?projectId=((id))" target="_blank">OpenAIRE Explore.</a>'
};
BelongsTo.organization = {
fields: [
{path: ['country'], value: 'Ireland'}
],
message: 'This ' + OpenaireEntities.ORGANIZATION + ' is not specific to Ireland. For more details, please visit ' +
'<a href="https://' + (properties.environment !== 'production' ? 'beta.' : '') + 'explore.openaire.eu/search/organization?organizationId=((id))" target="_blank">OpenAIRE Explore.</a>'
};
BelongsTo.datasource = {
fields: [
{path: ['countries'], value: 'Ireland'}
],
message: 'This ' + OpenaireEntities.DATASOURCE + ' is not specific to Ireland. For more details, please visit ' +
'<a href="https://' + (properties.environment !== 'production' ? 'beta.' : '') + 'explore.openaire.eu/search/dataprovider?datasourceId=((id))" target="_blank">OpenAIRE Explore.</a>'
};
} }
public static initializeOAIndicators(): void { public static initializeOAIndicators(): void {