Skip to content

Commit

Permalink
feat: add MGB data library
Browse files Browse the repository at this point in the history
  • Loading branch information
fboulnois committed Sep 26, 2023
1 parent 7e8c585 commit 9a5e9e5
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ const Routes = (props) => (
<AuthenticatedRoute path="/dataset_catalog" component={DatasetCatalog} props={props} rolesAllowed={[USER_ROLES.admin, USER_ROLES.all]} />
<AuthenticatedRoute path="/datalibrary" component={DatasetSearch} props={props} rolesAllowed={[USER_ROLES.admin, USER_ROLES.all]} />
<AuthenticatedRoute path="/datalibrary_broad" component={DatasetSearch} props={props} rolesAllowed={[USER_ROLES.admin, USER_ROLES.all]} />
<AuthenticatedRoute path="/datalibrary_mgb" component={DatasetSearch} props={props} rolesAllowed={[USER_ROLES.admin, USER_ROLES.all]} />
<AuthenticatedRoute path="/dataset_statistics/:datasetId" component={DatasetStatistics} props={props}
rolesAllowed={[USER_ROLES.all]} />
<AuthenticatedRoute path="/dac_datasets" component={DACDatasets} props={props} rolesAllowed={[USER_ROLES.chairperson]} />
Expand Down
10 changes: 10 additions & 0 deletions src/images/mass-general-brigham-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions src/pages/DatasetSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { DataSet } from '../libs/ajax';
import DatasetSearchTable from '../components/data_search/DatasetSearchTable';
import broadIcon from '../logo.svg';
import duosIcon from '../images/duos-network-logo.svg';
import mgbIcon from '../images/mass-general-brigham-logo.svg';

export const DatasetSearch = (props) => {
const { location } = props;
Expand All @@ -26,6 +27,15 @@ export const DatasetSearch = (props) => {
icon: broadIcon,
title: 'Broad Data Library',
},
'/datalibrary_mgb': {
query: {
'match': {
'submitter.institution.id': '88' // Massachusetts General Hospital
}
},
icon: mgbIcon,
title: 'Mass General Brigham Data Library',
}
}

const version = versions[location.pathname];
Expand Down

0 comments on commit 9a5e9e5

Please sign in to comment.