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

SIO Study Tripal WS compatible #109

Closed reynoldtan closed 5 years ago

reynoldtan commented 5 years ago

Field supports Tripal Web Services.

This PR made an update to hook_bundle_field_info() and to the field's elementInfo() and load(). The former will allow this field to support multiple values returned for both end user and Tripal Web Services by changing the cardinality settings, while the latter to alter the array structure and to define element definition.

Metadata

Documentation:

Description

Dependencies

Testing?

  1. Delete sio__study if it is used in Trait content type.
  2. Update sio__study and analyzedphenotypes.field.inc
  3. In the Trait Content Type, Click manage fields then Check for new fields.
  4. Add sio__study field to Trait Content type, Make sure to move this field out of disabled fields.
  5. Access Traits Content Type in Tripal WS.
reynoldtan commented 5 years ago

Updated this PR but you are going to need the proposed change to Tripal Web Services - https://github.com/tripal/tripal/pull/1020 to test.

Sample result. Screen Shot 2019-11-05 at 9 50 02 AM