From a7f7769a905c48480bc26954aebf0a558bece9f9 Mon Sep 17 00:00:00 2001 From: jeffersoncasimir <15801528+jeffersoncasimir@users.noreply.github.com> Date: Mon, 11 Mar 2024 09:17:40 -0400 Subject: [PATCH] [electrophysiology_uploader] Add PSCID and Visit Label filters to data table (#9113) This adds PSCID and Visit Label to the FilterableDataTable in the electrophysiology_uploader. Resolves #9059. --- 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(), ]; }