From c30611f3a7502748caa7d0fb2bfe2d9aa1751cfd Mon Sep 17 00:00:00 2001 From: "argiro.kokogiannaki" Date: Fri, 14 Jun 2019 13:14:22 +0000 Subject: [PATCH] [Aggregator|Trunk] Add more numbers in home page Add pages for projects and content providers Remove checks for admin tool community Id Set community in properties as null git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-aggregator-portal/trunk@56093 d315682c-612b-4755-9ff5-7f18f6832af3 --- src/app/app.component.ts | 16 +- src/app/app.module.ts | 2 +- src/app/home/home.component.html | 530 ++++++++++-------- src/app/home/home.component.ts | 8 +- .../dataProvider-routing.module.ts | 2 +- .../dataset/dataset-routing.module.ts | 2 +- .../organization-routing.module.ts | 2 +- .../landingPages/orp/orp-routing.module.ts | 2 +- .../project/project-routing.module.ts | 2 +- .../publication/publication-routing.module.ts | 2 +- ...ancedSearchDataProviders-routing.module.ts | 2 +- .../advancedSearchDataProviders.component.ts | 29 +- .../advancedSearchDatasets-routing.module.ts | 2 +- ...ancedSearchOrganizations-routing.module.ts | 2 +- .../advancedSearchOrps-routing.module.ts | 2 +- .../advancedSearchProjects-routing.module.ts | 2 +- .../advancedSearchProjects.component.ts | 17 +- ...vancedSearchPublications-routing.module.ts | 2 +- .../advancedSearchSoftware-routing.module.ts | 1 - .../searchDataProviders-routing.module.ts | 2 +- .../simple/searchDataproviders.component.ts | 23 +- .../simple/searchDatasets-routing.module.ts | 2 +- .../searchOrganizations-routing.module.ts | 2 +- .../simple/searchOrps-routing.module.ts | 2 +- .../simple/searchProjects-routing.module.ts | 2 +- .../simple/searchProjects.component.ts | 17 +- .../searchPublications-routing.module.ts | 2 +- src/app/utils/aggregatorNavBar.component.ts | 126 ++--- src/assets/env-properties.json | 4 +- 29 files changed, 456 insertions(+), 353 deletions(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index b9cf9f5..97e5eee 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -43,14 +43,14 @@ export class AppComponent { menuItems: RootMenuItem [] = [ {rootItem: new MenuItem("home", "Home", "", "/", false, [], null, {}), items: []}, { - rootItem: new MenuItem("search", "Search", "", "/search/find", false, [], ["/search/find"], {}), - items: [new MenuItem("", "Publications", "", "/search/find/publications", false, ["publication"], ["/search/find/publications"], {}), - new MenuItem("", "Research Data", "", "/search/find/datasets", false, ["dataset"], ["/search/find/datasets"], {}), - new MenuItem("", "Software", "", "/search/find/software", false, ["software"], ["/search/find/software"], {}), - new MenuItem("", "Other Research Products", "", "/search/find/other", false, ["orp"], ["/search/find/other"], {}), - // new MenuItem("", "Projects", "", "/search/find/projects/", false, ["project"], ["/search/find/projects"], {}), - // new MenuItem("", "Content Providers", "", "/search/find/dataproviders", false, ["datasource"], ["/search/find/dataproviders"], {}), - new MenuItem("", "Organizations", "", "/search/find/organizations/", false, ["organization"], ["/search/find/organizations"], {}) + rootItem: new MenuItem("search", "Search", "", "/search/find", false, [], [], {}), + items: [new MenuItem("", "Publications", "", "/search/find/publications", false, [], [], {}), + new MenuItem("", "Research Data", "", "/search/find/datasets", false, [], [], {}), + new MenuItem("", "Software", "", "/search/find/software", false, [], [], {}), + new MenuItem("", "Other Research Products", "", "/search/find/other", false, [], [], {}), + new MenuItem("", "Projects", "", "/search/find/projects/", false, [], [], {}), + new MenuItem("", "Content Providers", "", "/search/find/dataproviders", false, [], [], {}), + new MenuItem("", "Organizations", "", "/search/find/organizations/", false, [], [], {}) ] } ]; diff --git a/src/app/app.module.ts b/src/app/app.module.ts index a4b6108..033bd18 100755 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -17,7 +17,7 @@ import {ErrorModule} from './openaireLibrary/error/error.module'; import {OpenaireErrorPageComponent} from './error/errorPage.component'; import {AppRoutingModule} from './app-routing.module'; -import {AggregatorNavBarComponent} from "./utils/aggregatorNavBar.component"; +// import {AggregatorNavBarComponent} from "./utils/aggregatorNavBar.component"; @NgModule({ diff --git a/src/app/home/home.component.html b/src/app/home/home.component.html index 005e995..a57509d 100644 --- a/src/app/home/home.component.html +++ b/src/app/home/home.component.html @@ -1,250 +1,300 @@ - -
-
+
+
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
-
-

- Search for more than - {{publicationsSize.number|number}} - {{publicationsSize.size}} publications{{((showDatasets||showSoftware||showOrp)?",":"")}} - {{datasetsSize.number|number}} - {{datasetsSize.size}} research data{{((showSoftware ||showOrp)?",":"")}} - {{softwareSize.number|number}} - {{softwareSize.size}} software{{(showOrp?",":"")}} - {{otherSize.number|number}} - {{otherSize.size}} other research products -
- from {{organizationsSize.number |number}} - {{organizationsSize.size}} organizations - - from {{datasourcesSize.number |number}} {{datasourcesSize.size}} content providers - {{((showDataProviders && datasourcesSize)?" and ":" from ")}} {{fundersSize.number|number}} {{fundersSize.size}} funders - -

-
- - -
-
-
- -
-
-
- - - - - - +
+
+
+
+
+ +
+ Search for more than + + + {{publicationsSize.number|number}}{{publicationsSize.size}} + {{((showDatasets || showSoftware || showOrp) ? " publications, " + : " publications ")}} + + + {{datasetsSize.number|number}}{{datasetsSize.size}} + {{((showSoftware || showOrp) ? " research data, " : " research data ")}} + + + {{otherSize.number|number}}{{otherSize.size}} + {{((showSoftware) ? " other research products, " : " other research products ")}} + + + {{softwareSize.number|number}}{{softwareSize.size}} + software + + +
+ + from + {{organizationsSize.number|number}}{{organizationsSize.size}} + organizations + + + {{((showOrganizations && showOrganizations) ? " and " : " from ")}} + {{datasourcesSize.number|number}}{{datasourcesSize.size}} + content providers + + + {{((showDataProviders && datasourcesSize) ? " and " : " from ")}} + {{fundersSize.number|number}}{{fundersSize.size}} + funders + + + linked together for an integrated research search + +
+
+ + +
+
+
+ +
+ + + + + + + +