From 968616c9c0f3a502326f45143f0cd3632ece8557 Mon Sep 17 00:00:00 2001 From: nsemets Date: Wed, 17 Dec 2025 17:53:58 +0200 Subject: [PATCH] fix(meta-tags): removed citation author institution from meta tags --- src/app/features/project/project.component.ts | 14 +------------- src/app/shared/services/meta-tags.service.ts | 1 - 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/src/app/features/project/project.component.ts b/src/app/features/project/project.component.ts index 47407f439..0ec8ced6b 100644 --- a/src/app/features/project/project.component.ts +++ b/src/app/features/project/project.component.ts @@ -26,13 +26,7 @@ import { ContributorsSelectors, GetBibliographicContributors } from '@osf/shared import { AnalyticsService } from '@shared/services/analytics.service'; import { CurrentResourceSelectors } from '@shared/stores/current-resource'; -import { - GetProjectById, - GetProjectIdentifiers, - GetProjectInstitutions, - GetProjectLicense, - ProjectOverviewSelectors, -} from './overview/store'; +import { GetProjectById, GetProjectIdentifiers, GetProjectLicense, ProjectOverviewSelectors } from './overview/store'; @Component({ selector: 'osf-project', @@ -66,8 +60,6 @@ export class ProjectComponent implements OnDestroy { readonly isBibliographicContributorsLoading = select(ContributorsSelectors.isBibliographicContributorsLoading); readonly license = select(ProjectOverviewSelectors.getLicense); readonly isLicenseLoading = select(ProjectOverviewSelectors.isLicenseLoading); - readonly institutions = select(ProjectOverviewSelectors.getInstitutions); - readonly isInstitutionsLoading = select(ProjectOverviewSelectors.isInstitutionsLoading); private readonly lastMetaTagsProjectId = signal(null); private readonly projectId = toSignal(this.route.params.pipe(map((params) => params['id']))); @@ -77,14 +69,12 @@ export class ProjectComponent implements OnDestroy { !this.isProjectLoading() && !this.isBibliographicContributorsLoading() && !this.isLicenseLoading() && - !this.isInstitutionsLoading() && !!this.currentProject() ); private readonly actions = createDispatchMap({ getProject: GetProjectById, getLicense: GetProjectLicense, - getInstitutions: GetProjectInstitutions, getIdentifiers: GetProjectIdentifiers, getBibliographicContributors: GetBibliographicContributors, }); @@ -100,7 +90,6 @@ export class ProjectComponent implements OnDestroy { this.actions.getProject(id); this.actions.getIdentifiers(id); this.actions.getBibliographicContributors(id, ResourceType.Project); - this.actions.getInstitutions(id); } }); @@ -160,7 +149,6 @@ export class ProjectComponent implements OnDestroy { publishedDate: this.datePipe.transform(project.dateCreated, 'yyyy-MM-dd'), modifiedDate: this.datePipe.transform(project.dateModified, 'yyyy-MM-dd'), keywords, - institution: this.institutions().map((institution) => institution.name), contributors: this.bibliographicContributors().map((contributor) => ({ fullName: contributor.fullName, givenName: contributor.givenName, diff --git a/src/app/shared/services/meta-tags.service.ts b/src/app/shared/services/meta-tags.service.ts index 3bfcb37eb..a3bc9e727 100644 --- a/src/app/shared/services/meta-tags.service.ts +++ b/src/app/shared/services/meta-tags.service.ts @@ -170,7 +170,6 @@ export class MetaTagsService { citation_title: metaTagsData.title, citation_doi: metaTagsData.doi, citation_publisher: metaTagsData.siteName, - citation_author_institution: metaTagsData.institution, citation_author: metaTagsData.contributors, citation_description: metaTagsData.description, citation_public_url: metaTagsData.url,