From 6bb6e5bc1601baf646138956317292143459a0cd Mon Sep 17 00:00:00 2001 From: Florian Boulnois Date: Mon, 2 Dec 2024 12:54:01 -0500 Subject: [PATCH] feat: add Getz Lab data library --- src/components/TableHeaderSection.jsx | 2 +- src/images/getz-lab-logo.svg | 1 + src/pages/DatasetSearch.jsx | 10 ++++++++++ 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 src/images/getz-lab-logo.svg diff --git a/src/components/TableHeaderSection.jsx b/src/components/TableHeaderSection.jsx index e0e7801be..860bbb11d 100644 --- a/src/components/TableHeaderSection.jsx +++ b/src/components/TableHeaderSection.jsx @@ -15,7 +15,7 @@ export const TableHeaderSection = (props) => { src={icon} style={{ width: icon.width, - height: icon.height, + height: icon.height || 64, maxWidth: 200, maxHeight: 64, }} diff --git a/src/images/getz-lab-logo.svg b/src/images/getz-lab-logo.svg new file mode 100644 index 000000000..fce2d5d8e --- /dev/null +++ b/src/images/getz-lab-logo.svg @@ -0,0 +1 @@ +GETZLAB \ No newline at end of file diff --git a/src/pages/DatasetSearch.jsx b/src/pages/DatasetSearch.jsx index 780dad5d9..0e3e29dd7 100644 --- a/src/pages/DatasetSearch.jsx +++ b/src/pages/DatasetSearch.jsx @@ -15,6 +15,7 @@ import cfdeIcon from '../images/cfde-logo.png'; import firecloudIcon from '../images/firecloud-logo.png'; import aouIcon from '../images/aou-logo.png'; import stanleyIcon from '../images/stanley-center-logo.png'; +import getzLabIcon from '../images/getz-lab-logo.svg'; import homeIcon from '../images/icon_dataset_.png'; import { Storage } from '../libs/storage'; import { Box, CircularProgress } from '@mui/material'; @@ -251,6 +252,15 @@ export const DatasetSearch = (props) => { icon: stanleyIcon, title: 'Stanley Center Data Library', }, + 'getzlab': { + query: { + 'match_phrase': { + 'study.description': 'Getz Lab' + } + }, + icon: getzLabIcon, + title: 'Getz Lab Data Library', + }, '/custom': { query: { 'bool': {