From a4912542c0ef603e471ec8b972da6577887b0fb4 Mon Sep 17 00:00:00 2001 From: "konstantina.galouni" Date: Thu, 19 May 2022 18:35:59 +0300 Subject: [PATCH] [Aggregator & Library | new-theme]: Hide datasources in eosc & Do not show compatibility "Not yet registered" in services. 1. app.component.ts: [Bug fix] Add services search page in menu items if "service" entity is enabled (not datasource". 2. aggregators.ts: Added "datasource" entity and "/search/find/datasources" page in disabled list for eosc. 3. result-preview.component.html: a. Do not show "Not yet registered" compatibility label in services. b. For eosc, show in datasources "Not yet registered in OpenAIRE". 4. quick-selections.component.ts: Changed uk-child-width-auto@l to uk-child-width-auto@m (not nice in medium screens for 2 types). 5. newSearchPage.component.ts: "Include" filter name for services changed to "Other Services" --- searchPages/searchUtils/newSearchPage.component.ts | 2 +- searchPages/searchUtils/quick-selections.component.ts | 2 +- utils/result-preview/result-preview.component.html | 9 +++++---- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/searchPages/searchUtils/newSearchPage.component.ts b/searchPages/searchUtils/newSearchPage.component.ts index bf15377f..c99ddae0 100644 --- a/searchPages/searchUtils/newSearchPage.component.ts +++ b/searchPages/searchUtils/newSearchPage.component.ts @@ -97,7 +97,7 @@ export class NewSearchPageComponent { }; serviceTypeOptions = { "datasources": {"id": "datasource", "name": OpenaireEntities.DATASOURCES}, - "services": {"id": "service", "name": OpenaireEntities.SERVICES} + "services": {"id": "service", "name": "Other "+OpenaireEntities.SERVICES} } selectedTypesNum = 0; @Input() quickFilter: { filter: Filter, selected: boolean, filterId: string, value: string }; diff --git a/searchPages/searchUtils/quick-selections.component.ts b/searchPages/searchUtils/quick-selections.component.ts index 7c4d778f..ef1ed181 100644 --- a/searchPages/searchUtils/quick-selections.component.ts +++ b/searchPages/searchUtils/quick-selections.component.ts @@ -19,7 +19,7 @@ import {OpenaireEntities} from "../../utils/properties/searchFields";
Include:
-
+
diff --git a/utils/result-preview/result-preview.component.html b/utils/result-preview/result-preview.component.html index 946ee444..20743ad6 100644 --- a/utils/result-preview/result-preview.component.html +++ b/utils/result-preview/result-preview.component.html @@ -137,10 +137,11 @@ class="uk-label" title="Compatibility"> {{result.compatibility}} {{' '}} - - Not yet registered + + Not yet registered in OpenAIRE {{' '}}