Revision 60826
Added by Argiro Kokogiannaki almost 3 years ago
resultLanding.component.ts | ||
---|---|---|
353 | 353 |
if (this.type == "result") { // no type was specified - update URL based this.resultLandingInfo.resultType |
354 | 354 |
this.updateUrlWithType(pid); |
355 | 355 |
} |
356 |
this.seoService.createLinkForCanonicalURL(this.properties.domain+ properties.baseLink + ( pid ? (this.linkToLandingPage.split("?")[0] + "?pid=" + pid.id):
|
|
356 |
this.seoService.createLinkForCanonicalURL(this.properties.domain+ properties.baseLink + ( pid ? (this.linkToLandingPage.split("?")[0] + "?pid=" + encodeURIComponent(pid.id)):
|
|
357 | 357 |
(this.linkToLandingPage + this.resultLandingInfo.relcanId))); |
358 | 358 |
if ((this.type == "publication") && (this.properties.environment == "beta" || this.properties.environment == "development") && (typeof document !== 'undefined')) { |
359 | 359 |
this.getOpenCitations(); |
... | ... | |
433 | 433 |
} |
434 | 434 |
|
435 | 435 |
public get hasMetrics(): boolean { |
436 |
return !(this.totalViews && this.totalDownloads /*&& this.pageViews*/) || this.totalViews > 0 || this.totalDownloads > 0 /*|| this.pageViews > 0*/;
|
|
436 |
return !(this.totalViews && this.totalDownloads && this.pageViews) || this.totalViews > 0 || this.totalDownloads > 0 || this.pageViews > 0;
|
|
437 | 437 |
} |
438 | 438 |
|
439 | 439 |
private updateDescription(description: string) { |
Also available in: Unified diff
[Library|Trunk]
Metrics:
add back the Openaire views
SEO:
- Landing: encode pid in canonical url
- result preview: single encoding in pid url
Enermaps Integration:
- update landing tab
- update look for tool url