Skip to content

Commit

Permalink
Merge branch 'RSM-3297-rename-equipment-to-infrastructure' of github.…
Browse files Browse the repository at this point in the history
…com:UoA-eResearch/hub-stack into dev
  • Loading branch information
cakr322 committed Mar 5, 2024
2 parents 92c8e81 + 33f358d commit b456139
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion research-hub-web/cypress/integration/equipment.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ describe('ResearchHubs Equipment Pages', () => {
}
});

cy.visit('equipment/operetta-high-content-imaging-system');
cy.visit('infrastructure/operetta-high-content-imaging-system');

cy.wait('@gqlGetEquipmentBySlug');
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe('ContentTypeDisplayNamePipe', () => {
it('Should return correct content display names', () => {
expect(pipe.transform('article')).toBe('Article');
expect(pipe.transform('caseStudy')).toBe('Case Study');
expect(pipe.transform('equipment')).toBe('Equipment');
expect(pipe.transform('equipment')).toBe('Infrastructure');
expect(pipe.transform('event')).toBe('Event');
expect(pipe.transform('funding')).toBe('Funding');
expect(pipe.transform('service')).toBe('Service');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const ContentTypeDisplayNames = {
'article': 'Article',
'capability': 'Capability',
'casestudy': 'Case Study',
'equipment': 'Equipment',
'equipment': 'Infrastructure',
'event': 'Event',
'funding': 'Funding',
'service': 'Service',
Expand Down
2 changes: 1 addition & 1 deletion research-hub-web/src/app/routing/routing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const appRoutes: Routes = [
loadChildren: () => import('@components/activities-page/activities-page.module').then((m) => m.ActivitiesPageModule),
},
{
path: 'equipment',
path: 'infrastructure',
loadChildren: () => import('@components/equipments/equipments.module').then(m => m.EquipmentsModule)
},
{
Expand Down
3 changes: 2 additions & 1 deletion research-hub-web/src/app/services/search.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ export class SearchService {
summary: summary,
slug: element._source.fields.slug["en-US"],
ssoProtected: element._source.fields.ssoProtected["en-US"],
contentType: element._source.sys.contentType.sys.id,
contentType: element._source.sys.contentType.sys.id == 'equipment' ?
'infrastructure' : element._source.sys.contentType.sys.id,
chips: element._source.fields.category?.["en-US"].map(x => {
return { name: x.name, id: x.sys.id };
})
Expand Down

0 comments on commit b456139

Please sign in to comment.