Skip to content

Commit

Permalink
Use new iris field for institution identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
futa-ikeda committed Oct 2, 2023
1 parent ea85a30 commit f99e17e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/institutions/discover/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default class InstitutionDiscoverController extends Controller {
queryParams = ['q', 'sort', 'resourceType', 'activeFilters'];

get defaultQueryOptions() {
const identifiers = [this.model.rorIri, this.model.iri, this.model.links.html].filter(Boolean).join(',');
const identifiers = this.model.iris.join(',');
return {
'affiliation,creator.affiliation,isContainedby.affiliation': identifiers,
};
Expand Down
1 change: 1 addition & 0 deletions app/models/institution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export default class InstitutionModel extends OsfModel {
@attr('fixstring') rorIri!: string;
// identifier_domain in the admin app
@attr('fixstring') iri!: string;
@attr('fixstringarray') iris!: string[];

// TODO Might want to replace calls to `users` with `institutionUsers.user`?
@hasMany('user', { inverse: 'institutions' })
Expand Down

0 comments on commit f99e17e

Please sign in to comment.