[Library | Trunk]: Remove Unknown values for every enviroment. Also add this restriction to filters.
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@58602 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
456b2d5811
commit
81240f9325
|
@ -87,14 +87,7 @@
|
|||
<span *ngIf="dataProviderInfo.aggregationStatus && dataProviderInfo.aggregationStatus.fulltexts && dataProviderInfo.aggregationStatus.fulltexts > 0"
|
||||
class="uk-label custom-label label-dataprovider ">OpenAIRE Text Mining
|
||||
</span>{{" "}}
|
||||
<span
|
||||
*ngIf="properties.environment !== 'production' && dataProviderInfo.countries && dataProviderInfo.countries.length > 0">
|
||||
<ng-container *ngFor="let country of dataProviderInfo.countries">
|
||||
<span class="uk-label custom-label label-country" title="Country">{{country}}</span>
|
||||
{{' '}}
|
||||
</ng-container>
|
||||
</span>
|
||||
<span *ngIf="properties.environment === 'production' && dataProviderInfo.countries &&
|
||||
<span *ngIf="dataProviderInfo.countries &&
|
||||
removeUnknown(dataProviderInfo.countries).length > 0">
|
||||
<ng-container *ngFor="let country of removeUnknown(dataProviderInfo.countries)">
|
||||
<span class="uk-label custom-label label-country" title="Country">{{country}}</span>
|
||||
|
|
|
@ -15,10 +15,7 @@ import {AlertModal} from "../../../utils/modal/alert";
|
|||
<span *ngIf="entityType" class="uk-text-capitalize">
|
||||
{{entityType}}
|
||||
</span>
|
||||
<span *ngIf="properties.environment !== 'production' && types && removeDuplicates(types).length > 0">
|
||||
{{' . ' + removeDuplicates(types).join(' . ')}}
|
||||
</span>
|
||||
<span *ngIf="properties.environment === 'production' && types && removeUnknown(types, true).length > 0">
|
||||
<span *ngIf="types && removeUnknown(types, true).length > 0">
|
||||
{{' . ' + removeUnknown(types, true).join(' . ')}}
|
||||
</span>
|
||||
<span>
|
||||
|
|
|
@ -32,23 +32,12 @@
|
|||
</div>
|
||||
<!-- Labels -->
|
||||
<div class="uk-margin-bottom">
|
||||
<span *ngIf="properties.environment !== 'production' && resultLandingInfo.accessMode"
|
||||
[class]="'uk-label custom-label label-'+ accessClass(resultLandingInfo.accessMode)"
|
||||
title="Access Mode">{{resultLandingInfo.accessMode}}
|
||||
</span>{{" "}}
|
||||
<span *ngIf="properties.environment === 'production' && resultLandingInfo.accessMode
|
||||
<span *ngIf="resultLandingInfo.accessMode
|
||||
&& resultLandingInfo.accessMode.toLowerCase() !== 'not available'"
|
||||
[class]="'uk-label custom-label label-'+ accessClass(resultLandingInfo.accessMode)"
|
||||
title="Access Mode">{{resultLandingInfo.accessMode}}
|
||||
</span>{{" "}}
|
||||
<span
|
||||
*ngIf="properties.environment !== 'production' && resultLandingInfo.languages && resultLandingInfo.languages.length > 0">
|
||||
<ng-container *ngFor="let language of resultLandingInfo.languages">
|
||||
<span class="uk-label custom-label label-language" title="Language">{{language}}</span>
|
||||
{{' '}}
|
||||
</ng-container>
|
||||
</span>
|
||||
<span *ngIf="properties.environment === 'production' && resultLandingInfo.languages &&
|
||||
<span *ngIf="resultLandingInfo.languages &&
|
||||
removeUnknown(resultLandingInfo.languages).length > 0">
|
||||
<ng-container *ngFor="let language of removeUnknown(resultLandingInfo.languages)">
|
||||
<span class="uk-label custom-label label-language" title="Language">{{language}}</span>
|
||||
|
|
|
@ -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)+")")
|
||||
|
|
|
@ -13,13 +13,9 @@
|
|||
<span class="uk-text-capitalize">
|
||||
{{getTypeName(result.resultType)}}
|
||||
</span>
|
||||
<span
|
||||
*ngIf="properties.environment !== 'production' && result.types && removeDuplicates(result.types).length > 0">
|
||||
{{' . ' + removeDuplicates(result.types).join(' . ')}}
|
||||
</span>
|
||||
<span *ngIf="properties.environment === 'production' && result.types &&
|
||||
<span *ngIf="result.types &&
|
||||
removeUnknown(removeDuplicates(result.types)).length > 0">
|
||||
{{' . ' + removeDuplicates(removeDuplicates(result.types)).join(' . ')}}
|
||||
{{' . ' + removeUnknown(removeDuplicates(result.types)).join(' . ')}}
|
||||
</span>
|
||||
<span *ngIf="result.year">{{' . ' + result.year.toString()}}</span>
|
||||
<span *ngIf="result.startYear && result.endYear"> . {{result.startYear}} - {{result.endYear}}</span>
|
||||
|
@ -120,17 +116,12 @@
|
|||
</div>
|
||||
<!-- Labels -->
|
||||
<div class="uk-margin-small-bottom">
|
||||
<span *ngIf="properties.environment !== 'production' && result.accessMode"
|
||||
class="uk-label custom-label" [ngClass]="'label-' + accessClass(result.accessMode)"
|
||||
title="Access Mode">
|
||||
{{result.accessMode}}
|
||||
</span>{{' '}}
|
||||
<span
|
||||
*ngIf="properties.environment === 'production' && result.accessMode && result.accessMode.toLowerCase() !== 'not available'"
|
||||
*ngIf="result.accessMode && result.accessMode.toLowerCase() !== 'not available'"
|
||||
class="uk-label custom-label" [ngClass]="'label-' + accessClass(result.accessMode)"
|
||||
title="Access Mode">
|
||||
{{result.accessMode}}
|
||||
</span>{{' '}}
|
||||
{{result.accessMode}}
|
||||
</span>{{' '}}
|
||||
<span *ngIf="result.openAccessMandatePublications && (!result.openAccessMandateDatasets)"
|
||||
class="uk-label custom-label label-open"
|
||||
title="Open Access mandate for Publications">
|
||||
|
@ -147,14 +138,7 @@
|
|||
title="Open Access mandate for Publications and Research Data">
|
||||
Open Access mandate for Publications and Research Data
|
||||
</span>{{' '}}
|
||||
<span *ngIf="properties.environment !== 'production' && result.languages && result.languages.length > 0">
|
||||
<span *ngFor="let language of result.languages"
|
||||
class="uk-label custom-label label-language " title="Language">
|
||||
{{language}}
|
||||
</span>{{' '}}
|
||||
</span>
|
||||
<span
|
||||
*ngIf="properties.environment === 'production' && result.languages && removeUnknown(result.languages).length > 0">
|
||||
<span *ngIf="result.languages && removeUnknown(result.languages).length > 0">
|
||||
<span *ngFor="let language of removeUnknown(result.languages)"
|
||||
class="uk-label custom-label label-language " title="Language">
|
||||
{{language}}
|
||||
|
|
Loading…
Reference in New Issue