@@ -26,13 +26,7 @@ import { ContributorsSelectors, GetBibliographicContributors } from '@osf/shared
2626import { AnalyticsService } from '@shared/services/analytics.service' ;
2727import { CurrentResourceSelectors } from '@shared/stores/current-resource' ;
2828
29- import {
30- GetProjectById ,
31- GetProjectIdentifiers ,
32- GetProjectInstitutions ,
33- GetProjectLicense ,
34- ProjectOverviewSelectors ,
35- } from './overview/store' ;
29+ import { GetProjectById , GetProjectIdentifiers , GetProjectLicense , ProjectOverviewSelectors } from './overview/store' ;
3630
3731@Component ( {
3832 selector : 'osf-project' ,
@@ -66,8 +60,6 @@ export class ProjectComponent implements OnDestroy {
6660 readonly isBibliographicContributorsLoading = select ( ContributorsSelectors . isBibliographicContributorsLoading ) ;
6761 readonly license = select ( ProjectOverviewSelectors . getLicense ) ;
6862 readonly isLicenseLoading = select ( ProjectOverviewSelectors . isLicenseLoading ) ;
69- readonly institutions = select ( ProjectOverviewSelectors . getInstitutions ) ;
70- readonly isInstitutionsLoading = select ( ProjectOverviewSelectors . isInstitutionsLoading ) ;
7163
7264 private readonly lastMetaTagsProjectId = signal < string | null > ( null ) ;
7365 private readonly projectId = toSignal ( this . route . params . pipe ( map ( ( params ) => params [ 'id' ] ) ) ) ;
@@ -77,14 +69,12 @@ export class ProjectComponent implements OnDestroy {
7769 ! this . isProjectLoading ( ) &&
7870 ! this . isBibliographicContributorsLoading ( ) &&
7971 ! this . isLicenseLoading ( ) &&
80- ! this . isInstitutionsLoading ( ) &&
8172 ! ! this . currentProject ( )
8273 ) ;
8374
8475 private readonly actions = createDispatchMap ( {
8576 getProject : GetProjectById ,
8677 getLicense : GetProjectLicense ,
87- getInstitutions : GetProjectInstitutions ,
8878 getIdentifiers : GetProjectIdentifiers ,
8979 getBibliographicContributors : GetBibliographicContributors ,
9080 } ) ;
@@ -100,7 +90,6 @@ export class ProjectComponent implements OnDestroy {
10090 this . actions . getProject ( id ) ;
10191 this . actions . getIdentifiers ( id ) ;
10292 this . actions . getBibliographicContributors ( id , ResourceType . Project ) ;
103- this . actions . getInstitutions ( id ) ;
10493 }
10594 } ) ;
10695
@@ -160,7 +149,6 @@ export class ProjectComponent implements OnDestroy {
160149 publishedDate : this . datePipe . transform ( project . dateCreated , 'yyyy-MM-dd' ) ,
161150 modifiedDate : this . datePipe . transform ( project . dateModified , 'yyyy-MM-dd' ) ,
162151 keywords,
163- institution : this . institutions ( ) . map ( ( institution ) => institution . name ) ,
164152 contributors : this . bibliographicContributors ( ) . map ( ( contributor ) => ( {
165153 fullName : contributor . fullName ,
166154 givenName : contributor . givenName ,
0 commit comments