[Library|Trunk]

Project Landing:
	avoid double message "Nosummary available"
	enhance project meta and jsonld description



git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@59375 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
argiro.kokogiannaki 2020-09-15 10:01:19 +00:00
parent c2c1ddc055
commit 78fed00f1d
3 changed files with 7 additions and 7 deletions

View File

@ -473,15 +473,15 @@
</div> </div>
</div> </div>
</div> </div>
<div *ngIf="!hasPrimaryInfo && !hasSecondaryInfo" <!--<div *ngIf="!hasPrimaryInfo && !hasSecondaryInfo"
class="uk-width-expand uk-padding"> class="uk-width-expand uk-padding">
<!-- <div *ngIf="!tabsAreInitialized" class="uk-animation-fade uk-margin-top uk-width-1-1" role="alert">--> &lt;!&ndash; <div *ngIf="!tabsAreInitialized" class="uk-animation-fade uk-margin-top uk-width-1-1" role="alert">&ndash;&gt;
<!-- <span class="loading-gif uk-align-center" ></span>--> &lt;!&ndash; <span class="loading-gif uk-align-center" ></span>&ndash;&gt;
<!-- </div>--> &lt;!&ndash; </div>&ndash;&gt;
<div class="uk-animation-fade uk-alert uk-alert-primary" role="alert"> <div class="uk-animation-fade uk-alert uk-alert-primary" role="alert">
No summary information available No summary information available
</div> </div>
</div> </div>-->
</div> </div>
<!-- </my-tab>--> <!-- </my-tab>-->
</ng-template> </ng-template>

View File

@ -399,7 +399,7 @@ export class ProjectComponent {
} }
this.seoService.createLinkForCanonicalURL(this.properties.baseLink + this._router.url); this.seoService.createLinkForCanonicalURL(this.properties.baseLink + this._router.url);
this.updateTitle(this.projectName); 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')) { if (this.properties.enablePiwikTrack && (typeof document !== 'undefined')) {
this.piwiksub = this._piwikService.trackView(this.properties, this.projectName, this.piwikSiteId).subscribe(); this.piwiksub = this._piwikService.trackView(this.properties, this.projectName, this.piwikSiteId).subscribe();
} }

View File

@ -122,7 +122,7 @@ export class OpenAireJsonldConverterService {
doc.url = URL; doc.url = URL;
doc.id = URL; doc.id = URL;
doc["description"] = []; 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]; doc.sameAs =[project.url];
return doc; return doc;
} }