From 52f5134b863f52e95da6c8a9c35ee54c17174878 Mon Sep 17 00:00:00 2001 From: "konstantina.galouni" Date: Fri, 15 Feb 2019 12:42:40 +0000 Subject: [PATCH] [trunk]: Library: Content Provider Landing page: Remove 'Metrics' tab from 'entityregistry', 'entityregistry::projects', 'entityregistry::repositories' types git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@54824 d315682c-612b-4755-9ff5-7f18f6832af3 --- .../dataProvider/dataProvider.service.ts | 6 ++++-- utils/entities/dataProviderInfo.ts | 18 ++++++++---------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/landingPages/dataProvider/dataProvider.service.ts b/landingPages/dataProvider/dataProvider.service.ts index 940bed5d..dc1b38b7 100644 --- a/landingPages/dataProvider/dataProvider.service.ts +++ b/landingPages/dataProvider/dataProvider.service.ts @@ -135,8 +135,10 @@ export class DataProviderService { this.dataProviderInfo.tabs2.push("Other Research Products"); } - this.dataProviderInfo.tabs.push({"name": "Metrics", "content": "metricsTab"}); - this.dataProviderInfo.tabs2.push("Metrics"); + if(this.dataProviderInfo.tabsInTypes.metricsTab.has(data[1].classid)) { + this.dataProviderInfo.tabs.push({"name": "Metrics", "content": "metricsTab"}); + this.dataProviderInfo.tabs2.push("Metrics"); + } if(this.dataProviderInfo.resultTypes.collectedFrom.has(data[1].classid)) { this.dataProviderInfo.resultsBy = "collectedFrom"; diff --git a/utils/entities/dataProviderInfo.ts b/utils/entities/dataProviderInfo.ts index 1dda23d4..d80d5037 100644 --- a/utils/entities/dataProviderInfo.ts +++ b/utils/entities/dataProviderInfo.ts @@ -110,9 +110,7 @@ export class DataProviderInfo { "softwarerepository", "aggregator::softwarerepository", "orprepository" - ]) - /* - , + ]), "metricsTab": new Set( [ "aggregator::datarepository", "aggregator::pubsrepository::institutional", @@ -120,19 +118,19 @@ export class DataProviderInfo { "aggregator::pubsrepository::journals", "crissystem", "datarepository::unknown", + "infospace", "pubsrepository::institutional", "pubsrepository::journal", + "websource", "pubsrepository::unknown", + "scholarcomminfra", "pubsrepository::thematic", "pubscatalogue::unknown", - - "infospace", - "scholarcomminfra", - "entityregistry", - "entityregistry::projects", - "entityregistry::repositories" + "softwarerepository", + "aggregator::softwarerepository", + "orprepository" ]) - */ + }; resultsBy: string;