A Tripal module for storing raw phenotypic data. Specifically meant to help researchers contribute raw data, visualize summaries and download for further analysis.
Issue # 68 - Summary page update - wrap text in location
Convert comma separated values in location into multiple lines where
the country information and city/region are in separate lines.
[X] This PR is dependent upon
[https://github.com/UofS-Pulse-Binfo/rawphenotypes/pull/67]
Only because the master takes a while to load and merging this PR first will
load the summary chart faster and thus see the changes/update without unnecessary delays.
Documentation:
[X] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
Description
I reused a code used by beanplot chart in AP that wraps text into separate lines.
Function wrapWords(text) added to attached JavaScript of rawdata page.
This update will only separate location value when a comma symbol is present. I've made two test cases where one showed Country first followed by city and another where the city preceded country information. In either format, the function separates the csv values in location into separate lines as expected. In upload page we can enforce either format as required.
This PR works great on dev/fresh. 👍 I just endured the slowness since #67 isn't ready yet! However I would like to see how it performs on a generic Tripal site, hoping to get cloud9 set up soon to do so...
Issue # 68 - Summary page update - wrap text in location Convert comma separated values in location into multiple lines where the country information and city/region are in separate lines.
Metadata
[https://github.com/UofS-Pulse-Binfo/rawphenotypes/issues/68]
Documentation:
Description
I reused a code used by beanplot chart in AP that wraps text into separate lines. Function wrapWords(text) added to attached JavaScript of rawdata page.
Dependencies
[https://github.com/UofS-Pulse-Binfo/rawphenotypes/pull/67]
Testing?
This update will only separate location value when a comma symbol is present. I've made two test cases where one showed Country first followed by city and another where the city preceded country information. In either format, the function separates the csv values in location into separate lines as expected. In upload page we can enforce either format as required.
sample results:![screen shot 2018-10-03 at 3 44 02 pm](https://user-images.githubusercontent.com/15472253/46441284-4fb75d80-c723-11e8-8b39-ed807e001360.png)