0"
@@ -195,6 +202,11 @@
0"
[texts]="pageContents['bottom']">
+
Our growing Community
+
+
+
0"
[texts]="pageContents['left']">
{
@@ -253,119 +243,6 @@ export class HomeComponent {
}
}
- private getNumbers() {
- if (this.showPublications) {
- this.subs.push(this._searchResearchResultsService.numOfSearchResults("publication", "", this.properties).subscribe(
- data => {
- if (data && data != null && data > 0) {
- this.publicationsSize = NumberUtils.roundNumber(data);
-
- }
- },
- err => {
- //console.log(err);
- this.handleError("Error getting number of publications", err);
- }
- ));
- }
- if (this.showDatasets) {
- this.subs.push(this._searchResearchResultsService.numOfSearchResults("dataset", "", this.properties).subscribe(
- data => {
- if (data && data != null && data > 0) {
- this.datasetsSize = NumberUtils.roundNumber(data);
- }
- },
- err => {
- //console.log(err);
- this.handleError("Error getting number of research data", err);
- }
- ));
- this.subs.push(this._searchResearchResultsService.numOfSearchResultsLinkedToPub("dataset", this.properties).subscribe(
- data => {
- if (data && data != null && data > 0) {
- this.datasetsLinkedSize = NumberUtils.roundNumber(data);
- }
- },
- err => {
- //console.log(err);
- this.handleError("Error getting number of linkedresearch data", err);
- }
- ));
-
- }
- if (this.showSoftware) {
- this.subs.push(this._searchResearchResultsService.numOfSearchResults("software", "", this.properties).subscribe(
- data => {
- if (data && data > 0) {
- this.softwareSize = NumberUtils.roundNumber(data);
- } else {
- this.showSoftware = false;
- }
- },
- err => {
- this.handleError("Error getting number of software data", err);
- }
- ));
- this.subs.push(this._searchResearchResultsService.numOfSearchResultsLinkedToPub("software", this.properties).subscribe(
- data => {
- if (data && data != null && data > 0) {
- this.softwareLinkedSize = NumberUtils.roundNumber(data);
- }
- },
- err => {
- //console.log(err);
- this.handleError("Error getting number of linked software", err);
- }
- ));
- }
- if (this.showOrp) {
- this.subs.push(this._searchResearchResultsService.numOfSearchResults("other", "", this.properties).subscribe(
- data => {
- if (data && data > 0) {
- this.otherSize = NumberUtils.roundNumber(data);
- } else {
- this.showOrp = false;
- }
- },
- err => {
- this.handleError("Error getting number of software data", err);
- }
- ));
- }
- if (this.showProjects) {
- this.subs.push(this._refineFieldResultsService.getRefineFieldsResultsByEntityName(["funder"], "project", this.properties).subscribe(
- data => {
-
-
- if (data[0] && data[0] > 0) {
- this.projectsSize = NumberUtils.roundNumber(data[0]);
- }
- if (data[1].length > 0 && data[1][0].filterId == "funder" && data[1][0].values) {
- this.fundersSize = NumberUtils.roundNumber(data[1][0].values.length);
- }
-
- },
- err => {
- //console.log(err);
- this.handleError("Error getting 'funder' field results of projects", err);
- }));
- }
- if (this.showDataProviders) {
- this.subs.push(this._searchDataprovidersService.numOfSearchDataproviders("", this.properties).subscribe(
- data => {
- if (data && data != null && data > 0) {
- this.datasourcesSize = NumberUtils.roundNumber(data);
- }
-
- },
- err => {
- //console.log(err);
- this.handleError("Error getting number of content providers", err);
- }
- ));
- }
- }
-
private handleError(message: string, error) {
console.error("Home Page: " + message, error);
}
diff --git a/explore/src/app/home/home.module.ts b/explore/src/app/home/home.module.ts
index 51433d6d..779c5854 100644
--- a/explore/src/app/home/home.module.ts
+++ b/explore/src/app/home/home.module.ts
@@ -26,6 +26,7 @@ import {QuickSelectionsModule} from "../openaireLibrary/searchPages/searchUtils/
import {IconsModule} from "../openaireLibrary/utils/icons/icons.module";
import {IconsService} from "../openaireLibrary/utils/icons/icons.service";
import {arrow_right, book, cog, database, earth} from "../openaireLibrary/utils/icons/icons";
+import {NumbersModule} from "../openaireLibrary/sharedComponents/numbers/numbers.module";
@NgModule({
imports: [
@@ -38,7 +39,7 @@ import {arrow_right, book, cog, database, earth} from "../openaireLibrary/utils/
HomeRoutingModule,
HelperModule,
ErrorMessagesModule,
- SEOServiceModule, OtherPortalsModule, EntitiesSelectionModule, QuickSelectionsModule, IconsModule
+ SEOServiceModule, OtherPortalsModule, EntitiesSelectionModule, QuickSelectionsModule, IconsModule, NumbersModule
],
declarations: [
HomeComponent
diff --git a/explore/src/assets/explore-custom.css b/explore/src/assets/explore-custom.css
index df766e5d..443dc714 100644
--- a/explore/src/assets/explore-custom.css
+++ b/explore/src/assets/explore-custom.css
@@ -126,7 +126,7 @@
}
.numbers-background {
- background: transparent url('explore-assets/numbers_background_pattern.svg') 0 0 repeat-x padding-box;
+ background: transparent url('explore-assets/numbers_background_pattern.svg') repeat-x center bottom;
}
.number {