[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
This commit is contained in:
konstantina.galouni 2019-09-16 13:22:06 +00:00
parent fc3e2f9b19
commit c44e1d914f
2 changed files with 2 additions and 2 deletions

View File

@ -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") {

View File

@ -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") {