From 7a1d750c8397d51a5fbb4b6beb4573166100dbdc Mon Sep 17 00:00:00 2001 From: Jefferson Casimir Date: Thu, 29 Feb 2024 10:21:18 -0500 Subject: [PATCH] Added filters to 'Browse' tab --- modules/electrophysiology_uploader/jsx/UploadViewer.js | 9 +++++++++ .../php/electrophysiology_uploader.class.inc | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/modules/electrophysiology_uploader/jsx/UploadViewer.js b/modules/electrophysiology_uploader/jsx/UploadViewer.js index a1000eeae5e..0fc1bdf2c00 100644 --- a/modules/electrophysiology_uploader/jsx/UploadViewer.js +++ b/modules/electrophysiology_uploader/jsx/UploadViewer.js @@ -53,10 +53,19 @@ export default function UploadViewer(props) { { label: 'PSCID', show: true, + filter: { + name: 'pscid', + type: 'text', + }, }, { label: 'Visit', show: true, + filter: { + name: 'visitLabel', + type: 'select', + options: props.fieldOptions.visitLabel, + }, }, { label: 'Upload Location', diff --git a/modules/electrophysiology_uploader/php/electrophysiology_uploader.class.inc b/modules/electrophysiology_uploader/php/electrophysiology_uploader.class.inc index 321867fc60d..880e83c6b77 100644 --- a/modules/electrophysiology_uploader/php/electrophysiology_uploader.class.inc +++ b/modules/electrophysiology_uploader/php/electrophysiology_uploader.class.inc @@ -77,7 +77,8 @@ class Electrophysiology_Uploader extends \DataFrameworkMenu } return [ - 'sites' => $site_options + 'sites' => $site_options, + 'visitLabel' => \Utility::getVisitList(), ]; }