Closed reynoldtan closed 2 years ago
For step #7: downloaded file contains germplasm, location and trait applied, but misses experiment. An additional trait, # of Seeds Planted (count), is always included by default. .
Experiment column added to results
I am now able to see the experiment column on my new dev fresh, PR works as expected. Great job š
Revised field formatter to use template file for the markup. I have kept all array construct - array() since it is used throughout the module and I have checked off item My code follows the code style of this project above. In my recent work of the module for Drupal 8/9 all instances of this array have been converted to the short array syntax.
Revised the field instance and formatter to use cvterms as array keys. I have setup a cv name and named it in the same way as other cvs used by rawphenotypes (ie phenotype_measurement_units, phenotype_measurement_types etc.). I chose the name phenotype_customfield_terms and created the cv terms experiment, id, name, location, summary, experiment, user_experiment and trait to be used as keys. This cv will hold other terms in the future should raw phenotype custom field require other more terms.
On it, I will setup the ALL option in the next commit š
I have added a filter by switch to allow export of phenotypes by either experiment or location + experiment. In addition to this option, users can download everything (all experiment user has permission to) in a trait + germplasm using the download all button preceding each trait. I also add expand table view and search trait to make finding a trait of interest less painful š .
Tested
I'm loving the new "Export everything in a trait + germplasm" button! Did a quick review on the new code since the last review and I think this is good :-)
I'm going to merge now but we won't update KP until July so nothing goes wrong right before the workshop ;-p
This PR will create a Custom Tripal Field that will add raw phenotypes download functionality to germplasm page.
Metadata
Documentation:
Description
Dependencies
Testing?
Setup
NOTE: at the moment the cog icon to update id, classes and visibility option is causing an AJAX error leaving this field to be hidden by default (hide = yes).
The Interface