diff --git a/app/models/search-result.ts b/app/models/search-result.ts index 4b7b9287c5..904c1f0fab 100644 --- a/app/models/search-result.ts +++ b/app/models/search-result.ts @@ -192,6 +192,16 @@ export default class SearchResultModel extends Model { return 'unknown'; } + get orcids() { + if (this.resourceMetadata.identifier) { + const orcids = this.resourceMetadata.identifier.filter( + (item: any) => item['@value'].includes('http://orcid.org/'), + ); + return orcids.map( (item: any) => item['@value']); + } + return null; + } + get resourceNature() { return this.resourceMetadata.resourceNature?.[0]['@value']; } diff --git a/lib/osf-components/addon/components/search-page/component.ts b/lib/osf-components/addon/components/search-page/component.ts index 70dae23f48..6586c2c5fc 100644 --- a/lib/osf-components/addon/components/search-page/component.ts +++ b/lib/osf-components/addon/components/search-page/component.ts @@ -25,7 +25,7 @@ export enum ResourceTypeFilterValue { Registrations = 'Registration,RegistrationComponent', Projects = 'Project,ProjectComponent', Preprints = 'Preprint', - Users = 'User', + Users = 'Agent', Files = 'File', } diff --git a/lib/osf-components/addon/components/search-result-card/template.hbs b/lib/osf-components/addon/components/search-result-card/template.hbs index 5d4e3f3167..0ce0715a06 100644 --- a/lib/osf-components/addon/components/search-result-card/template.hbs +++ b/lib/osf-components/addon/components/search-result-card/template.hbs @@ -4,23 +4,37 @@