From e2600367b3217c5f6de6eb4e93f30a9b5f64c7ed Mon Sep 17 00:00:00 2001 From: Jackson Hoffart Date: Thu, 6 Nov 2025 12:12:11 +0000 Subject: [PATCH 1/3] fix: remove references to old schema fields --- src/pages/PathwayDetailPage.tsx | 5 +++-- src/utils/searchUtils.ts | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/pages/PathwayDetailPage.tsx b/src/pages/PathwayDetailPage.tsx index 5c0a4ea1..7a7af358 100644 --- a/src/pages/PathwayDetailPage.tsx +++ b/src/pages/PathwayDetailPage.tsx @@ -160,11 +160,12 @@ const PathwayDetailPage: React.FC = () => {

- Publisher: {pathway.publisher} + Publisher:{" "} + {pathway.publication.publisher.full}

Published:{" "} - {pathway.publicationYear} + {pathway.publication.year}

diff --git a/src/utils/searchUtils.ts b/src/utils/searchUtils.ts index 68a4e4a4..54324d85 100644 --- a/src/utils/searchUtils.ts +++ b/src/utils/searchUtils.ts @@ -254,8 +254,8 @@ export const filterPathways = ( ...pathway.geography.map((s) => geographyLabel(s)), ...pathway.sectors.map((s) => s.name), ...pathway.metric, - pathway.publisher, - pathway.publicationYear, + pathway.publication.publisher.full, + pathway.publication.year, ]; return searchFields.some((field) => From 4464ba0056eca855b3ccf6e9a93eac0629d80ab4 Mon Sep 17 00:00:00 2001 From: Jackson Hoffart Date: Thu, 6 Nov 2025 13:48:18 +0000 Subject: [PATCH 2/3] add publisher.short to search path --- src/utils/searchUtils.ts | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/utils/searchUtils.ts b/src/utils/searchUtils.ts index 54324d85..5b0748f8 100644 --- a/src/utils/searchUtils.ts +++ b/src/utils/searchUtils.ts @@ -203,15 +203,15 @@ export const filterPathways = ( const ok = mode === "ALL" ? matchesOptionalFacetAll( - normalizedSelected, - pathway.geography ?? [], - (g) => norm(g), - ) + normalizedSelected, + pathway.geography ?? [], + (g) => norm(g), + ) : matchesOptionalFacetAny( - normalizedSelected, - pathway.geography ?? [], - (g) => norm(g), - ); + normalizedSelected, + pathway.geography ?? [], + (g) => norm(g), + ); if (!ok) return false; } @@ -255,6 +255,7 @@ export const filterPathways = ( ...pathway.sectors.map((s) => s.name), ...pathway.metric, pathway.publication.publisher.full, + pathway.publication.publisher.short, pathway.publication.year, ]; From b4fbeca10f26830d1ddfe52ecac12325d25e844d Mon Sep 17 00:00:00 2001 From: Jackson Hoffart Date: Thu, 6 Nov 2025 13:52:48 +0000 Subject: [PATCH 3/3] prettier --write . --- src/utils/searchUtils.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/utils/searchUtils.ts b/src/utils/searchUtils.ts index 5b0748f8..2fdc4dc7 100644 --- a/src/utils/searchUtils.ts +++ b/src/utils/searchUtils.ts @@ -203,15 +203,15 @@ export const filterPathways = ( const ok = mode === "ALL" ? matchesOptionalFacetAll( - normalizedSelected, - pathway.geography ?? [], - (g) => norm(g), - ) + normalizedSelected, + pathway.geography ?? [], + (g) => norm(g), + ) : matchesOptionalFacetAny( - normalizedSelected, - pathway.geography ?? [], - (g) => norm(g), - ); + normalizedSelected, + pathway.geography ?? [], + (g) => norm(g), + ); if (!ok) return false; }