diff --git a/portal-2/src/app/searchPages/searchUtils/searchPage.component.ts b/portal-2/src/app/searchPages/searchUtils/searchPage.component.ts index 3e6ed698..8ee7caf0 100644 --- a/portal-2/src/app/searchPages/searchUtils/searchPage.component.ts +++ b/portal-2/src/app/searchPages/searchUtils/searchPage.component.ts @@ -59,7 +59,10 @@ import {OpenaireProperties} from '../../utils/properties/openaireProperties';

- Show results in table view + + + Show results in table view +

- Show results in default view + + + Show results in search view +

diff --git a/portal-2/src/app/utils/pipes/contentProvidersDatatable.pipe.ts b/portal-2/src/app/utils/pipes/contentProvidersDatatable.pipe.ts index ef1b074a..29f25370 100644 --- a/portal-2/src/app/utils/pipes/contentProvidersDatatable.pipe.ts +++ b/portal-2/src/app/utils/pipes/contentProvidersDatatable.pipe.ts @@ -17,7 +17,7 @@ export class ContentProvidersDatatablePipe implements PipeTransform { var errorCodes:ErrorCodes = new ErrorCodes(); searchUtils.status = errorCodes.LOADING; - var result = array.filter(row=>this.filterAll(row, searchUtils.keyword, filters)); + var result = array.filter(row=>this.filterAll(row, searchUtils.keyword.toLowerCase(), filters)); searchUtils.totalResults = result.length; @@ -35,25 +35,25 @@ export class ContentProvidersDatatablePipe implements PipeTransform { let returnValue: boolean = false; if(query) { - if(row.title.name.indexOf(query) > -1) { + if(row.title.name.toLowerCase().indexOf(query) > -1) { returnValue = true; } - if(row.type.indexOf(query) > -1) { + if(row.type.toLowerCase().indexOf(query) > -1) { returnValue = true; } - if(row.countries.indexOf(query) > -1) { + if(row.countries.toLowerCase().indexOf(query) > -1) { returnValue = true; } - if(row.compatibility.indexOf(query) > -1) { + if(row.compatibility.toLowerCase().indexOf(query) > -1) { returnValue = true; } if(row.organizations > 0) { for(let organization of row.organizations) { - if(row.organization.indexOf(query) > -1) { + if(row.organization.toLowerCase().indexOf(query) > -1) { returnValue = true; break; }