diff --git a/src/components/customResultView/CustomResultViewGroups.tsx b/src/components/customResultView/CustomResultViewGroups.tsx index 70b0c1b..eeb23f9 100644 --- a/src/components/customResultView/CustomResultViewGroups.tsx +++ b/src/components/customResultView/CustomResultViewGroups.tsx @@ -1,11 +1,16 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ import { ResultViewProps } from '@elastic/react-search-ui-views'; import { useTranslation } from 'next-i18next'; +import { useRouter } from 'next/router'; import ReadMoreCollapse from '../ReadMoreCollapse'; -import LattesLink from '../externalLinks/LattesLink'; +import ExternalLink from '../externalLinks'; +import ShowAuthorItem from './ShowAuthorItem'; import ShowItem from './ShowItem'; +const VIVO_URL_ITEM_BASE = process.env.VIVO_URL_ITEM_BASE; + const CustomResultViewGroups = ({ result }: ResultViewProps) => { + const router = useRouter(); const { t } = useTranslation('common'); return (
  • @@ -19,29 +24,17 @@ const CustomResultViewGroups = ({ result }: ResultViewProps) => { - -
  • - {t('Leader')} - {result.leader?.raw.map((leader: any, index: any) => ( - - - {leader.name} - - {leader.idLattes ? : ''} - - ))} -
  • +
  • {t('Organization')} {result.orgunit?.raw.map((orgunit: any, index: any) => ( - {orgunit.name} - {/* */} + /> ))}
  • @@ -68,20 +61,8 @@ const CustomResultViewGroups = ({ result }: ResultViewProps) => { ))} -
  • - {t('Member')}(s) - {result.member?.raw.map((member: any, index: any) => ( - - - {member.name} - - {member.idLattes ? : ''} - - ))} -
  • - + - diff --git a/src/pages/groups.tsx b/src/pages/groups.tsx index 7244b51..0feb325 100644 --- a/src/pages/groups.tsx +++ b/src/pages/groups.tsx @@ -44,7 +44,10 @@ const configDefault = { searchQuery: { operator: 'OR', search_fields: { - name: {}, + name_text: { + weight: 3, + }, + keyword_text: {}, // creationYear: {}, dá erro na busca simples por causo do tipo long status: {}, 'leader.name': {},