[Aggregator & Library | new-theme]: Hide datasources in eosc & Do not show compatibility "Not yet registered" in services.
1. app.component.ts: [Bug fix] Add services search page in menu items if "service" entity is enabled (not datasource". 2. aggregators.ts: Added "datasource" entity and "/search/find/datasources" page in disabled list for eosc. 3. result-preview.component.html: a. Do not show "Not yet registered" compatibility label in services. b. For eosc, show in datasources "Not yet registered in OpenAIRE". 4. quick-selections.component.ts: Changed uk-child-width-auto@l to uk-child-width-auto@m (not nice in medium screens for 2 types). 5. newSearchPage.component.ts: "Include" filter name for services changed to "Other Services"
This commit is contained in:
parent
8a5d5d954a
commit
a4912542c0
|
@ -97,7 +97,7 @@ export class NewSearchPageComponent {
|
|||
};
|
||||
serviceTypeOptions = {
|
||||
"datasources": {"id": "datasource", "name": OpenaireEntities.DATASOURCES},
|
||||
"services": {"id": "service", "name": OpenaireEntities.SERVICES}
|
||||
"services": {"id": "service", "name": "Other "+OpenaireEntities.SERVICES}
|
||||
}
|
||||
selectedTypesNum = 0;
|
||||
@Input() quickFilter: { filter: Filter, selected: boolean, filterId: string, value: string };
|
||||
|
|
|
@ -19,7 +19,7 @@ import {OpenaireEntities} from "../../utils/properties/searchFields";
|
|||
<div class="uk-flex uk-flex-middle uk-text-small">
|
||||
<div class="uk-width-auto@s uk-width-1-3 uk-flex uk-flex-right uk-text-meta uk-margin-small-right">Include:</div>
|
||||
<div class="uk-width-expand">
|
||||
<div class="uk-grid uk-grid-small uk-flex-middle uk-child-width-auto@l uk-child-width-1-2@s uk-child-width-1-1" uk-grid>
|
||||
<div class="uk-grid uk-grid-small uk-flex-middle uk-child-width-auto@m uk-child-width-1-2@s uk-child-width-1-1" uk-grid>
|
||||
<ng-container *ngFor="let value of resultTypes.values">
|
||||
<div>
|
||||
<input #input type="checkbox" class="uk-checkbox" [(ngModel)]="value.selected" (ngModelChange)="changed()"/>
|
||||
|
|
|
@ -137,10 +137,11 @@
|
|||
class="uk-label" title="Compatibility">
|
||||
{{result.compatibility}}
|
||||
</span>{{' '}}
|
||||
<span
|
||||
*ngIf="result.compatibility != undefined && result.compatibility != '' && result.compatibility == 'not available'"
|
||||
class="uk-label uk-label-danger" title="OpenAIRE Compatibility">
|
||||
Not yet registered
|
||||
<span
|
||||
*ngIf="result.compatibility != undefined && result.compatibility != '' && result.compatibility == 'not available'
|
||||
&& result.resultType != 'service'"
|
||||
class="uk-label uk-label-danger" title="OpenAIRE Compatibility">
|
||||
Not yet registered <span *ngIf="properties.adminToolsPortalType == 'eosc'">in OpenAIRE</span>
|
||||
</span>{{' '}}
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue