[develop | DONE | CHANGED]: Do not request page help contents (helptexts) in EXPLORE. (FILES: displayClaims.component.ts & linkingGeneric.component.ts & dataProvider.component.ts & organization.component.ts & project.component.ts & resultLanding.component.ts & newSearchPage.component.ts)
This commit is contained in:
parent
fbe514b740
commit
b89278af70
|
@ -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;
|
||||
}));
|
||||
|
|
|
@ -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){
|
||||
|
|
|
@ -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 => {
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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 => {
|
||||
|
|
|
@ -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 => {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue