Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tripal 4: Species Glossary #215

Open
Ferrisx4 opened this issue Dec 13, 2022 · 0 comments
Open

Tripal 4: Species Glossary #215

Ferrisx4 opened this issue Dec 13, 2022 · 0 comments
Assignees

Comments

@Ferrisx4
Copy link

Tripal 4 Species Glossary

This is a general issue to describe/document the process for creating this page in Tripal 4.

In Tripal 3, unlike Tripal 2, Tripal Content types were not handled properly by Drupal and therefore the Drupal Views module could not readily use Tripal 3 content types out of the box. After much mucking about, the T3 Species Glossary module was born.
Fortunately, in Tripal 4, we can revert to the previous functionality in Tripal 2 and use Drupal Views to generate a nice glossary of Organisms, or any other Tripal Content Type (analysis, contact, study, publication, etc.).

Updates:

  • Pre-Alpha (Dec 2022)
    • In their current format, Tripal Content types can be shown and all of their basic fields can be shown or used to generate hybrid fields. For example, combining "Genus" and "Species" into a single "Organism" column in a table, and then using the entity ID to link to the bio_data page.
  • Planned - Alpha 3
    • Sorting and other functions supported by Tripal Content types. This will enable the table in the view to be sorted by the Tripal Content type's fields (sort by common name alphabetically, for example) and also contextual filters. Contextual filters will enable the glossary function from Tripal 2: A (3), B (7), D (2) ... Z (1)

Method:
A new view can be created in Drupal 9 by visiting admin/structure/views/add. In the "View Settings" section, 'Tripal Content' can be selected, followed by the desired type, for example Organism. We want to create a page, so make sure that is checked.
The proceeding steps here are similar to what they would have been in Tripal 2.

  • Format: Table
  • Fields: Choose the ones we want. For starting out with the Species glossary, we will want Species, Genus, Common name, (all from bio_data_1 or whichever bio_data_# is associated to Organism), and ID. Remove the default "Operational links" field.
  • More will be added once the Tripal Content types support more Drupal functionality.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant