123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147 |
- <?php
- function retrieve_dbxref_views_data() {
-
- $data['dbxref']['table']['group'] = 'Chado Database Reference';
- $data['dbxref']['table']['base'] = array(
- 'field' => 'dbxref_id',
- 'title' => 'Chado Database Reference',
- 'help' => 'A Reference to another database. Allows easy linking between becords in one database to those in another.',
- 'database' => 'chado'
- );
-
- $data['dbxref']['table']['join'] = array(
- 'cvterm' => array(
- 'left_field' => 'dbxref_id',
- 'field' => 'dbxref_id',
- ),
- 'feature' => array(
- 'left_field' => 'dbxref_id',
- 'field' => 'dbxref_id',
- ),
- 'stock' => array(
- 'left_field' => 'dbxref_id',
- 'field' => 'dbxref_id',
- ),
- );
-
-
- $data['dbxref']['dbxref_id'] = array(
- 'title' => t('Database Reference ID'),
- 'help' => t('The primary key of Database References.'),
- 'field' => array(
- 'handler' => 'views_handler_field_numeric',
- 'click sortable' => TRUE,
- ),
- 'filter' => array(
- 'handler' => 'views_handler_filter_numeric',
- ),
- 'sort' => array(
- 'handler' => 'views_handler_sort',
- ),
- );
-
-
-
-
- $data['dbxref']['accession'] = array(
- 'title' => 'Accession',
- 'help' => 'The accession from the database.',
- 'field' => array(
- 'handler' => 'views_handler_field',
- 'click sortable' => TRUE,
- ),
- 'sort' => array(
- 'handler' => 'views_handler_sort',
- ),
- 'filter' => array(
- 'handler' => 'views_handler_filter_string',
- ),
- 'argument' => array(
- 'handler' => 'views_handler_argument_string',
- ),
- );
-
- $data['dbxref']['version'] = array(
- 'title' => 'Version',
- 'help' => 'The version of the database reference.',
- 'field' => array(
- 'handler' => 'views_handler_field',
- 'click sortable' => TRUE,
- ),
- 'sort' => array(
- 'handler' => 'views_handler_sort',
- ),
- 'filter' => array(
- 'handler' => 'views_handler_filter_string',
- ),
- 'argument' => array(
- 'handler' => 'views_handler_argument_string',
- ),
- );
-
- $data['dbxref']['description'] = array(
- 'title' => 'Description',
- 'help' => 'a description of the database reference.',
- 'field' => array(
- 'handler' => 'views_handler_field',
- 'click sortable' => TRUE,
- ),
- 'filter' => array(
- 'handler' => 'views_handler_filter_string',
- ),
- 'argument' => array(
- 'handler' => 'views_handler_argument_string',
- ),
- );
-
-
-
-
- $data['dbxref']['accession_link'] = array(
- 'title' => 'Accession Link',
- 'help' => 'Provides a link to the record in the external database.',
- 'field' => array(
- 'handler' => 'views_handler_field_dbxref_accession_link',
- 'click sortable' => TRUE,
- ),
- 'sort' => array(
- 'handler' => 'views_handler_sort',
- ),
- 'filter' => array(
- 'handler' => 'views_handler_filter_string',
- ),
- 'argument' => array(
- 'handler' => 'views_handler_argument_string',
- ),
- );
- return $data;
- }
|