Closed jimhavrilla closed 3 years ago
This took a lot more effort than I initially thought... https://datatables.net/extensions/buttons/examples/html5/outputFormat-function.html https://stackoverflow.com/questions/64127290/datatables-net-remove-double-quotes-from-csv-export https://stackoverflow.com/questions/61080060/ignore-html-from-header-in-jquery-datatables-while-exporting-to-a-file/61212421?noredirect=1#comment115093643_61212421 Combining ideas from these three and Jquery documentation was a big part of it. Now it works for patient and results tables. Will try and port and add to all tables next.
https://stackoverflow.com/questions/171251/how-can-i-merge-properties-of-two-javascript-objects-dynamically https://stackoverflow.com/questions/3244361/can-i-access-variables-from-another-file Further aided by this now I can made the code much slicker and global and port to all tables. I learned a lot about JS and jQuery. Pretty informative day.
Now added to all pages. Trying to remove odd header that says " PhenCards: a web server linking human phenotype information to biomedical knowledge" at the top of every copyhtml5 button use. It is the default title of the FILE for TSV, but for some reason is getting added to the copy to clipboard...
Fixed and finished with commit 8a24e5e
Could be useful for clinician user May want to make this available for all things in the future (for JSONs or API use)