Revision 55963
Added by Argiro Kokogiannaki almost 5 years ago
dataset.component.ts | ||
---|---|---|
76 | 76 |
.subscribe((data: { envSpecific: EnvProperties }) => { |
77 | 77 |
this.properties = data.envSpecific; |
78 | 78 |
this.updateUrl(data.envSpecific.baseLink+this._router.url); |
79 |
this.seoService.createLinkForCanonicalURL(this.properties.baseLink+this._router.url); |
|
80 | 79 |
|
81 | 80 |
}); |
82 | 81 |
this.sub = this.route.queryParams.subscribe(params => { |
... | ... | |
129 | 128 |
this.infoSub = this._datasetService.getDatasetInfo(id, this. properties).subscribe( |
130 | 129 |
data => { |
131 | 130 |
this.datasetInfo = data; |
131 |
this.seoService.createLinkForCanonicalURL(this.properties.baseLink + this.properties.searchLinkToDataset + this.datasetInfo.record["result"]["header"]["dri:objIdentifier"]); |
|
132 | 132 |
/* |
133 | 133 |
if(this.datasetInfo.title.name != undefined && this.datasetInfo.title.name!= ''){ |
134 | 134 |
this.updateTitle(this.datasetInfo.title.name); |
... | ... | |
159 | 159 |
err => { |
160 | 160 |
//console.log(err) |
161 | 161 |
this.handleError("Error getting research data for id: "+this.datasetId, err); |
162 |
|
|
162 |
this.seoService.createLinkForCanonicalURL(this.properties.baseLink + this.properties.searchLinkToDatasets); |
|
163 | 163 |
this.errorMessage = 'No research data found'; |
164 | 164 |
this.showLoading = false; |
165 | 165 |
} |
Also available in: Unified diff
[angular7|library]
Merging Trunk into branch 55904:55959