Revision 56966
Added by Konstantina Galouni almost 5 years ago
linkingGeneric.component.ts | ||
---|---|---|
21 | 21 |
}) |
22 | 22 |
export class LinkingGenericComponent { |
23 | 23 |
@Input() piwikSiteId = null; |
24 |
@Input() title: string = null;
|
|
24 |
@Input() pageTitle: string = null;
|
|
25 | 25 |
piwiksub:any; |
26 | 26 |
|
27 | 27 |
@Input() communityId:string= null; |
... | ... | |
64 | 64 |
this.url = data.envSpecific.baseLink+this._router.url; |
65 | 65 |
|
66 | 66 |
var description = "Openaire, linking, claim, publication, research data, software, other research product, project, community"; |
67 |
this.updateTitle(this.title);
|
|
67 |
this.updateTitle(this.pageTitle);
|
|
68 | 68 |
this.updateDescription(description); |
69 | 69 |
this.updateUrl(this.url); |
70 | 70 |
|
71 | 71 |
this.seoService.createLinkForCanonicalURL(this.url, false); |
72 | 72 |
|
73 | 73 |
if(this.properties.enablePiwikTrack && (typeof document !== 'undefined')){ |
74 |
this.piwiksub = this._piwikService.trackView(this.properties, this.title, this.piwikSiteId).subscribe();
|
|
74 |
this.piwiksub = this._piwikService.trackView(this.properties, this.pageTitle, this.piwikSiteId).subscribe();
|
|
75 | 75 |
} |
76 | 76 |
|
77 | 77 |
this.helper.getPageHelpContents(this._router.url, this.properties, this.communityId).subscribe(contents => { |
Also available in: Unified diff
[mergeResultLandingPages | Library]: Merging Trunk into branch 56883:56965