From c44e1d914f115f86c48d43f13573f888e49c684a Mon Sep 17 00:00:00 2001 From: "konstantina.galouni" Date: Mon, 16 Sep 2019 13:22:06 +0000 Subject: [PATCH] [Trunk | Library]: [Bug Fix] searchResearchResults.component & advancedSearchResearchResults.component: getEntityName() method should be public (it is called in html) git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@57086 d315682c-612b-4755-9ff5-7f18f6832af3 --- searchPages/advanced/advancedSearchResearchResults.component.ts | 2 +- searchPages/simple/searchResearchResults.component.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/searchPages/advanced/advancedSearchResearchResults.component.ts b/searchPages/advanced/advancedSearchResearchResults.component.ts index 7ea3cdcc..90cb8ab5 100644 --- a/searchPages/advanced/advancedSearchResearchResults.component.ts +++ b/searchPages/advanced/advancedSearchResearchResults.component.ts @@ -201,7 +201,7 @@ export class AdvancedSearchResearchResultsComponent { console.error(this.getEntityName(this.resultType, true, true)+" advanced Search Page: "+message, error); } - private getEntityName (entityType:string, plural:boolean, full:boolean): string { + public getEntityName (entityType:string, plural:boolean, full:boolean): string { if(entityType == "publication") { return "publication" + (plural ? "s" : ""); } else if(entityType == "dataset") { diff --git a/searchPages/simple/searchResearchResults.component.ts b/searchPages/simple/searchResearchResults.component.ts index a5fcd310..22c65ebf 100644 --- a/searchPages/simple/searchResearchResults.component.ts +++ b/searchPages/simple/searchResearchResults.component.ts @@ -239,7 +239,7 @@ export class SearchResearchResultsComponent { console.error(this.getEntityName(this.resultType, true, true)+" simple Search Page (SearchResearchResultsComponent): "+message, error); } - private getEntityName (entityType:string, plural:boolean, full:boolean): string { + public getEntityName (entityType:string, plural:boolean, full:boolean): string { if(entityType == "publication") { return "publication" + (plural ? "s" : ""); } else if(entityType == "dataset") {