[pluginsFunctionality | DONE | CHANGED] use display title & short title
This commit is contained in:
parent
dee055b392
commit
ecd1682cc1
|
@ -78,7 +78,7 @@ import {Meta} from "@angular/platform-browser";
|
|||
<schema2jsonld *ngIf="properties && showMenu && communityId && communityId.length > 0 && community"
|
||||
[URL]="properties.domain + properties.baseLink"
|
||||
[logoURL]="community.logoUrl" type="home" [searchActionRoute]="properties.searchLinkToResults"
|
||||
[name]="(community.shortTitle) ? community.shortTitle : community.title"
|
||||
[name]="(community.displayShortTitle) ? community.displayShortTitle : community.diplayTitle"
|
||||
[description]="community.description">
|
||||
</schema2jsonld>
|
||||
<div class="custom-main-content">
|
||||
|
@ -116,7 +116,7 @@ import {Meta} from "@angular/platform-browser";
|
|||
[contactForm]="contactForm" [sending]="sending"></quick-contact>
|
||||
<modal-alert #modal [overflowBody]="false"></modal-alert>
|
||||
<role-verification *ngIf="community" service="connect"
|
||||
[id]="community.communityId" [name]="community.title"
|
||||
[id]="community.communityId" [name]="community.displayTitle"
|
||||
[type]="community.type"></role-verification>
|
||||
</div>
|
||||
`
|
||||
|
@ -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',
|
||||
|
|
|
@ -26,18 +26,18 @@
|
|||
uk-padding-small uk-padding-remove-vertical uk-margin-top uk-margin-bottom">
|
||||
<div>
|
||||
<img *ngIf="community.logoUrl != null && community.logoUrl != ''" src="{{community | logoUrl}}"
|
||||
alt="{{(community.title)?community.title:community.shortTitle}} logo" class="uk-height-max-xsmall">
|
||||
alt="{{(community.displayTitle)?community.displayTitle:community.displayShortTitle}} logo" class="uk-height-max-xsmall">
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-card-body uk-padding-remove uk-margin-small-bottom">
|
||||
<h3 class="uk-text-center uk-h6 uk-link" [ngClass]="(showDescription)?'uk-margin-small-bottom':''">
|
||||
<span *ngIf="community.title">
|
||||
{{community.title.slice(0, thresholdTitle)}}
|
||||
<span *ngIf="community.title.length > thresholdTitle">...</span>
|
||||
<span *ngIf="community.displayTitle">
|
||||
{{community.displayTitle.slice(0, thresholdTitle)}}
|
||||
<span *ngIf="community.displayTitle.length > thresholdTitle">...</span>
|
||||
</span>
|
||||
<span *ngIf="!community.title && community.shortTitle">
|
||||
{{community.shortTitle.slice(0, thresholdTitle)}}
|
||||
<span *ngIf="community.shortTitle.length > thresholdTitle">...</span>
|
||||
<span *ngIf="!community.displayTitle && community.displayShortTitle">
|
||||
{{community.displayShortTitle.slice(0, thresholdTitle)}}
|
||||
<span *ngIf="community.displayShortTitle.length > thresholdTitle">...</span>
|
||||
</span>
|
||||
</h3>
|
||||
<div class="uk-text-center" *ngIf="community.description != null && showDescription">
|
||||
|
|
|
@ -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();
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue