[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:
parent
fc3e2f9b19
commit
c44e1d914f
|
@ -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") {
|
||||
|
|
|
@ -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") {
|
||||
|
|
Loading…
Reference in New Issue