diff --git a/client/src/api/authors/_utils/constants.ts b/client/src/api/authors/_utils/constants.ts index dc4b50fb..e7a9b3d4 100644 --- a/client/src/api/authors/_utils/constants.ts +++ b/client/src/api/authors/_utils/constants.ts @@ -1,17 +1,19 @@ export const FIELDS = [ + "id^10", "externalIds.id^3", "fullName^3", - "coContributors.fullName^1", "publications.title.default^2", "publications.summary.default^2", + "publications.publication^2", "domains.label.*^2", - "recentAffiliations..strucrue.label.*", + "domains.code^2", + "recentAffiliations.structure.label.*", "recentAffiliations.structure.acronym.*", "recentAffiliations.structure.id", - "awards.label.*" + "awards.label.*", ] export const LIGHT_SOURCE = [ - "id", "fullName", "domains", "orcid", + "id", "fullName", "domains", "orcid", "id_hal", "idref", "recent_affiliations", "topDomains", ] \ No newline at end of file diff --git a/client/src/api/organizations/_utils/constants.ts b/client/src/api/organizations/_utils/constants.ts index 06fb53ea..681828e1 100644 --- a/client/src/api/organizations/_utils/constants.ts +++ b/client/src/api/organizations/_utils/constants.ts @@ -1,14 +1,35 @@ export const FIELDS = [ - "id^3", + "id^5", + "acronym.*^5", "externalIds.id^3", + "alias^3", "label.*^3", - "acronym.*^3", + "description.*^2", + "address.city", + "address.address", + "address.postcode", + + "publications.id^2", "publications.title.default^2", "publications.summary.default", + "publications.domains.label.*^2", + "publications.domains.code^2", + "projects.label.*^2", "projects.acronym.*", - "description.*^2", - "alias^3", + "projects.id^2", + + "badges.label.*", + "badges.code", + + "patents.id^2", + "patents.title.*^2", + + "agreements.type^2", + + "awards.label^2", + "awards.summary", + "web_content" ] export const LIGHT_SOURCE = ["label.*", "acronym.*", "address.main", "address.city", "kind", "level", 'nature', 'id', "creationYear", "isFrench", "active"] diff --git a/client/src/api/patents/_utils/constants.ts b/client/src/api/patents/_utils/constants.ts index 39bf2f51..35825892 100644 --- a/client/src/api/patents/_utils/constants.ts +++ b/client/src/api/patents/_utils/constants.ts @@ -1,11 +1,12 @@ export const FIELDS = [ + "id.keyword^10", + "patents.id^10", "title.*^3", "summary.*^3", "domains.label.*", - "domains.code^10", - "id.keyword^10", - "patents.id^10", + "domains.code^5", ]; + export const LIGHT_SOURCE = [ "title", "id", diff --git a/client/src/api/projects/_utils/constants.ts b/client/src/api/projects/_utils/constants.ts index 8d23bb0d..5de15d0d 100644 --- a/client/src/api/projects/_utils/constants.ts +++ b/client/src/api/projects/_utils/constants.ts @@ -4,15 +4,23 @@ export const FIELDS = [ "acronym.*^3", "description.*^2", "domains.label.*", + "call.id", + "call.label", + "action.id", + "action.label.*", + "keywords.*", + + "publications.id", "publications.title.*", - "publications.summary.*", + "publications.authors.fullName", + "publications.authors.person", + "publications.domains.label.*", + "publications.domains.code", + "participants.structure.label.*", "participants.structure.acronym.*", "participants.structure.id", - "call.label", - "keywords.*", - "action.id", - "action.label.*", + "participants.label.*", ] export const LIGHT_SOURCE = [ "label.*", diff --git a/client/src/api/publications/_utils/constants.ts b/client/src/api/publications/_utils/constants.ts index 4079c5f8..7191a4d3 100644 --- a/client/src/api/publications/_utils/constants.ts +++ b/client/src/api/publications/_utils/constants.ts @@ -1,12 +1,27 @@ export const FIELDS = [ + "id^10", "externalIds.id^3", "title.*^3", - "authors.fullName^3", "summary.*^2", "domains.label.*^2", + "domains.code^2", + "authors.fullName^2", + "authors.denormalized.id^3", + "authors.denormalized.orcid^3", + "authors.denormalized.id_hal^3", + "authors.denormalized.idref^3", + "authors.affiliations.ids.id", + "authors.affiliations.name", "source.title", + "source.journalIssns", "source.publisher", "affiliations.id", "affiliations.label.*", + "softwares.softwareName", + "softwares.contexts", + "softwares.wikidata", + "projects.id", + "projects.label.*", + "projects.acronym.*" ] export const LIGHT_SOURCE = ["title.*", "authors.fullName", "authors.person", "authors.role", "source.*", "isOa", 'type', 'id', "year"] diff --git a/client/src/pages/search/components/authors/author-item.tsx b/client/src/pages/search/components/authors/author-item.tsx index f6ae683f..71388f5b 100644 --- a/client/src/pages/search/components/authors/author-item.tsx +++ b/client/src/pages/search/components/authors/author-item.tsx @@ -41,9 +41,12 @@ export default function AuthorItem({ data: author, highlight }: ItemProps
- {[author.id.replace("idref", ""), author.orcid] - ?.filter((id) => id) - .map((id, i) => {(i === 0) ? 'idref' : 'orcid'} : {id}) + {[ + { id: author.id.replace("idref", ""), type: "idref" }, + { id: author.orcid, type: 'orcid' }, + { id: author.id_hal, type: 'idhal' }] + .filter((identifier) => identifier.id) + .map(({ id, type }) => {type} : {id}) }
{Object.values(highlight || {}).map((value, i) => ( diff --git a/client/src/types/author.ts b/client/src/types/author.ts index c7a3b94d..b7c96e03 100644 --- a/client/src/types/author.ts +++ b/client/src/types/author.ts @@ -4,7 +4,8 @@ import { LightPublication } from "./publication"; export type LightAuthor = { id: string; idref: string; - orcid: string; + orcid?: string; + id_hal?: string; fullName: string; recent_affiliations: { label: string;