From ecd1682cc1fc01d87a94d2fa2ca9503030e58ca5 Mon Sep 17 00:00:00 2001 From: argirok Date: Tue, 14 May 2024 14:51:37 +0300 Subject: [PATCH] [pluginsFunctionality | DONE | CHANGED] use display title & short title --- src/app/app.component.ts | 6 +++--- .../browse-community.component.html | 14 +++++++------- src/app/community/community.component.ts | 6 +++--- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index d43724e..d1143c4 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -78,7 +78,7 @@ import {Meta} from "@angular/platform-browser";
@@ -116,7 +116,7 @@ import {Meta} from "@angular/platform-browser"; [contactForm]="contactForm" [sending]="sending">
` @@ -381,7 +381,7 @@ export class AppComponent implements OnInit, OnDestroy { this.header = { // url: 'https://' + (this.properties.environment == 'beta' ? 'beta.' : '') + this.community.id + '.openaire.eu', route: "/", - title: (this.community.shortTitle) ? this.community.shortTitle : this.community.title, + title: (this.community.displayShortTitle) ? this.community.displayShortTitle : this.community.displayTitle, logoUrl: (this.community.isUpload) ? (properties.utilsService + '/download/' + this.community.logoUrl) : (StringUtils.urlPrefix(this.community.logoUrl) + this.community.logoUrl), logoSmallUrl: (this.community.isUpload) ? (properties.utilsService + '/download/' + this.community.logoUrl) : (StringUtils.urlPrefix(this.community.logoUrl) + this.community.logoUrl), position: 'left', diff --git a/src/app/communities/browseCommunity/browse-community.component.html b/src/app/communities/browseCommunity/browse-community.component.html index 414d5ae..04a324e 100644 --- a/src/app/communities/browseCommunity/browse-community.component.html +++ b/src/app/communities/browseCommunity/browse-community.component.html @@ -26,18 +26,18 @@ uk-padding-small uk-padding-remove-vertical uk-margin-top uk-margin-bottom">
{{(community.title)?community.title:community.shortTitle}} logo + alt="{{(community.displayTitle)?community.displayTitle:community.displayShortTitle}} logo" class="uk-height-max-xsmall">
diff --git a/src/app/community/community.component.ts b/src/app/community/community.component.ts index 71ab4bd..5a78174 100644 --- a/src/app/community/community.component.ts +++ b/src/app/community/community.component.ts @@ -88,9 +88,9 @@ export class CommunityComponent { this._meta.updateTag({content: community.description}, "name='description'"); this._meta.updateTag({content: community.description}, "property='og:description'"); - this._meta.updateTag({content: community.title}, "property='og:title'"); - this._title.setTitle(community.title); - this.subscriptions.push(this._piwikService.trackView(this.properties, community.title).subscribe()); + this._meta.updateTag({content: community.displayTitle}, "property='og:title'"); + this._title.setTitle(community.displayTitle); + this.subscriptions.push(this._piwikService.trackView(this.properties, community.displayTitle).subscribe()); this.getPagePlugins(); }