This module is largely redundant with the functionality provided by Tripal HeadQuarters. Try that out instead!
The Tripal Chado Datasets module allows users to propose new Chado organisms and analyses to a site's database. This module provides:
To see this module in action, pleas visit https://i5k.nal.usda.gov/datasets/submit-a-dataset
Prior to installation, make sure Tripal is installed and up to date. This module currently supports both Tripal 2 and Tripal 3.
We suggest installing Tripal Chado Datasets via git:
## Navigate to your site's custom modules directory
cd /var/www/html/sites/all/modules/custom
git clone https://github.com/NAL-i5K/tripal_chado_datasets.git
drush pm-enable tripal_chado_datasets
the below modules will be installed when enabling Tripal Chado Datasets:
Make sure that the site name and email variables are set for your site, as these will be used in the email messages sent to admins and users. You can check your configuration at /admin/config/system/site-information
Coming soon.
Users should be directed to /datasets/request-project
. This form will provide fields for your users to fill out to request a new Organism.
When the request is submitted, an email goes to the site administrator, summarizing the submission, and to the user, notifying them the request was received.
The administrator checks if the organism should be approved or rejected. Requests are listed at admin/structure/datasets
and individual requests are approved by clicking Edit and and then Reject/Approve.
An email is sent to the user when the request is approved (but not if it is rejected). Approved organisms are inserted into the chado database.
Note: if running a Tripal 3 site, organism records will be inserted into Chado after approving a request at admin/structure/datasets
in the "Request Project List" tab. They will not be available to users until they are published. Visit admin -> Content Types -> Tripal Content types -> Publish
after approving an organism to publish it.
Users request the creation of an analysis at datasets/submit-a-dataset
. They will select their previously submitted organism from the dropdown box, and fill out requested information which will be stored in Chado in the analysis table.
After the user presses submit, email notifications will go out to users and admins as before.
User requests can be viewed by the admin at /admin/structure/datasets/report
. Clicking "Edit" on a given dataset will let you view the details of the proposed record.
Note: Currently there is no way to automatically create the requested analysis. This feature is coming soon.
We recommend using hook_form_alter
and hook_mail_alter
to customize the forms and emails sent to users.