Skip to content

Commit

Permalink
alterando parametro de url para vivo
Browse files Browse the repository at this point in the history
  • Loading branch information
jesielviana committed Oct 2, 2024
1 parent 94b0053 commit ce42435
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/components/BasicSearchBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) => (
Expand Down
4 changes: 2 additions & 2 deletions src/components/customResultView/CustomResultViewGroups.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const CustomResultViewGroups = ({ result, onClickLink }: ResultViewProps) => {
<a
onClick={onClickLink}
target="_blank"
href={`${VIVO_URL_ITEM_BASE}/resgr_${result.id.raw}&lang=${router.locale}`}
href={`${VIVO_URL_ITEM_BASE}/resgr_${result.id.raw}?lang=${router.locale}`}
rel="noreferrer"
>
{result.name.raw}
Expand All @@ -42,7 +42,7 @@ const CustomResultViewGroups = ({ result, onClickLink }: ResultViewProps) => {
<ExternalLink
key={orgunit.id}
content={orgunit.name}
url={`${VIVO_URL_ITEM_BASE}/org_${orgunit.id}&lang=${router.locale}`}
url={`${VIVO_URL_ITEM_BASE}/org_${orgunit.id}?lang=${router.locale}`}
/>
</span>
))}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const CustomResultViewPeople = ({ result, onClickLink }: ResultViewProps) => {
<a
onClick={onClickLink}
target="_blank"
href={`${VIVO_URL_ITEM_BASE}/org_${result.id.raw}&lang=${router.locale}`}
href={`${VIVO_URL_ITEM_BASE}/org_${result.id.raw}?lang=${router.locale}`}
rel="noreferrer"
>
{result.name.raw}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const CustomResultViewJournals = ({ result, onClickLink }: ResultViewProps) => {
<a
onClick={onClickLink}
target="_blank"
href={`${VIVO_URL_ITEM_BASE}/journ_${result.id.raw}&lang=${router.locale}`}
href={`${VIVO_URL_ITEM_BASE}/journ_${result.id.raw}?lang=${router.locale}`}
rel="noreferrer"
>
{result.title?.raw}
Expand Down
4 changes: 2 additions & 2 deletions src/components/customResultView/CustomResultViewPatents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const CustomResultViewPatents = ({ result, onClickLink }: ResultViewProps) => {
<a
onClick={onClickLink}
target="_blank"
href={`${VIVO_URL_ITEM_BASE}/pat_${result.id.raw}&lang=${router.locale}`}
href={`${VIVO_URL_ITEM_BASE}/pat_${result.id.raw}?lang=${router.locale}`}
rel="noreferrer"
>
{result.espacenetTitle?.raw}
Expand All @@ -39,7 +39,7 @@ const CustomResultViewPatents = ({ result, onClickLink }: ResultViewProps) => {
<ExternalLink
key={applicant.id}
content={applicant.name}
url={`${VIVO_URL_ITEM_BASE}/org_${applicant.id}&lang=${router.locale}`}
url={`${VIVO_URL_ITEM_BASE}/org_${applicant.id}?lang=${router.locale}`}
/>
</span>
))}
Expand Down
4 changes: 2 additions & 2 deletions src/components/customResultView/CustomResultViewPrograms.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const CustomResultViewPeople = ({ result, onClickLink }: ResultViewProps) => {
<a
onClick={onClickLink}
target="_blank"
href={`${VIVO_URL_ITEM_BASE}/gprog_${result.id.raw}&lang=${router.locale}`}
href={`${VIVO_URL_ITEM_BASE}/gprog_${result.id.raw}?lang=${router.locale}`}
rel="noreferrer"
>
{result.name?.raw}
Expand All @@ -36,7 +36,7 @@ const CustomResultViewPeople = ({ result, onClickLink }: ResultViewProps) => {
<ExternalLink
key={org.id}
content={org.name}
url={`${VIVO_URL_ITEM_BASE}/org_${org.id}&lang=${router.locale}`}
url={`${VIVO_URL_ITEM_BASE}/org_${org.id}?lang=${router.locale}`}
/>
))}
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const CustomResultViewPublications = ({ result, onClickLink }: ResultViewProps)
<a
onClick={onClickLink}
target="_blank"
href={`${VIVO_URL_ITEM_BASE}/publ_${result.id.raw}&lang=${router.locale}`}
href={`${VIVO_URL_ITEM_BASE}/publ_${result.id.raw}?lang=${router.locale}`}
rel="noreferrer"
>
{result.title.raw}
Expand Down Expand Up @@ -50,7 +50,7 @@ const CustomResultViewPublications = ({ result, onClickLink }: ResultViewProps)
<ExternalLink
key={org.id}
content={org.name}
url={`${VIVO_URL_ITEM_BASE}/org_${org.id}&lang=${router.locale}`}
url={`${VIVO_URL_ITEM_BASE}/org_${org.id}?lang=${router.locale}`}
/>
))}

Expand All @@ -59,7 +59,7 @@ const CustomResultViewPublications = ({ result, onClickLink }: ResultViewProps)
<ExternalLink
key={title}
content={title}
url={`${VIVO_URL_ITEM_BASE}/serv_${service.id}&lang=${router.locale}`}
url={`${VIVO_URL_ITEM_BASE}/serv_${service.id}?lang=${router.locale}`}
/>
))
)}
Expand All @@ -68,7 +68,7 @@ const CustomResultViewPublications = ({ result, onClickLink }: ResultViewProps)
<ExternalLink
key={index}
content={journal.title ? journal.title : journal}
url={`${VIVO_URL_ITEM_BASE}/journ_${journal.id}&lang=${router.locale}`}
url={`${VIVO_URL_ITEM_BASE}/journ_${journal.id}?lang=${router.locale}`}
/>
))}
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const CustomResultViewSoftwares = ({ result, onClickLink }: ResultViewProps) =>
<a
onClick={onClickLink}
target="_blank"
href={`${VIVO_URL_ITEM_BASE}/softw_${result.id.raw}&lang=${router.locale}`}
href={`${VIVO_URL_ITEM_BASE}/softw_${result.id.raw}?lang=${router.locale}`}
rel="noreferrer"
>
{result.name.raw}
Expand Down
2 changes: 1 addition & 1 deletion src/components/externalLinks/AuthorLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function AuthorLink({ id, name, idLattes, nationality }: Author) {
const router = useRouter();
return (
<>
<a key={id} target="_blank" href={`${VIVO_URL_ITEM_BASE}/pers_${id}&lang=${router.locale}`} rel="noreferrer">
<a key={id} target="_blank" href={`${VIVO_URL_ITEM_BASE}/pers_${id}?lang=${router.locale}`} rel="noreferrer">
{name}
</a>
{nationality ? <sub>({nationality})</sub> : ''}
Expand Down

0 comments on commit ce42435

Please sign in to comment.