import {Component, Input} from '@angular/core';
import { FetchResearchResults } from '../../utils/fetchEntitiesClasses/fetchResearchResults.class';
import { ErrorCodes} from '../../utils/properties/errorCodes';
import { RouterHelper } from '../../utils/routerHelper.class';
import { EnvProperties } from '../../utils/properties/env-properties';
import {AlertModal} from "../../utils/modal/alert";
import {properties} from "../../../../environments/environment";
import {OpenaireEntities} from "../../utils/properties/searchFields";
@Component({
selector: 'relatedDatasourcesTab',
template: `
*Only top 100 {{openaireEntities.DATASOURCES}} that host {{openaireEntities.RESULTS}} which are also available via the Federated Research Data Repository are shown.
pageSize" [type]="openaireEntities.DATASOURCES"
[page]="page" [pageSize]="pageSize"
[totalResults]="results.length">
{{openaireEntities.DATASOURCE}} |
0 || fetchResults.searchUtils.status == errorCodes.ERROR"
class="uk-text-center">
{{openaireEntities.RESULTS}} in Explore
|
=(page-1)*pageSize && i
{{result.name}}
|
0" class="uk-text-center">
{{result.count | number}}
|
pageSize"
(pageChange)="updatePage($event)"
[currentPage]="page"
[size]="pageSize"
[totalResults]="results.length">
`
})
export class RelatedDatasourcesTabComponent {
@Input() dataproviderId: string;
// @Input() fetchPublications : FetchResearchResults;
// @Input() fetchDatasets : FetchResearchResults;
// @Input() fetchSoftware : FetchResearchResults;
// @Input() fetchOrps: FetchResearchResults;
@Input() fetchResults: FetchResearchResults;
// true: preprocessing is not over
@Input() loading: boolean = true;
// Εvery content provider's id is a single key of a map
//@Input() results: Map