From d6135ec6b8e215d023486a4d9bb22319b3be7485 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Tue, 14 Jul 2020 10:18:40 +0000 Subject: [PATCH] [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 --- landingPages/landing-utils/showTitle.component.ts | 2 +- landingPages/organization/organization.component.ts | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/landingPages/landing-utils/showTitle.component.ts b/landingPages/landing-utils/showTitle.component.ts index faa56f2a..b6130c96 100644 --- a/landingPages/landing-utils/showTitle.component.ts +++ b/landingPages/landing-utils/showTitle.component.ts @@ -31,7 +31,7 @@ import {ActivatedRoute} from '@angular/router';
- [no title available] + No title available
` diff --git a/landingPages/organization/organization.component.ts b/landingPages/organization/organization.component.ts index e5c73056..4e97a0be 100644 --- a/landingPages/organization/organization.component.ts +++ b/landingPages/organization/organization.component.ts @@ -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(); }