[Library | Trunk]: Change organization meta tag title

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@59108 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
k.triantafyllou 2020-07-14 10:18:40 +00:00
parent 3fe78d9e86
commit d6135ec6b8
2 changed files with 6 additions and 3 deletions

View File

@ -31,7 +31,7 @@ import {ActivatedRoute} from '@angular/router';
<span [innerHTML]="titleName"></span>
</div>
<div *ngIf="!titleName && !title">
<span>[no title available]</span>
<span>No title available</span>
</div>
</h1>
`

View File

@ -336,8 +336,11 @@ export class OrganizationComponent {
} else {
this.organizationInfo = data;
this.seoService.createLinkForCanonicalURL(this.properties.baseLink + this.properties.searchLinkToOrganization + this.organizationInfo.objIdentifier);
this.updateTitle(this.organizationInfo.title.name);
this.updateDescription("Organization, country, " + this.organizationInfo.title.name + ((this.organizationInfo.title.name && this.organizationInfo.title.name != this.organizationInfo.name) ? (", " + this.organizationInfo.name) : ""));
this.updateTitle((this.organizationInfo.title.name?this.organizationInfo.title.name:(this.organizationInfo.name?this.organizationInfo.name:'No title available')));
this.updateDescription("Organization, country, " +
(this.organizationInfo.title.name?this.organizationInfo.title.name:'No title available') +
((this.organizationInfo.title.name && this.organizationInfo.title.name != this.organizationInfo.name) ? (', ') : '') +
(this.organizationInfo.name?this.organizationInfo.name:''));
if (this.properties.enablePiwikTrack && (typeof document !== 'undefined')) {
this.piwiksub = this._piwikService.trackView(this.properties, this.organizationInfo.title.name, this.piwikSiteId).subscribe();
}