From 36f169572d53942d29c086b516fb18bdca244ee1 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Tue, 9 Apr 2019 22:06:34 +0000 Subject: [PATCH] [Trunk|Library]: Community search results: Cut description on two lines git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@55251 d315682c-612b-4755-9ff5-7f18f6832af3 --- .../searchUtils/communitySearchResults.component.html | 6 +++--- searchPages/searchUtils/communitySearchResults.component.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/searchPages/searchUtils/communitySearchResults.component.html b/searchPages/searchUtils/communitySearchResults.component.html index 3e4b779d..c78567bc 100644 --- a/searchPages/searchUtils/communitySearchResults.component.html +++ b/searchPages/searchUtils/communitySearchResults.component.html @@ -11,7 +11,7 @@
-
+
Creation Date: {{result.community.date | date:'dd-MM-yyyy'}}
-
+
Type: {{(result.community.type == 'ri')? 'Research Initiative': 'Research Community'}}
diff --git a/searchPages/searchUtils/communitySearchResults.component.ts b/searchPages/searchUtils/communitySearchResults.component.ts index fda3e690..4539572a 100644 --- a/searchPages/searchUtils/communitySearchResults.component.ts +++ b/searchPages/searchUtils/communitySearchResults.component.ts @@ -47,7 +47,7 @@ export class CommunitySearchResultsComponent { } public _formatDescription(description){ - return (((description).length >this.maxCharacters)?(description.substring(0,(this.maxCharacters - ('...').length))+"..."):description); + return (((description).length > this.maxCharacters)?(description.substring(0,(this.maxCharacters - ('...').length))+"..."):description); } public confirmModalOpen(community: CommunityInfo) {