Skip to content

Commit

Permalink
Update the way we get contributor id. Remove registries discover route
Browse files Browse the repository at this point in the history
  • Loading branch information
adlius committed Aug 18, 2023
1 parent 3d02c99 commit 78acad0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/models/search-result.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ export default class SearchResultModel extends Model {
// return something
} else if (this.resourceMetadata.creator) {
return this.resourceMetadata.creator?.map((item: any) =>
({ name: item.name[0]['@value'], absoluteUrl: item.identifier?.[0]?.['@value'] }));
({ name: item.name[0]['@value'], absoluteUrl: item['@id'] }));
} else if (this.isContainedBy?.[0]?.creator) {
return this.isContainedBy[0].creator.map((item: any) =>
({ name: item.name?.[0]?.['@value'], absoluteUrl: item.identifier?.[0]?.['@value'] }));
({ name: item.name?.[0]?.['@value'], absoluteUrl: item['@id'] }));
}
}

Expand Down
2 changes: 1 addition & 1 deletion lib/registries/addon/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import buildRoutes from 'ember-engines/routes';

export default buildRoutes(function() {
this.route('index', { path: '/registries' });
this.route('discover', { path: '/registries/discover' });
// this.route('discover', { path: '/registries/discover' });
this.route('branded', { path: '/registries/:providerId' }, function() {
this.route('discover');
this.route('new');
Expand Down

0 comments on commit 78acad0

Please sign in to comment.