diff --git a/src/components/DuosHeader.js b/src/components/DuosHeader.js index e15592959..0050beb07 100644 --- a/src/components/DuosHeader.js +++ b/src/components/DuosHeader.js @@ -129,7 +129,7 @@ export const headerTabsConfig = [ search: 'dataset_catalog', children: [ { label: 'Data Catalog', link: '/dataset_catalog' }, - { label: 'Data Library', link: '/datalibrary' }, + { label: 'Data Library', link: '/datalibrary', search: 'datalibrary' }, { label: 'DAR Requests', link: '/researcher_console' }, { label: 'Data Submissions', link: '/dataset_submissions', isRenderedForUser: (user) => user?.isDataSubmitter } ], diff --git a/src/images/anvil-logo.svg b/src/images/anvil-logo.svg new file mode 100644 index 000000000..c63dcd77f --- /dev/null +++ b/src/images/anvil-logo.svg @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + diff --git a/src/pages/DatasetSearch.js b/src/pages/DatasetSearch.js index 9056cc321..f2f1eefec 100644 --- a/src/pages/DatasetSearch.js +++ b/src/pages/DatasetSearch.js @@ -8,9 +8,11 @@ import duosIcon from '../images/duos-network-logo.svg'; import mgbIcon from '../images/mass-general-brigham-logo.svg'; import elwaziIcon from '../images/elwazi-logo-color.svg'; import nhgriIcon from '../images/nhgri-logo-color.svg'; +import anvilIcon from '../images/anvil-logo.svg'; import homeIcon from '../images/icon_dataset_.png'; import { Storage } from '../libs/storage'; import { Box, CircularProgress } from '@mui/material'; +import { toLower } from 'lodash'; const signingOfficialQuery = (user) => { return { @@ -115,6 +117,15 @@ export const DatasetSearch = (props) => { icon: nhgriIcon, title: 'NHGRI Data Library', }, + 'anvil': { + query: { + 'match_phrase': { + 'study.description': 'anvil' + } + }, + icon: anvilIcon, + title: 'AnVIL Data Library', + }, '/custom': { query: { 'bool': { @@ -137,7 +148,7 @@ export const DatasetSearch = (props) => { } } - const key = query === undefined ? '/datalibrary' : query; + const key = query === undefined ? '/datalibrary' : toLower(query); const version = versions[key] === undefined ? versions['/custom'] : versions[key]; useEffect(() => {