From 3c70fdbd5a661b2f5c48f6fd62f322f36550c483 Mon Sep 17 00:00:00 2001 From: Tim Hostetler <6970899+thostetler@users.noreply.github.com> Date: Sat, 7 Dec 2024 10:41:52 -0500 Subject: [PATCH] Replace gpn_id with planetary_feature_id --- src/api/models.ts | 2 +- src/api/search/models.ts | 2 +- src/api/search/types.ts | 2 +- src/pages/abs/[id]/abstract.tsx | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/api/models.ts b/src/api/models.ts index c3844811f..354eb1de2 100644 --- a/src/api/models.ts +++ b/src/api/models.ts @@ -40,7 +40,7 @@ export type SolrField = | 'first_author_facet_hier' | 'first_author_norm' | 'planetary_feature' - | 'gpn_id' + | 'planetary_feature_id' | 'grant' | 'grant_agencies' | 'grant_facet_hier' diff --git a/src/api/search/models.ts b/src/api/search/models.ts index 30a0c913d..7eb98fefc 100644 --- a/src/api/search/models.ts +++ b/src/api/search/models.ts @@ -94,7 +94,7 @@ export const getAbstractParams = (id: string): IADSApiSearchParams => ({ 'pubnote', 'book_author', 'planetary_feature', - 'gpn_id', + 'planetary_feature_id', ], q: `identifier:"${id}"`, }); diff --git a/src/api/search/types.ts b/src/api/search/types.ts index 3853834cf..637d56b81 100644 --- a/src/api/search/types.ts +++ b/src/api/search/types.ts @@ -247,7 +247,7 @@ export interface IDocsEntity { first_author_norm?: string; first_author?: string; planetary_feature?: string[]; - gpn_id?: string[]; + planetary_feature_id?: string[]; grant_agencies?: string; grant_facet_hier?: string; grant_id?: string; diff --git a/src/pages/abs/[id]/abstract.tsx b/src/pages/abs/[id]/abstract.tsx index 63ff94c3d..366f8977f 100644 --- a/src/pages/abs/[id]/abstract.tsx +++ b/src/pages/abs/[id]/abstract.tsx @@ -20,8 +20,8 @@ import { Tooltip, Tr, useDisclosure, - VisuallyHidden, useToast, + VisuallyHidden, } from '@chakra-ui/react'; import { EditIcon, ExternalLinkIcon, TriangleDownIcon } from '@chakra-ui/icons'; @@ -244,7 +244,7 @@ const Details = ({ doc }: IDetailsProps): ReactElement => { )} - +