diff --git a/src/app/contact/contact.component.ts b/src/app/contact/contact.component.ts
index 338f5d8..ba6da35 100644
--- a/src/app/contact/contact.component.ts
+++ b/src/app/contact/contact.component.ts
@@ -11,6 +11,7 @@ import {HelperService} from "../openaireLibrary/utils/helper/helper.service";
import {SEOService} from "../openaireLibrary/sharedComponents/SEO/SEO.service";
import {AbstractControl, FormBuilder, FormGroup, ValidatorFn, Validators} from "@angular/forms";
import {Subscriber} from "rxjs";
+import {properties} from "../../environments/environment";
@Component({
selector: 'contact',
@@ -19,6 +20,7 @@ import {Subscriber} from "rxjs";
export class ContactComponent implements OnInit {
public url: string = null;
public pageTitle: string = "OpenAIRE - Monitor | Contact Us";
+ public description: string = "OpenAIRE - Monitor . Any Questions? Contact us to learn more";
public piwiksub: any;
public showLoading = true;
public errorMessage = '';
@@ -55,24 +57,22 @@ export class ContactComponent implements OnInit {
});
}
ngOnInit() {
- this._title.setTitle('OpenAIRE-Monitor | Contact Us');
- this.subscriptions.push(this.route.data.subscribe((data: { envSpecific: EnvProperties }) => {
- this.properties = data.envSpecific;
- this.email = {body: '', subject: '', recipients: []};
- if (this.properties.enablePiwikTrack && (typeof document !== 'undefined')) {
- this.subscriptions.push(this._piwikService.trackView(this.properties, this.pageTitle, this.properties.piwikSiteId).subscribe());
- }
- this.url = this.properties.domain + this.properties.baseLink + this._router.url;
- this.seoService.createLinkForCanonicalURL(this.url);
- this.updateUrl(this.url);
- this.updateTitle(this.pageTitle);
- this.updateDescription("OpenAIRE - Monitor, Community Gateway, research community - Contact Us");
- this.reset();
- //this.getDivContents();
- // this.getPageContents();
- HelperFunctions.scroll();
- this.showLoading = false;
- }));
+ this.properties = properties;
+ this.email = {body: '', subject: '', recipients: []};
+ if (this.properties.enablePiwikTrack && (typeof document !== 'undefined')) {
+ this.subscriptions.push(this._piwikService.trackView(this.properties, this.pageTitle, this.properties.piwikSiteId).subscribe());
+ }
+ this.url = this.properties.domain + this.properties.baseLink + this._router.url;
+ this.seoService.createLinkForCanonicalURL(this.url);
+ this.updateUrl(this.url);
+ this.updateTitle(this.pageTitle);
+ this.updateDescription(this.description);
+ this.reset();
+ //this.getDivContents();
+ // this.getPageContents();
+ HelperFunctions.scroll();
+ this.showLoading = false;
+
}
private getPageContents() {
diff --git a/src/app/home/home.component.html b/src/app/home/home.component.html
index dfce345..43a466e 100644
--- a/src/app/home/home.component.html
+++ b/src/app/home/home.component.html
@@ -1,8 +1,3 @@
-
-