Revision 55963
Added by Argiro Kokogiannaki almost 5 years ago
software.component.ts | ||
---|---|---|
71 | 71 |
.subscribe((data: { envSpecific: EnvProperties }) => { |
72 | 72 |
this.properties = data.envSpecific; |
73 | 73 |
this.updateUrl(data.envSpecific.baseLink+this._router.url); |
74 |
this.seoService.createLinkForCanonicalURL(this.properties.baseLink+this._router.url); |
|
75 | 74 |
|
76 | 75 |
}); |
77 | 76 |
this.sub = this.route.queryParams.subscribe(params => { |
... | ... | |
124 | 123 |
this.infoSub = this._softwareService.getSoftwareInfo(id, this.properties).subscribe( |
125 | 124 |
data => { |
126 | 125 |
this.softwareInfo = data; |
126 |
this.seoService.createLinkForCanonicalURL(this.properties.baseLink + this.properties.searchLinkToSoftwareLanding + this.softwareInfo.record["result"]["header"]["dri:objIdentifier"]); |
|
127 | 127 |
/*if(this.softwareInfo.title.name != undefined && this.softwareInfo.title.name!= ''){ |
128 | 128 |
this.updateTitle(this.softwareInfo.title.name); |
129 | 129 |
this.updateDescription("Software, search, repositories, open access,"+this.softwareInfo.title.name); |
... | ... | |
152 | 152 |
err => { |
153 | 153 |
//console.log(err) |
154 | 154 |
this.handleError("Error getting software for id: "+this.softwareId, err); |
155 |
|
|
155 |
this.seoService.createLinkForCanonicalURL(this.properties.baseLink + this.properties.searchLinkToSoftware); |
|
156 | 156 |
this.errorMessage = 'No software found'; |
157 | 157 |
this.showLoading = false; |
158 | 158 |
} |
Also available in: Unified diff
[angular7|library]
Merging Trunk into branch 55904:55959