Revision 53740
Added by Argiro Kokogiannaki over 5 years ago
orp.component.ts | ||
---|---|---|
11 | 11 |
|
12 | 12 |
import {OrpService} from './orp.service'; |
13 | 13 |
import {PiwikService} from '../../utils/piwik/piwik.service'; |
14 |
import { SEOService } from '../../sharedComponents/SEO/SEO.service'; |
|
14 | 15 |
|
15 | 16 |
|
16 | 17 |
@Component({ |
... | ... | |
59 | 60 |
private route: ActivatedRoute, |
60 | 61 |
private _meta: Meta, |
61 | 62 |
private _title: Title, |
62 |
private _router: Router) { |
|
63 |
private _router: Router, |
|
64 |
private seoService: SEOService) { |
|
63 | 65 |
} |
64 | 66 |
|
65 | 67 |
ngOnInit() { |
... | ... | |
73 | 75 |
this.orpInfo = null; |
74 | 76 |
this.updateTitle("Other Research Product"); |
75 | 77 |
this.updateDescription("Other Research Product, search, open access"); |
76 |
|
|
78 |
this.seoService.createLinkForCanonicalURL(); |
|
77 | 79 |
this.orpId = params['orpId']; |
78 | 80 |
console.info("Id is :"+this.orpId); |
79 | 81 |
|
Also available in: Unified diff
JSONLD:
add jsonld in all pages (advance, table view, link, deposit)
for search pages assign SearchResultsPage representation
for other pages assign Website
SEO service:
add a service that updates the rel canonical url (in client side)
call the service in each page