Skip to content

Commit 6a2d78e

Browse files
authored
[ENG-9955] Remove meta tag "citation_author_institution" #832
- Ticket: [ENG-9955] - Feature flag: n/a ## Summary of Changes 1. Removed citation author institution.
1 parent dd3152c commit 6a2d78e

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

src/app/features/project/project.component.ts

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,7 @@ import { ContributorsSelectors, GetBibliographicContributors } from '@osf/shared
2626
import { AnalyticsService } from '@shared/services/analytics.service';
2727
import { 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,

src/app/shared/services/meta-tags.service.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@ export class MetaTagsService {
170170
citation_title: metaTagsData.title,
171171
citation_doi: metaTagsData.doi,
172172
citation_publisher: metaTagsData.siteName,
173-
citation_author_institution: metaTagsData.institution,
174173
citation_author: metaTagsData.contributors,
175174
citation_description: metaTagsData.description,
176175
citation_public_url: metaTagsData.url,

0 commit comments

Comments
 (0)