Project

General

Profile

« Previous | Next » 

Revision 53740

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

View differences:

searchPage.component.ts
18 18
import {ErrorCodes}                   from '../../utils/properties/errorCodes';
19 19
import {PiwikService}                 from '../../utils/piwik/piwik.service';
20 20
import {EnvProperties}                from '../../utils/properties/env-properties';
21
import { SEOService } from '../../sharedComponents/SEO/SEO.service';
21 22

  
22

  
23 23
@Component({
24 24
    selector: 'search-page',
25 25
    templateUrl: 'searchPage.component.html'
......
75 75
               private _title: Title,
76 76
               private element: ElementRef,
77 77
               private _piwikService:PiwikService,
78
               private router: Router) {
78
               private router: Router,
79
             private seoService: SEOService) {
79 80
   }
80 81

  
81 82
  ngOnInit() {
......
101 102
        this.updateTitle(this.pageTitle);
102 103
        var description = "Openaire, search, repositories, open access, type, content provider, funder, project, " + this.type + "," +this.pageTitle;
103 104
        this.updateDescription(description);
104

  
105
        this.seoService.createLinkForCanonicalURL(false);
105 106
  }
106 107
  ngAfterViewChecked(){
107 108

  

Also available in: Unified diff