[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:
parent
3fe78d9e86
commit
d6135ec6b8
|
@ -31,7 +31,7 @@ import {ActivatedRoute} from '@angular/router';
|
||||||
<span [innerHTML]="titleName"></span>
|
<span [innerHTML]="titleName"></span>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="!titleName && !title">
|
<div *ngIf="!titleName && !title">
|
||||||
<span>[no title available]</span>
|
<span>No title available</span>
|
||||||
</div>
|
</div>
|
||||||
</h1>
|
</h1>
|
||||||
`
|
`
|
||||||
|
|
|
@ -336,8 +336,11 @@ export class OrganizationComponent {
|
||||||
} else {
|
} else {
|
||||||
this.organizationInfo = data;
|
this.organizationInfo = data;
|
||||||
this.seoService.createLinkForCanonicalURL(this.properties.baseLink + this.properties.searchLinkToOrganization + this.organizationInfo.objIdentifier);
|
this.seoService.createLinkForCanonicalURL(this.properties.baseLink + this.properties.searchLinkToOrganization + this.organizationInfo.objIdentifier);
|
||||||
this.updateTitle(this.organizationInfo.title.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 && this.organizationInfo.title.name != this.organizationInfo.name) ? (", " + this.organizationInfo.name) : ""));
|
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')) {
|
if (this.properties.enablePiwikTrack && (typeof document !== 'undefined')) {
|
||||||
this.piwiksub = this._piwikService.trackView(this.properties, this.organizationInfo.title.name, this.piwikSiteId).subscribe();
|
this.piwiksub = this._piwikService.trackView(this.properties, this.organizationInfo.title.name, this.piwikSiteId).subscribe();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue