Skip to content

Commit

Permalink
Replace gpn_id with planetary_feature_id
Browse files Browse the repository at this point in the history
  • Loading branch information
thostetler committed Dec 7, 2024
1 parent a74fabc commit 5c711f3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/api/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/api/search/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export const getAbstractParams = (id: string): IADSApiSearchParams => ({
'pubnote',
'book_author',
'planetary_feature',
'gpn_id',
'planetary_feature_id',
],
q: `identifier:"${id}"`,
});
Expand Down
2 changes: 1 addition & 1 deletion src/api/search/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/pages/abs/[id]/abstract.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import {
Tooltip,
Tr,
useDisclosure,
VisuallyHidden,
useToast,
VisuallyHidden,
} from '@chakra-ui/react';
import { EditIcon, ExternalLinkIcon, TriangleDownIcon } from '@chakra-ui/icons';

Expand Down Expand Up @@ -244,7 +244,7 @@ const Details = ({ doc }: IDetailsProps): ReactElement => {
)}
</Detail>
<Keywords keywords={doc.keyword} />
<PlanetaryFeatures features={doc.planetary_feature} ids={doc.gpn_id} />
<PlanetaryFeatures features={doc.planetary_feature} ids={doc.planetary_feature_id} />
<Detail label="Comment(s)" value={doc.comment} />
<Detail label="E-Print Comment(s)" value={doc.pubnote} />
</Tbody>
Expand Down

0 comments on commit 5c711f3

Please sign in to comment.