diff --git a/landingPages/project/project.component.html b/landingPages/project/project.component.html index bff0f5c7..6a379f98 100644 --- a/landingPages/project/project.component.html +++ b/landingPages/project/project.component.html @@ -473,15 +473,15 @@ -
+ --> diff --git a/landingPages/project/project.component.ts b/landingPages/project/project.component.ts index eeef9fe3..ecfa2ac2 100644 --- a/landingPages/project/project.component.ts +++ b/landingPages/project/project.component.ts @@ -399,7 +399,7 @@ export class ProjectComponent { } this.seoService.createLinkForCanonicalURL(this.properties.baseLink + this._router.url); this.updateTitle(this.projectName); - this.updateDescription("project, " + this.projectName + "," + this.projectInfo.funding.funderShortName + "," + this.projectInfo.acronym); + this.updateDescription(this.projectInfo.description?this.projectInfo.description: ("project" + (this.projectInfo.title?"," + this.projectInfo.title:"") + (this.projectInfo.funding && this.projectInfo.funding.funderName?", funder: " + this.projectInfo.funding.funderName:"") + (this.projectInfo.acronym?"," + this.projectInfo.acronym:""))); if (this.properties.enablePiwikTrack && (typeof document !== 'undefined')) { this.piwiksub = this._piwikService.trackView(this.properties, this.projectName, this.piwikSiteId).subscribe(); } diff --git a/sharedComponents/schema2jsonld/service/open-aire-jsonld-converter.service.ts b/sharedComponents/schema2jsonld/service/open-aire-jsonld-converter.service.ts index 2d52b9f9..90b1a29a 100644 --- a/sharedComponents/schema2jsonld/service/open-aire-jsonld-converter.service.ts +++ b/sharedComponents/schema2jsonld/service/open-aire-jsonld-converter.service.ts @@ -122,7 +122,7 @@ export class OpenAireJsonldConverterService { doc.url = URL; doc.id = URL; doc["description"] = []; - doc["description"].push((project.title)?project.title:project.acronym); + doc["description"].push(project.description?project.description: ("project" + (project.title?"," + project.title:"") + (project.funding && project.funding.funderName?", funder: " + project.funding.funderName:"") + (project.acronym?"," + project.acronym:""))); doc.sameAs =[project.url]; return doc; }