UofS-Pulse-Binfo / analyzedphenotypes

Tripal/Drupal support for analyzed phenotypic data including data loaders, exporters, trait pages and summaries on germplasm pages.
GNU General Public License v2.0
0 stars 1 forks source link

Phenotype summary fields formatter #87

Closed reynoldtan closed 5 years ago

reynoldtan commented 5 years ago

This PR will create a field group formatter for displaying a set of field types showing quantitative values. Screen Shot 2019-05-15 at 2 25 15 PM (2)

Metadata

Documentation:

Description

Dependencies

Testing?

  1. For testing, this formatter can be used to format phenotype summary field types in the required PR.
  2. Start by adding field to Trait content type. Ideally, at least 2 field types and max of 5 field type but it can support 6 and up. Please note that the name of the field is the name/label shown in the frontend.
  3. In Manage Display, create a group and set the Format to Analyzed Phenotype Data Summary. Save and move this field out of the disabled list.
  4. With the new field, start adding the field types added in step #2 as shown in the example below. Screen Shot 2019-05-15 at 2 35 44 PM (2)
  5. Save, clear cache and reload page.

OPTIONS:

  1. The entire field group can be added to field set to Tripal Pane format in which case it will show a pane with a corresponding navigation and operates like any Tripal pane content.
  2. On its own - without navigation.
  3. Tested on Frameset, Div and HTML Element.

ORDER OF PLACEMENT: From left to right, from one level to next. The top most level or the first level can have 3 items only when the item count is odd otherwise it will distribute items equally to each level. Animation may also show this ordering rule.

Screen Shot 2019-05-15 at 2 25 15 PM (2)