Revision 55963
Added by Argiro Kokogiannaki almost 5 years ago
orp.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 => { |
... | ... | |
125 | 124 |
this.infoSub = this._orpService.getOrpInfo(id, this. properties).subscribe( |
126 | 125 |
data => { |
127 | 126 |
this.orpInfo = data; |
127 |
this.seoService.createLinkForCanonicalURL(this.properties.baseLink + this.properties.searchLinkToOrp + this.orpInfo.record["result"]["header"]["dri:objIdentifier"]); |
|
128 | 128 |
if(this.orpInfo.title){ |
129 | 129 |
this.updateTitle(this.orpInfo.title); |
130 | 130 |
this.updateDescription((this.orpInfo.description?(this.orpInfo.description):(","+this.orpInfo.title))); |
... | ... | |
149 | 149 |
err => { |
150 | 150 |
//console.log(err) |
151 | 151 |
this.handleError("Error getting other research product for id: "+this.orpId, err); |
152 |
|
|
152 |
this.seoService.createLinkForCanonicalURL(this.properties.baseLink + this.properties.searchLinkToOrps); |
|
153 | 153 |
this.errorMessage = 'No research product found'; |
154 | 154 |
this.showLoading = false; |
155 | 155 |
} |
Also available in: Unified diff
[angular7|library]
Merging Trunk into branch 55904:55959