import {Component, Input} from '@angular/core';
import { FetchPublications } from '../../utils/fetchEntitiesClasses/fetchPublications.class';
import { FetchDatasets } from '../../utils/fetchEntitiesClasses/fetchDatasets.class';
import { FetchSoftware } from '../../utils/fetchEntitiesClasses/fetchSoftware.class';
import { FetchOrps } from '../../utils/fetchEntitiesClasses/fetchOrps.class';
import { ErrorCodes} from '../../utils/properties/errorCodes';
import {RouterHelper} from '../../utils/routerHelper.class';
import { Observable } from 'rxjs/Observable';
import{EnvProperties} from '../../utils/properties/env-properties';
@Component({
selector: 'relatedDatasourcesTab',
template: `
Content Provider Name | 0 || fetchPublications.searchUtils.status == errorCodes.ERROR" class="uk-text-center"> Number of Publications | 0 || fetchDatasets.searchUtils.status == errorCodes.ERROR" class="uk-text-center"> Number of Research Data | 0 || fetchSoftware.searchUtils.status == errorCodes.ERROR" class="uk-text-center"> Number of Software | 0 || fetchOrps.searchUtils.status == errorCodes.ERROR" class="uk-text-center"> Number of Other Research Products | ||||
---|---|---|---|---|---|---|---|---|
{{results.get(id).name}} | 0" class="uk-text-center"> {{results.get(id).countPublications | number}} | - | 0" class="uk-text-center"> {{results.get(id).countDatasets | number}} | - | 0" class="uk-text-center"> {{results.get(id).countSoftware | number}} | - | 0" class="uk-text-center"> {{results.get(id).countOrps | number}} | - |