From cb56e684f69512c6ed566d373e803c6c8d7ae7af Mon Sep 17 00:00:00 2001 From: "argiro.kokogiannaki" Date: Thu, 28 Jan 2021 09:45:22 +0000 Subject: [PATCH] [Aggregator |trunk] - add graph section text for Canada - remove lorem ipsum git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-aggregator-portal/trunk@60305 d315682c-612b-4755-9ff5-7f18f6832af3 --- src/app/home/home.component.html | 24 +++++++++++------------- src/app/home/home.component.ts | 3 ++- src/app/utils/aggregators.ts | 24 ++++++++++++++++++++++-- 3 files changed, 35 insertions(+), 16 deletions(-) diff --git a/src/app/home/home.component.html b/src/app/home/home.component.html index 6fc2f1d..b0c1c72 100644 --- a/src/app/home/home.component.html +++ b/src/app/home/home.component.html @@ -66,25 +66,23 @@ -
+
-
Lorem ipsum dolor sit amet
- -

The OpenAIRE Research Graph - ... lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et - dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum +

{{aggregator.graphSectionTitle}}
+

-
- - - - - - +
+
+ Read more +
+
+ Read less +
+
diff --git a/src/app/home/home.component.ts b/src/app/home/home.component.ts index 93f3ba1..fad34ac 100644 --- a/src/app/home/home.component.ts +++ b/src/app/home/home.component.ts @@ -25,6 +25,7 @@ import {SearchCustomFilter} from "../openaireLibrary/searchPages/searchUtils/sea import {properties} from "../../environments/environment"; import {portalProperties} from "../../environments/environment-aggregator"; import {StringUtils} from "../openaireLibrary/utils/string-utils.class"; +import {ConnectHelper} from "../openaireLibrary/connect/connectHelper"; @Component({ selector: 'home', @@ -88,7 +89,7 @@ export class HomeComponent { private config: ConfigurationService, private _meta: Meta, private _title: Title, private seoService: SEOService, private helper: HelperService ) { - this.aggregatorId = this.route.snapshot.paramMap.get('id'); + this.aggregatorId = ConnectHelper.getCommunityFromDomain(properties.domain); this.aggregator = PortalAggregators.getFilterInfoByMenuId(this.aggregatorId); this.customFilter = PortalAggregators.getSearchCustomFilterByAggregator(this.aggregator); let description = "OpenAIRE Explore: Over 100M of research deduplicated, 170K research software, 11M research data. One of the largest open scholarly records collection worldwide."; diff --git a/src/app/utils/aggregators.ts b/src/app/utils/aggregators.ts index 0ede707..dd1372a 100644 --- a/src/app/utils/aggregators.ts +++ b/src/app/utils/aggregators.ts @@ -12,8 +12,11 @@ export class AggregatorInfo { mainColor:string; darkColor:string; background:string; + graphSectionTitle: string; + graphSectionText: string; - constructor(menuId: string, title: string, logoUrl: string, fieldName: string, queryFieldName: string, valueId: string, valueName: string, mainColor:string=null, darkColor:string=null, background:string=null) { + constructor(menuId: string, title: string, logoUrl: string, fieldName: string, queryFieldName: string, valueId: string, + valueName: string, mainColor:string=null, darkColor:string=null, background:string=null,graphSectionTitle: string = null, graphSectionText:string = null ) { this.menuId = menuId; this.title = title; this.logoUrl = logoUrl; @@ -24,12 +27,29 @@ export class AggregatorInfo { this.mainColor = mainColor; this.darkColor = darkColor; this.background = background; + this.graphSectionTitle = graphSectionTitle; + this.graphSectionText = graphSectionText; } } export class PortalAggregators { static list: AggregatorInfo[] = [ - new AggregatorInfo("canada", "Canadian Aggregator", "assets/canada-logo.png", "Country", "country", "CA", "Canada","#E80000","#ad0000", "/assets/canada-background.svg" ), + new AggregatorInfo("canada", "Canadian Aggregator", "assets/canada-logo.png", "Country", "country", "CA", "Canada","#E80000","#ad0000", "/assets/canada-background.svg", + "Portal to Canadian Research Outputs", ` + Welcome to the beta Portal to Canadian Research Outputs, which has been developed as part of a + collaboration between CARL and OpenAIRE as part of the OpenAIRE Advance Project. The portal enables users + to search and browse Canadian content that is included in the OpenAIRE aggregation. The number of + research products is expected to grow in 2021 as more Canadian repositories become compliant with + OpenAIRE guidelines and Canadian affiliation information is enhanced. For more information, visit the + CARL website. + +
+ + Bienvenue sur la version bêta du portail des résultats de la recherche canadienne, qui a été développé dans le cadre d'une collaboration entre l'ABRC et OpenAIRE dans le contexte du projet OpenAIRE Advance. Le portail permet aux utilisateurs de repérer et de parcourir le contenu canadien inclus sur la plateforme OpenAIRE. La quantité des résultats de la recherche canadienne disponible sur la plateforme augmentera tout au long de l'année 2021 au fur et à mesure que les dépôts canadiens se conformeront aux directives d'OpenAIRE et que les détails relatifs aux affiliations canadiennes seront améliorés. Pour plus d'informations, + veuillez visiter le site Web de l’ABRC. + `), new AggregatorInfo("italy", "Italian Aggregator", "assets/common-assets/logo-small-aggregator.png", "Country", "country", "IT", "Italy"), new AggregatorInfo("greece", "Greek Aggregator", "assets/common-assets/logo-small-aggregator.png", "Country", "country", "GR", "Greece"),