diff --git a/landingPages/dataProvider/dataProvider.component.html b/landingPages/dataProvider/dataProvider.component.html index c0582e3a..92ce4c0a 100644 --- a/landingPages/dataProvider/dataProvider.component.html +++ b/landingPages/dataProvider/dataProvider.component.html @@ -87,14 +87,7 @@ OpenAIRE Text Mining {{" "}} - - - {{country}} - {{' '}} - - - 0"> {{country}} diff --git a/landingPages/landing-utils/landing-header/landing-header.component.ts b/landingPages/landing-utils/landing-header/landing-header.component.ts index fc31ac42..5b44fe23 100644 --- a/landingPages/landing-utils/landing-header/landing-header.component.ts +++ b/landingPages/landing-utils/landing-header/landing-header.component.ts @@ -15,10 +15,7 @@ import {AlertModal} from "../../../utils/modal/alert"; {{entityType}} - - {{' . ' + removeDuplicates(types).join(' . ')}} - - + {{' . ' + removeUnknown(types, true).join(' . ')}} diff --git a/landingPages/result/resultLanding.component.html b/landingPages/result/resultLanding.component.html index 69dddba2..b6013621 100644 --- a/landingPages/result/resultLanding.component.html +++ b/landingPages/result/resultLanding.component.html @@ -32,23 +32,12 @@
- {{resultLandingInfo.accessMode}} - {{" "}} - {{resultLandingInfo.accessMode}} {{" "}} - - - {{language}} - {{' '}} - - - 0"> {{language}} diff --git a/searchPages/searchUtils/searchFilter.component.ts b/searchPages/searchUtils/searchFilter.component.ts index 122b9f1f..7adcb170 100644 --- a/searchPages/searchUtils/searchFilter.component.ts +++ b/searchPages/searchUtils/searchFilter.component.ts @@ -26,10 +26,12 @@ export class SearchFilterComponent { public isOpen:boolean=false; - constructor () { + constructor () { } - ngOnInit() {} + ngOnInit() { + this.filter.values = this.filter.values.filter(value => !value.name.toLowerCase().includes('unknown') && !value.name.toLowerCase().includes('not available')); + } public _formatTitle(title,length){ return (((title+" ("+length+")").length >this._maxCharacters)?(title.substring(0,(this._maxCharacters - (" ("+length+")").length - ('...').length))+"..."):title+" ("+(length>95?"100":length)+")") diff --git a/utils/result-preview/result-preview.component.html b/utils/result-preview/result-preview.component.html index 3a845869..14fd003d 100644 --- a/utils/result-preview/result-preview.component.html +++ b/utils/result-preview/result-preview.component.html @@ -13,13 +13,9 @@ {{getTypeName(result.resultType)}} - - {{' . ' + removeDuplicates(result.types).join(' . ')}} - - 0"> - {{' . ' + removeDuplicates(removeDuplicates(result.types)).join(' . ')}} + {{' . ' + removeUnknown(removeDuplicates(result.types)).join(' . ')}} {{' . ' + result.year.toString()}} . {{result.startYear}} - {{result.endYear}} @@ -120,17 +116,12 @@
- - {{result.accessMode}} - {{' '}} - {{result.accessMode}} - {{' '}} + {{result.accessMode}} + {{' '}} @@ -147,14 +138,7 @@ title="Open Access mandate for Publications and Research Data"> Open Access mandate for Publications and Research Data {{' '}} - - - {{language}} - {{' '}} - - + {{language}}