diff --git a/claims/claim-utils/displayClaims/displayClaims.component.ts b/claims/claim-utils/displayClaims/displayClaims.component.ts index 837b0d83..9e5ccf97 100644 --- a/claims/claim-utils/displayClaims/displayClaims.component.ts +++ b/claims/claim-utils/displayClaims/displayClaims.component.ts @@ -110,10 +110,12 @@ export class DisplayClaimsComponent implements OnInit, OnDestroy { this.updateDescription(description); this.updateUrl(this.url); this.subscriptions.push(this._piwikService.trackView(this.properties, this.pageTitle).subscribe()); - - this.subscriptions.push(this.helper.getPageHelpContents(this.properties, this.communityId, this._router.url).subscribe(contents => { - this.pageContents = contents; - })); + + if(properties.adminToolsPortalType !== "explore") { + this.subscriptions.push(this.helper.getPageHelpContents(this.properties, this.communityId, this._router.url).subscribe(contents => { + this.pageContents = contents; + })); + } this.subscriptions.push(this.indexInfoService.getLastIndexDate(this.properties).subscribe(res => { this.lastIndexDate = res; })); diff --git a/claims/linking/linkingGeneric.component.ts b/claims/linking/linkingGeneric.component.ts index e2149bb0..31b76062 100644 --- a/claims/linking/linkingGeneric.component.ts +++ b/claims/linking/linkingGeneric.component.ts @@ -87,9 +87,11 @@ export class LinkingGenericComponent { this.subscriptions.push(this._piwikService.trackView(this.properties, this.pageTitle).subscribe()); + if(properties.adminToolsPortalType !== "explore") { this.helper.getPageHelpContents(this.properties, this.communityId, this._router.url).subscribe(contents => { this.pageContents = contents; }) + } if( typeof localStorage !== 'undefined') { @@ -164,19 +166,19 @@ export class LinkingGenericComponent { stepHasChanged(stepId){ if(stepId == 'source'){ - console.log("show source") + // console.log("show source") this.showOptions.showSource(); }else if(stepId == 'target'){ - console.log("show target") + // console.log("show target") this.showOptions.show = this.showOptions.linkTo; this.showOptions.showLinkTo(); }else if(stepId == 'claim'){ - console.log("show target") + // console.log("show target") this.showOptions.show = 'claim'; } this.cdr.detectChanges(); HelperFunctions.scroll(true); - console.log('stepHasChanged', stepId, this.showOptions.show) + // console.log('stepHasChanged', stepId, this.showOptions.show) } stepStatus(stepId){ diff --git a/landingPages/dataProvider/dataProvider.component.ts b/landingPages/dataProvider/dataProvider.component.ts index baebcd09..a4afbb28 100644 --- a/landingPages/dataProvider/dataProvider.component.ts +++ b/landingPages/dataProvider/dataProvider.component.ts @@ -206,8 +206,10 @@ export class DataProviderComponent { } })); } - //this.getDivContents(); - this.getPageContents(); + if(properties.adminToolsPortalType !== "explore") { + //this.getDivContents(); + this.getPageContents(); + } this.updateUrl(this.properties.domain + this.properties.baseLink + this._router.url); this.seoService.createLinkForCanonicalURL(this.properties.domain +this.properties.baseLink + this._router.url); this.subscriptions.push(this.route.queryParams.subscribe(data => { diff --git a/landingPages/organization/organization.component.ts b/landingPages/organization/organization.component.ts index c2109ef0..814d7bb9 100644 --- a/landingPages/organization/organization.component.ts +++ b/landingPages/organization/organization.component.ts @@ -172,8 +172,10 @@ export class OrganizationComponent { } })); } - //this.getDivContents(); - this.getPageContents(); + if(properties.adminToolsPortalType !== "explore") { + //this.getDivContents(); + this.getPageContents(); + } this.updateUrl(this.properties.domain + this.properties.baseLink + this._router.url); this.seoService.createLinkForCanonicalURL(this.properties.domain +this.properties.baseLink + this._router.url); diff --git a/landingPages/project/project.component.ts b/landingPages/project/project.component.ts index bbf26740..ffa9fc65 100644 --- a/landingPages/project/project.component.ts +++ b/landingPages/project/project.component.ts @@ -218,8 +218,10 @@ export class ProjectComponent { } })); } - //this.getDivContents(); - this.getPageContents(); + if(properties.adminToolsPortalType !== "explore") { + //this.getDivContents(); + this.getPageContents(); + } this.updateUrl(this.properties.domain + this.properties.baseLink + this._router.url); this.seoService.createLinkForCanonicalURL(this.properties.domain +this.properties.baseLink + this._router.url); this.subscriptions.push(this.route.queryParams.subscribe(params => { diff --git a/landingPages/result/resultLanding.component.ts b/landingPages/result/resultLanding.component.ts index b25b77e5..f51645f3 100644 --- a/landingPages/result/resultLanding.component.ts +++ b/landingPages/result/resultLanding.component.ts @@ -213,8 +213,10 @@ export class ResultLandingComponent { } })); } - //this.getDivContents(); - this.getPageContents(); + if(properties.adminToolsPortalType !== "explore") { + //this.getDivContents(); + this.getPageContents(); + } this.updateUrl(this.properties.domain +this.properties.baseLink + this._router.url); this.seoService.createLinkForCanonicalURL(this.properties.domain +this.properties.baseLink + this._router.url); this.subscriptions.push(this.route.queryParams.subscribe(data => { diff --git a/searchPages/searchUtils/newSearchPage.component.ts b/searchPages/searchUtils/newSearchPage.component.ts index be34dfef..4bdbdaaf 100644 --- a/searchPages/searchUtils/newSearchPage.component.ts +++ b/searchPages/searchUtils/newSearchPage.component.ts @@ -175,8 +175,10 @@ export class NewSearchPageComponent implements OnInit, OnDestroy, OnChanges { } ngOnInit() { - //this.getDivContents(); - this.getPageContents(); + if(properties.adminToolsPortalType !== "explore") { + //this.getDivContents(); + this.getPageContents(); + } this.pagingLimit = this.properties.pagingLimit; this.resultsPerPage = this.properties.resultsPerPage; this.csvLimit = this.properties.csvLimit;