From 5fbdac1dc3d43ae72a6b9fff510f707f4b597f24 Mon Sep 17 00:00:00 2001 From: "konstantina.galouni" Date: Wed, 18 May 2022 12:31:46 +0300 Subject: [PATCH] [Explore & Library | new-theme]: Fixes for orcid dropdown in authors and increase timeout for addThis check for warning. 1. app.component.ts: [Bug fix] First menu item under "Search", set to OpenaireEntities.RESULTS. 2. searchFields.ts: Renamed OpenaireEntities.DATASOURCE to "Data source". 3. addThis.component.ts: [Bug fix] Check for showing warning was missing a not (!). --- landingPages/landing-utils/addThis.component.ts | 2 +- utils/properties/searchFields.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/landingPages/landing-utils/addThis.component.ts b/landingPages/landing-utils/addThis.component.ts index 88224fb9..fdd89ac0 100644 --- a/landingPages/landing-utils/addThis.component.ts +++ b/landingPages/landing-utils/addThis.component.ts @@ -77,7 +77,7 @@ export class AddThisComponent implements OnInit { } } this.subs.push(setTimeout(() => { - if(this.document.getElementById('addThis') && this.document.getElementById('addThis').innerText){ + if(this.document.getElementById('addThis') && !this.document.getElementById('addThis').innerText){ this.showWarning = true; } }, 4000)); diff --git a/utils/properties/searchFields.ts b/utils/properties/searchFields.ts index f65f5089..bff91562 100644 --- a/utils/properties/searchFields.ts +++ b/utils/properties/searchFields.ts @@ -779,7 +779,7 @@ export enum OpenaireEntities { OTHER = "Other research products", PROJECTS = "Projects", ORGANIZATIONS = "Organizations", - DATASOURCES = "Datasources", + DATASOURCES = "Data sources", SERVICES = "Services", COMMUNITIES = "Research communities", @@ -790,7 +790,7 @@ export enum OpenaireEntities { OTHER_SINGULAR = "Other research product", PROJECT = "Project", ORGANIZATION = "Organization", - DATASOURCE = "Datasource", + DATASOURCE = "Data source", SERVICE = "Service", COMMUNITY = "Research community", @@ -801,6 +801,6 @@ export enum OpenaireEntities { OTHER_FILE = "other-research-products", PROJECTS_FILE = "projects", ORGANIZATIONS_FILE = "organizations", - DATASOURCES_FILE = "datasources", + DATASOURCES_FILE = "data-sources", SERVICES_FILE = "services", }