You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
new changes for B3 WALDER project to make changes for discovery porta… (#1551)
* new changes for B3 WALDER project to make changes for discovery portal in PRC
* spacing changes for code
* changes suggested by mingfei
* changes made after mingfei's comments and meeting
* eslint on openfillrequestformbutton
* added missing variables in discovey config
* added null condition and ran eslint
* added check for null to pass npm test
* added check for null to pass npm test
* refactor: simplify button logic by removing redundant check
* refactor: remove redundant check from disabled condition
* changes for failing test
* new variable fillRequestFormCheckField added
* changes for if condition
* if condition fixes
* new property added to allow checkboxes if not logged in
* revert change
* removed extra space
* changed text for tooltip
* fixes for props variable
* Update src/Discovery/DiscoveryActionBar/components/OpenFillRequestFormButton.tsx
Co-authored-by: Mingfei Shao <2475897+mfshao@users.noreply.github.com>
* changes for tooltip if multiple flags are on
* Update src/Discovery/DiscoveryListView.tsx
Co-authored-by: Mingfei Shao <2475897+mfshao@users.noreply.github.com>
---------
Co-authored-by: Mingfei Shao <2475897+mfshao@users.noreply.github.com>
Copy file name to clipboardexpand all lines: docs/portal_config.md
+6
Original file line number
Diff line number
Diff line change
@@ -465,6 +465,12 @@ Below is an example, with inline comments describing what each JSON block config
465
465
"enable": true,
466
466
"enableDownloadManifest": true, // enables a button which allows user to download a manifest file for gen3 client
467
467
"downloadManifestButtonText": "Download Manifest", // text to be displayed on the download manifest button
468
+
"enableFillRequestForm" : true, // enables a button which opens a new form to request access to a resoruce
469
+
"fillRequestFormDisplayText": "Request Information", // text to be displayed on fill the request form
470
+
"fillRequestFormCheckField" : "_medical_sample_id", // field defiend in MDS which is related to checkbox, this fiels is use to validate if the entry in discovery portal have unique¸
471
+
"fillRequestFormURL" : "https://URL/form", // URL to the new form which would be used to fill the form
472
+
"externalWebsiteName" : "", // Name of external website needed, this variable at development is used for showing an external website in a popover for chicagoland pandemic response commons, in commons this will be loaded only if enableFillRequestForm is true
473
+
"externalWebsiteURL" : "", // URL of external website needed, this variable is used with externalWebsiteName be loaded only if enableFillRequestForm is true
468
474
"manifestFieldName": "__manifest", // the field in the Discovery page data that contains the list of GUIDs that link to each study's data files.
469
475
"enableDownloadZip": true, // enables a button which allows user to download all the files as a zip file (with pre-set size limits)
470
476
"downloadZipButtonText": "Download Zip", // text to be displayed on the download zip file button
title={`Click to select item for ${(props.config.features.exportToWorkspace.enableDownloadManifest||props.config.features.exportToWorkspace.enableDownloadZip) ? 'download or ' : ''}open in workspace`}
0 commit comments