From 2d0f52f263879e30a63c20011e0a4f77ac5f4739 Mon Sep 17 00:00:00 2001 From: "argiro.kokogiannaki" Date: Wed, 18 Jan 2017 09:13:24 +0000 Subject: [PATCH] changes public/private/etc to run in production git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@45442 d315682c-612b-4755-9ff5-7f18f6832af3 --- portal-2/src/app/deposit/deposit.component.ts | 2 +- portal-2/src/app/landingPages/metrics.component.ts | 6 +++--- .../src/app/searchPages/find/search.component.ts | 12 ++++++------ .../searchUtils/browseStatistic.component.ts | 4 ++-- portal-2/src/app/utils/modal/open.component.ts | 8 +++++--- 5 files changed, 17 insertions(+), 15 deletions(-) diff --git a/portal-2/src/app/deposit/deposit.component.ts b/portal-2/src/app/deposit/deposit.component.ts index 4b3e5b98..7062bd78 100644 --- a/portal-2/src/app/deposit/deposit.component.ts +++ b/portal-2/src/app/deposit/deposit.component.ts @@ -62,7 +62,7 @@ export class DepositComponent { public status: number; public errorCodes:ErrorCodes = new ErrorCodes(); public selectedId: string = ""; - private warningMessage: string = ""; + public warningMessage: string = ""; constructor (private _router: Router, private _searchOrganizationsService: SearchOrganizationsService) { diff --git a/portal-2/src/app/landingPages/metrics.component.ts b/portal-2/src/app/landingPages/metrics.component.ts index 2310fda5..bd438926 100644 --- a/portal-2/src/app/landingPages/metrics.component.ts +++ b/portal-2/src/app/landingPages/metrics.component.ts @@ -87,9 +87,9 @@ export class MetricsComponent { @Input() id: string; @Input() type: string; @Input() name: string = ""; - private metrics: Metrics; - private errorCodes:ErrorCodes; - private status: number; + public metrics: Metrics; + public errorCodes:ErrorCodes; + public status: number; constructor (private _metricsService: MetricsService) {} diff --git a/portal-2/src/app/searchPages/find/search.component.ts b/portal-2/src/app/searchPages/find/search.component.ts index b268ae03..abdca6e7 100644 --- a/portal-2/src/app/searchPages/find/search.component.ts +++ b/portal-2/src/app/searchPages/find/search.component.ts @@ -232,7 +232,7 @@ public subPub;public subData;public subProjects;public subOrg;public subPeople; this.subPeopleCount.unsubscribe(); } } - private searchPublications() { + public searchPublications() { this.activeTab = "publications"; if(this.reloadPublications) { this.reloadPublications = false; @@ -240,7 +240,7 @@ public subPub;public subData;public subProjects;public subOrg;public subPeople; this.linkToSearchPublications = OpenaireProperties.getLinkToSearchPublications() + "?keyword=" + this.keyword; } } - private searchDatasets() { + public searchDatasets() { this.activeTab = "datasets"; if(this.reloadDatasets) { this.reloadDatasets = false; @@ -248,7 +248,7 @@ public subPub;public subData;public subProjects;public subOrg;public subPeople; this.linkToSearchDatasets = OpenaireProperties.getLinkToSearchDatasets() + "?keyword=" + this.keyword; } } - private searchProjects() { + public searchProjects() { this.activeTab = "projects"; if(this.reloadProjects) { this.reloadProjects = false; @@ -256,7 +256,7 @@ public subPub;public subData;public subProjects;public subOrg;public subPeople; this.linkToSearchProjects = OpenaireProperties.getLinkToSearchProjects() + "?keyword=" + this.keyword; } } - private searchDataProviders() { + public searchDataProviders() { this.activeTab = "dataproviders"; if(this.reloadDataproviders) { this.reloadDataproviders = false; @@ -264,7 +264,7 @@ public subPub;public subData;public subProjects;public subOrg;public subPeople; this.linkToSearchDataproviders = OpenaireProperties.getLinkToSearchDataProviders() + "?keyword=" + this.keyword; } } - private searchOrganizations() { + public searchOrganizations() { this.activeTab = "organizations"; if(this.reloadOrganizations) { this.reloadOrganizations = false; @@ -272,7 +272,7 @@ public subPub;public subData;public subProjects;public subOrg;public subPeople; this.linkToSearchOrganizations = OpenaireProperties.getLinkToSearchOrganizations() + "?keyword=" + this.keyword; } } - private searchPeople() { + public searchPeople() { this.activeTab = "people"; if(this.reloadPeople) { this.reloadPeople = false; diff --git a/portal-2/src/app/searchPages/searchUtils/browseStatistic.component.ts b/portal-2/src/app/searchPages/searchUtils/browseStatistic.component.ts index dd34ee03..66361bb3 100644 --- a/portal-2/src/app/searchPages/searchUtils/browseStatistic.component.ts +++ b/portal-2/src/app/searchPages/searchUtils/browseStatistic.component.ts @@ -38,9 +38,9 @@ import {SearchUtilsClass} from '../searchUtils/searchUtils.class'; export class BrowseStatisticComponent { @Input() public baseUrl:string = ""; - @Input() public filter:string = ""; + @Input() public filter:any = ""; private _maxCharacters = 30; - private showAll = false; + public viewAll = false; constructor () { diff --git a/portal-2/src/app/utils/modal/open.component.ts b/portal-2/src/app/utils/modal/open.component.ts index 7327d805..fec771ed 100644 --- a/portal-2/src/app/utils/modal/open.component.ts +++ b/portal-2/src/app/utils/modal/open.component.ts @@ -46,9 +46,11 @@ export class Open { } show() { - let backDrop = document.createElement('div'); - backDrop.className="modal-backdrop fade in"; - document.body.appendChild(backDrop); + if (typeof document !== 'undefined') { + let backDrop = document.createElement('div'); + backDrop.className="modal-backdrop fade in"; + document.body.appendChild(backDrop); + } this.isExpanded = true; this.display = 'block'; }