enable impact factors for inspired-ris, show all featured datasets in enermaps featured tab

This commit is contained in:
argirok 2021-09-07 13:13:06 +03:00
parent 973ebda18e
commit d34fcacf1c
2 changed files with 64 additions and 62 deletions

View File

@ -368,7 +368,8 @@
resultType: 'publication', fetch: fetchPublications, resultType: 'publication', fetch: fetchPublications,
searchLinkToAdvancedPage: properties.searchLinkToAdvancedResults, searchLinkToAdvancedPage: properties.searchLinkToAdvancedResults,
params: getParamsForSearchLink('publications'), params: getParamsForSearchLink('publications'),
type: 'publication', typeName: 'publication', showImpactFactors:(community.communityId == 'elixir-gr')}"> type: 'publication', typeName: 'publication',
showImpactFactors:(community.communityId == 'elixir-gr' || community.communityId == 'inspired-ris' )}">
</ng-container> </ng-container>
</ng-template> </ng-template>
<ng-template #datasets_tab> <ng-template #datasets_tab>
@ -376,7 +377,8 @@
resultType: 'dataset', fetch: fetchDatasets, resultType: 'dataset', fetch: fetchDatasets,
searchLinkToAdvancedPage: properties.searchLinkToAdvancedResults, searchLinkToAdvancedPage: properties.searchLinkToAdvancedResults,
params: getParamsForSearchLink('datasets'), params: getParamsForSearchLink('datasets'),
type: 'dataset', typeName: 'research data', showImpactFactors:(community.communityId == 'elixir-gr')}"> type: 'dataset', typeName: 'research data',
showImpactFactors:(community.communityId == 'elixir-gr' || community.communityId == 'inspired-ris')}">
</ng-container> </ng-container>
</ng-template> </ng-template>
<ng-template #software_tab> <ng-template #software_tab>
@ -384,7 +386,8 @@
resultType: 'software', fetch: fetchSoftware, resultType: 'software', fetch: fetchSoftware,
searchLinkToAdvancedPage: properties.searchLinkToAdvancedResults, searchLinkToAdvancedPage: properties.searchLinkToAdvancedResults,
params: getParamsForSearchLink('software'), params: getParamsForSearchLink('software'),
type: 'software', typeName: 'software', showImpactFactors:(community.communityId == 'elixir-gr')}"> type: 'software', typeName: 'software',
showImpactFactors:(community.communityId == 'elixir-gr' || community.communityId == 'inspired-ris')}">
</ng-container> </ng-container>
</ng-template> </ng-template>
<ng-template #other_tab> <ng-template #other_tab>
@ -392,7 +395,8 @@
resultType: 'other', fetch: fetchOrps, resultType: 'other', fetch: fetchOrps,
searchLinkToAdvancedPage: properties.searchLinkToAdvancedResults, searchLinkToAdvancedPage: properties.searchLinkToAdvancedResults,
params: getParamsForSearchLink('other'), params: getParamsForSearchLink('other'),
type: 'orp', typeName: 'other products', showImpactFactors:(community.communityId == 'elixir-gr')}"> type: 'orp', typeName: 'other products',
showImpactFactors:(community.communityId == 'elixir-gr' || community.communityId == 'inspired-ris')}">
</ng-container> </ng-container>
</ng-template> </ng-template>
<ng-template #analytics_tab> <ng-template #analytics_tab>

View File

@ -14,14 +14,12 @@ import {StatisticsForDashboardComponent} from '../statistics/statistics.componen
import {StringUtils} from '../openaireLibrary/utils/string-utils.class'; import {StringUtils} from '../openaireLibrary/utils/string-utils.class';
import {PiwikHelper} from '../utils/piwikHelper'; import {PiwikHelper} from '../utils/piwikHelper';
import {HelperFunctions} from "../openaireLibrary/utils/HelperFunctions.class";
import {SearchCommunityDataprovidersService} from "../openaireLibrary/connect/contentProviders/searchDataproviders.service"; import {SearchCommunityDataprovidersService} from "../openaireLibrary/connect/contentProviders/searchDataproviders.service";
import {SearchCommunityProjectsService} from "../openaireLibrary/connect/projects/searchProjects.service"; import {SearchCommunityProjectsService} from "../openaireLibrary/connect/projects/searchProjects.service";
import {SearchResearchResultsService} from "../openaireLibrary/services/searchResearchResults.service"; import {SearchResearchResultsService} from "../openaireLibrary/services/searchResearchResults.service";
import {RouterHelper} from "../openaireLibrary/utils/routerHelper.class"; import {RouterHelper} from "../openaireLibrary/utils/routerHelper.class";
import {SEOService} from "../openaireLibrary/sharedComponents/SEO/SEO.service"; import {SEOService} from "../openaireLibrary/sharedComponents/SEO/SEO.service";
import {UserManagementService} from "../openaireLibrary/services/user-management.service"; import {UserManagementService} from "../openaireLibrary/services/user-management.service";
import {SubscribeComponent} from "../utils/subscribe/subscribe.component";
import {SearchCustomFilter} from "../openaireLibrary/searchPages/searchUtils/searchUtils.class"; import {SearchCustomFilter} from "../openaireLibrary/searchPages/searchUtils/searchUtils.class";
import {FetchResearchResults} from "../openaireLibrary/utils/fetchEntitiesClasses/fetchResearchResults.class"; import {FetchResearchResults} from "../openaireLibrary/utils/fetchEntitiesClasses/fetchResearchResults.class";
import {ErrorCodes} from "../openaireLibrary/utils/properties/errorCodes"; import {ErrorCodes} from "../openaireLibrary/utils/properties/errorCodes";
@ -543,7 +541,7 @@ export class CommunityComponent {
this.activeTab = 'mapping'; this.activeTab = 'mapping';
} else if (activeTabId == 'enermaps') { } else if (activeTabId == 'enermaps') {
this.show = 'enermaps'; this.show = 'enermaps';
this.searchFeaturedDatasets(1, this.fetchFeaturedDatasets.searchUtils.totalResults < 20?this.fetchFeaturedDatasets.searchUtils.totalResults:20); this.searchFeaturedDatasets(1, this.fetchFeaturedDatasets.searchUtils.totalResults);
} }
} }
} }