From dfb98fffccbf2b13446e558a1cc4266b5ce6ab5f Mon Sep 17 00:00:00 2001 From: "konstantina.galouni" Date: Sun, 31 May 2020 13:44:52 +0000 Subject: [PATCH] [Trunk | Library]: dataProvider.component & organization.component & project.component: Use (common view for tabs with search results) - also used in community first page. git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@58813 d315682c-612b-4755-9ff5-7f18f6832af3 --- .../dataProvider/dataProvider.component.html | 156 ++++++------- .../dataProvider/dataProvider.module.ts | 6 +- .../organization/organization.component.html | 100 ++++----- .../organization/organization.component.ts | 8 + .../organization/organization.module.ts | 8 +- landingPages/project/project.component.html | 206 +++++++----------- landingPages/project/project.module.ts | 5 +- 7 files changed, 218 insertions(+), 271 deletions(-) diff --git a/landingPages/dataProvider/dataProvider.component.html b/landingPages/dataProvider/dataProvider.component.html index 328d429e..14f5a4fc 100644 --- a/landingPages/dataProvider/dataProvider.component.html +++ b/landingPages/dataProvider/dataProvider.component.html @@ -1,52 +1,52 @@ - - -
- -
-
+ + + + + + + + + + + + + + + + + - - + + + + -
-
- Recent - {{getEntityName(type, true, true)}} -
- + + + + + + + + + + + - - + + + + + - -
-
+ + + + + + + +
@@ -623,23 +623,25 @@
- - + +
+
- - + +
+
@@ -660,45 +662,49 @@
- - + +
+
- - + +
+
- - + +
+
- - + +
+
diff --git a/landingPages/dataProvider/dataProvider.module.ts b/landingPages/dataProvider/dataProvider.module.ts index 657c24d9..a31a9ba0 100644 --- a/landingPages/dataProvider/dataProvider.module.ts +++ b/landingPages/dataProvider/dataProvider.module.ts @@ -20,7 +20,6 @@ import {ProjectsTabComponent} from './projectsTab.component'; import {DatasourcesTabComponent} from './datasourcesTab.component'; import {OrganizationsTabComponent} from './organizationsTab.component'; import {RelatedDatasourcesTabComponent} from './relatedDatasourcesTab.component'; -// import {TabsComponent} from './tabs.component'; import {DataProviderComponent} from './dataProvider.component'; import {DataProviderService} from './dataProvider.service'; @@ -38,9 +37,8 @@ import {LandingHeaderModule} from "../landing-utils/landing-header/landing-heade import {AlertModalModule} from "../../utils/modal/alertModal.module"; import {NoLoadPaging} from "../../searchPages/searchUtils/no-load-paging.module"; import {FeedbackModule} from "../feedback/feedback.module"; -//import {ResultPreviewModule} from "../../utils/result-preview/result-preview.module"; import {TabsModule} from "../../utils/tabs/tabs.module"; -import {SearchResultsModule} from "../../searchPages/searchUtils/searchResults.module"; +import {SearchTabModule} from "../../utils/tabs/contents/search-tab.module"; @NgModule({ imports: @@ -49,7 +47,7 @@ import {SearchResultsModule} from "../../searchPages/searchUtils/searchResults.m DataProvidersServiceModule, ProjectsServiceModule, SearchResearchResultsServiceModule, PagingModule, Schema2jsonldModule, SEOServiceModule, ShowPublisherModule, HelperModule, LandingHeaderModule, AlertModalModule, NoLoadPaging, FeedbackModule, - TabsModule, SearchResultsModule//, ResultPreviewModule + TabsModule, SearchTabModule ], declarations: [PublicationsTabComponent, DatasetsTabComponent, StatisticsTabComponent, ProjectsTabComponent, DatasourcesTabComponent, OrganizationsTabComponent, diff --git a/landingPages/organization/organization.component.html b/landingPages/organization/organization.component.html index 5f817dbc..29db5490 100644 --- a/landingPages/organization/organization.component.html +++ b/landingPages/organization/organization.component.html @@ -1,25 +1,25 @@ - - -
-
- - Top {{searchNumber}}{{getEntityName(type, true, true)}} - - - - -
- + + + + + + + + + + + + + + + + + + - -
-
+ + +
@@ -121,27 +121,11 @@
- -
-
- - Top {{searchNumber}}content providers - - - - -
- - -
+ +
@@ -149,9 +133,11 @@
- - + +
@@ -159,9 +145,11 @@
- - + +
@@ -169,9 +157,11 @@
- - + +
@@ -179,9 +169,11 @@
- - + +
diff --git a/landingPages/organization/organization.component.ts b/landingPages/organization/organization.component.ts index 05a1ba63..e4e5b1b7 100644 --- a/landingPages/organization/organization.component.ts +++ b/landingPages/organization/organization.component.ts @@ -614,6 +614,14 @@ export class OrganizationComponent { this.downloadFunderReportModal.alertTitle = "Download funder report"; this.downloadFunderReportModal.open(); } + + public getParamsForSearchLink(type: string = "") { + if(type) { + return this.routerHelper.createQueryParams(['f0', 'fv0', 'type', 'qf', 'sortBy'], ['relorganizationid', this.organizationId, type, 'false', 'resultdateofacceptance,descending']); + } else { + return this.routerHelper.createQueryParams(['f0', 'fv0'], ['relorganizationid', this.organizationId]); + } + } public onSelectActiveTab(activeTabId) { if (this.activeTab != activeTabId) { // tab really changed diff --git a/landingPages/organization/organization.module.ts b/landingPages/organization/organization.module.ts index 67b3c417..508fea1d 100644 --- a/landingPages/organization/organization.module.ts +++ b/landingPages/organization/organization.module.ts @@ -26,9 +26,9 @@ import {OrganizationsDeletedByInferenceModule} from "./deletedByInference/delete import {LandingHeaderModule} from "../landing-utils/landing-header/landing-header.module"; import {FeedbackModule} from "../feedback/feedback.module"; import {MatSelectModule} from "@angular/material/select"; -import {TabsModule} from "../../utils/tabs/tabs.module"; import {ModalSelectModule} from "../../utils/modal-select/modal-select.module"; -import {SearchResultsModule} from "../../searchPages/searchUtils/searchResults.module"; +import {TabsModule} from "../../utils/tabs/tabs.module"; +import {SearchTabModule} from "../../utils/tabs/contents/search-tab.module"; @NgModule({ @@ -45,7 +45,9 @@ import {SearchResultsModule} from "../../searchPages/searchUtils/searchResults.m SearchResearchResultsServiceModule, ProjectsServiceModule, Schema2jsonldModule, SEOServiceModule, HelperModule, - OrganizationsDeletedByInferenceModule, LandingHeaderModule, FeedbackModule, MatSelectModule, TabsModule, ModalSelectModule, SearchResultsModule + OrganizationsDeletedByInferenceModule, LandingHeaderModule, FeedbackModule, + MatSelectModule, ModalSelectModule, + TabsModule, SearchTabModule ], declarations: [ OrganizationComponent, diff --git a/landingPages/project/project.component.html b/landingPages/project/project.component.html index a86d89f0..f2aa6c14 100644 --- a/landingPages/project/project.component.html +++ b/landingPages/project/project.component.html @@ -75,78 +75,53 @@
- - - - - - - -
- - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -
- Recent - {{getEntityName(type, true, true)}} -
- + + + + + - - - - - - - - - - - - - - - -
-
+ + + + + + + +
@@ -905,46 +880,16 @@
- - - - - - - - - - - - - - - - - - - - - - - - - - + +
- - - - + + +
- - - - - @@ -953,32 +898,30 @@
- - + +
- - - - + + +
- - + +
- - - - + + +
@@ -987,16 +930,15 @@
- - + +
- - - - + + +
diff --git a/landingPages/project/project.module.ts b/landingPages/project/project.module.ts index 61b6228d..fa7a3ee4 100644 --- a/landingPages/project/project.module.ts +++ b/landingPages/project/project.module.ts @@ -28,9 +28,8 @@ import {SEOServiceModule } from '../../sharedComponents/SEO/SEOService.module'; import {FeedbackModule} from "../feedback/feedback.module"; import {AltMetricsModule} from "../../utils/altmetrics.module"; import {TabsModule} from "../../utils/tabs/tabs.module"; -import {SearchResultsModule} from "../../searchPages/searchUtils/searchResults.module"; -//import {ResultPreviewModule} from "../../utils/result-preview/result-preview.module"; import {ModalSelectModule} from "../../utils/modal-select/modal-select.module"; +import {SearchTabModule} from "../../utils/tabs/contents/search-tab.module"; @NgModule({ imports: [ @@ -40,7 +39,7 @@ import {ModalSelectModule} from "../../utils/modal-select/modal-select.module"; SearchResearchResultsServiceModule, ProjectServiceModule, Schema2jsonldModule, SEOServiceModule, HelperModule, LandingHeaderModule, MatSelectModule, FeedbackModule, AltMetricsModule, - TabsModule, ModalSelectModule, SearchResultsModule//, ResultPreviewModule + TabsModule, ModalSelectModule, SearchTabModule ], declarations: [ ProjectComponent