From ce42435b04f3d8027e2c34762cd85759be9cc1b8 Mon Sep 17 00:00:00 2001 From: Jesiel Viana Date: Wed, 2 Oct 2024 15:59:02 -0300 Subject: [PATCH] alterando parametro de url para vivo --- src/components/BasicSearchBox.tsx | 2 +- .../customResultView/CustomResultViewGroups.tsx | 4 ++-- .../customResultView/CustomResultViewInstitutions.tsx | 2 +- .../customResultView/CustomResultViewJournals.tsx | 2 +- .../customResultView/CustomResultViewPatents.tsx | 4 ++-- .../customResultView/CustomResultViewPrograms.tsx | 4 ++-- .../customResultView/CustomResultViewPublications.tsx | 8 ++++---- .../customResultView/CustomResultViewSoftwares.tsx | 2 +- src/components/externalLinks/AuthorLink.tsx | 2 +- 9 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/components/BasicSearchBox.tsx b/src/components/BasicSearchBox.tsx index 8dc6253..e190c22 100644 --- a/src/components/BasicSearchBox.tsx +++ b/src/components/BasicSearchBox.tsx @@ -66,7 +66,7 @@ const BasicSearchBox = ({ console.log('selection', selection); defaultOnSelectAutocomplete(selection); } else { - router.push(`${VIVO_URL_ITEM_BASE}/${itemLinkPrefix}${selection.id.raw}&lang=${router.locale}`); + router.push(`${VIVO_URL_ITEM_BASE}/${itemLinkPrefix}${selection.id.raw}?lang=${router.locale}`); } }} inputView={({ getAutocomplete, getInputProps, getButtonProps }) => ( diff --git a/src/components/customResultView/CustomResultViewGroups.tsx b/src/components/customResultView/CustomResultViewGroups.tsx index a60a2b0..da162d7 100644 --- a/src/components/customResultView/CustomResultViewGroups.tsx +++ b/src/components/customResultView/CustomResultViewGroups.tsx @@ -20,7 +20,7 @@ const CustomResultViewGroups = ({ result, onClickLink }: ResultViewProps) => { {result.name.raw} @@ -42,7 +42,7 @@ const CustomResultViewGroups = ({ result, onClickLink }: ResultViewProps) => { ))} diff --git a/src/components/customResultView/CustomResultViewInstitutions.tsx b/src/components/customResultView/CustomResultViewInstitutions.tsx index 7d4dd25..236e8a1 100644 --- a/src/components/customResultView/CustomResultViewInstitutions.tsx +++ b/src/components/customResultView/CustomResultViewInstitutions.tsx @@ -17,7 +17,7 @@ const CustomResultViewPeople = ({ result, onClickLink }: ResultViewProps) => { {result.name.raw} diff --git a/src/components/customResultView/CustomResultViewJournals.tsx b/src/components/customResultView/CustomResultViewJournals.tsx index a8d55da..5c124da 100644 --- a/src/components/customResultView/CustomResultViewJournals.tsx +++ b/src/components/customResultView/CustomResultViewJournals.tsx @@ -18,7 +18,7 @@ const CustomResultViewJournals = ({ result, onClickLink }: ResultViewProps) => { {result.title?.raw} diff --git a/src/components/customResultView/CustomResultViewPatents.tsx b/src/components/customResultView/CustomResultViewPatents.tsx index 88bb5da..a3b6676 100644 --- a/src/components/customResultView/CustomResultViewPatents.tsx +++ b/src/components/customResultView/CustomResultViewPatents.tsx @@ -20,7 +20,7 @@ const CustomResultViewPatents = ({ result, onClickLink }: ResultViewProps) => { {result.espacenetTitle?.raw} @@ -39,7 +39,7 @@ const CustomResultViewPatents = ({ result, onClickLink }: ResultViewProps) => { ))} diff --git a/src/components/customResultView/CustomResultViewPrograms.tsx b/src/components/customResultView/CustomResultViewPrograms.tsx index 01f0674..b48f6d1 100644 --- a/src/components/customResultView/CustomResultViewPrograms.tsx +++ b/src/components/customResultView/CustomResultViewPrograms.tsx @@ -19,7 +19,7 @@ const CustomResultViewPeople = ({ result, onClickLink }: ResultViewProps) => { {result.name?.raw} @@ -36,7 +36,7 @@ const CustomResultViewPeople = ({ result, onClickLink }: ResultViewProps) => { ))} diff --git a/src/components/customResultView/CustomResultViewPublications.tsx b/src/components/customResultView/CustomResultViewPublications.tsx index 1e7c18f..2c3c166 100644 --- a/src/components/customResultView/CustomResultViewPublications.tsx +++ b/src/components/customResultView/CustomResultViewPublications.tsx @@ -20,7 +20,7 @@ const CustomResultViewPublications = ({ result, onClickLink }: ResultViewProps) {result.title.raw} @@ -50,7 +50,7 @@ const CustomResultViewPublications = ({ result, onClickLink }: ResultViewProps) ))} @@ -59,7 +59,7 @@ const CustomResultViewPublications = ({ result, onClickLink }: ResultViewProps) )) )} @@ -68,7 +68,7 @@ const CustomResultViewPublications = ({ result, onClickLink }: ResultViewProps) ))} diff --git a/src/components/customResultView/CustomResultViewSoftwares.tsx b/src/components/customResultView/CustomResultViewSoftwares.tsx index 4e7961d..05c543b 100644 --- a/src/components/customResultView/CustomResultViewSoftwares.tsx +++ b/src/components/customResultView/CustomResultViewSoftwares.tsx @@ -19,7 +19,7 @@ const CustomResultViewSoftwares = ({ result, onClickLink }: ResultViewProps) => {result.name.raw} diff --git a/src/components/externalLinks/AuthorLink.tsx b/src/components/externalLinks/AuthorLink.tsx index 20e25d5..c14d3e0 100644 --- a/src/components/externalLinks/AuthorLink.tsx +++ b/src/components/externalLinks/AuthorLink.tsx @@ -7,7 +7,7 @@ function AuthorLink({ id, name, idLattes, nationality }: Author) { const router = useRouter(); return ( <> - + {name} {nationality ? ({nationality}) : ''}