123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966 |
- <?php
- /**
- * @file
- * This file contains the basic functions for views integration of
- * chado/tripal_natural_diversity tables.
- *
- * Documentation on views integration can be found at
- * http://views2.logrus.com/doc/html/index.html.
- */
- /**
- * @defgroup tripal_natural_diversity_views Natural Diversity Views Integration
- * @ingroup views
- */
- /**
- * Created Default views related to the tables integrated by this module
- *
- * @ingroup tripal_natural_diversity_views
- */
- /* -- SPF Jun 13, 2013 removed as a search by ND experiment
- * results in a huge return list. As in the case of a genotyping
- * GWAS experiment where tens of thousands of SNP genotypes are
- * present. --
- function tripal_natural_diversity_views_default_views() {
- $views = array();
- if (!module_exists('tripal_views')) {
- return $views;
- }
- // Experiment Listing
- $view = new view;
- $view->name = 'natdiv_experiment_listing';
- $view->description = 'A listing of all natural diversity experiments';
- $view->tag = 'chado default';
- $view->base_table = 'nd_experiment';
- $view->core = 6;
- $view->api_version = '2';
- $view->disabled = FALSE;
- $handler = $view->new_display('default', 'Defaults', 'default');
- $handler->override_option('fields', array(
- 'name' => array(
- 'label' => 'Type',
- 'alter' => array(
- 'alter_text' => 0,
- 'text' => '',
- 'make_link' => 0,
- 'path' => '',
- 'absolute' => 0,
- 'link_class' => '',
- 'alt' => '',
- 'rel' => '',
- 'prefix' => '',
- 'suffix' => '',
- 'target' => '',
- 'help' => '',
- 'trim' => 0,
- 'max_length' => '',
- 'word_boundary' => 1,
- 'ellipsis' => 1,
- 'html' => 0,
- 'strip_tags' => 0,
- ),
- 'empty' => '',
- 'hide_empty' => 0,
- 'empty_zero' => 0,
- 'hide_alter_empty' => 1,
- 'type' => 'separator',
- 'separator' => ', ',
- 'exclude' => 0,
- 'id' => 'name',
- 'table' => 'cvterm',
- 'field' => 'name',
- 'relationship' => 'none',
- ),
- 'description' => array(
- 'label' => 'Location Experiment Performed',
- 'alter' => array(
- 'alter_text' => 0,
- 'text' => '',
- 'make_link' => 0,
- 'path' => '',
- 'absolute' => 0,
- 'link_class' => '',
- 'alt' => '',
- 'rel' => '',
- 'prefix' => '',
- 'suffix' => '',
- 'target' => '',
- 'help' => '',
- 'trim' => 0,
- 'max_length' => '',
- 'word_boundary' => 1,
- 'ellipsis' => 1,
- 'html' => 0,
- 'strip_tags' => 0,
- ),
- 'empty' => '',
- 'hide_empty' => 0,
- 'empty_zero' => 0,
- 'hide_alter_empty' => 1,
- 'type' => 'separator',
- 'separator' => ', ',
- 'exclude' => 0,
- 'id' => 'description',
- 'table' => 'nd_geolocation',
- 'field' => 'description',
- 'relationship' => 'none',
- ),
- ));
- $handler->override_option('sorts', array(
- 'name' => array(
- 'order' => 'ASC',
- 'id' => 'name',
- 'table' => 'cvterm',
- 'field' => 'name',
- 'relationship' => 'none',
- ),
- 'description' => array(
- 'order' => 'ASC',
- 'id' => 'description',
- 'table' => 'nd_geolocation',
- 'field' => 'description',
- 'relationship' => 'none',
- ),
- ));
- $handler->override_option('filters', array(
- 'type_id' => array(
- 'operator' => '=',
- 'value' => '',
- 'group' => '0',
- 'exposed' => TRUE,
- 'expose' => array(
- 'use_operator' => 0,
- 'operator' => 'type_id_op',
- 'identifier' => 'type_id',
- 'label' => 'Experiment Type',
- 'remember' => 0,
- ),
- 'case' => 1,
- 'id' => 'type_id',
- 'table' => 'nd_experiment',
- 'field' => 'type_id',
- 'relationship' => 'none',
- 'values_form_type' => 'select',
- 'multiple' => 1,
- 'optional' => 0,
- 'show_all' => 0,
- 'agg' => array(
- 'records_with' => 1,
- 'aggregates_with' => 1,
- ),
- ),
- 'description' => array(
- 'operator' => '=',
- 'value' => array(),
- 'group' => '0',
- 'exposed' => TRUE,
- 'expose' => array(
- 'use_operator' => 0,
- 'operator' => 'description_op',
- 'identifier' => 'geolocation',
- 'label' => 'Location Experiment Performed',
- 'remember' => 0,
- ),
- 'case' => 1,
- 'id' => 'description',
- 'table' => 'nd_geolocation',
- 'field' => 'description',
- 'relationship' => 'none',
- 'agg' => array(
- 'records_with' => 1,
- 'aggregates_with' => 1,
- ),
- 'values_form_type' => 'select',
- 'multiple' => 1,
- 'optional' => 0,
- ),
- 'search_results' => array(
- 'operator' => '=',
- 'value' => '',
- 'group' => '0',
- 'exposed' => FALSE,
- 'expose' => array(
- 'operator' => FALSE,
- 'label' => '',
- ),
- 'id' => 'search_results',
- 'table' => 'views',
- 'field' => 'search_results',
- 'relationship' => 'none',
- 'apply_button' => 'Show',
- 'no_results_text' => 'Click "Show" to see a list of all experiments matching the entered criteria. If you leave a any of the criteria blank then the experiments will be not be filtered based on that field. Furthermore, if you leave all criteria blank then all experiments will be listed.',
- ),
- ));
- $handler->override_option('access', array(
- 'type' => 'perm',
- 'perm' => 'access content',
- ));
- $handler->override_option('cache', array(
- 'type' => 'none',
- ));
- $handler->override_option('title', 'Natural Diversity Experiments');
- $handler->override_option('header', 'Click "Show" to see a list of all experiments matching the entered criteria. If you leave a any of the criteria blank then the experiments will be not be filtered based on that field. Furthermore, if you leave all criteria blank then all experiments will be listed.');
- $handler->override_option('header_format', '2');
- $handler->override_option('header_empty', 0);
- $handler->override_option('empty', 'No natural diversity experiments match the current criteria.');
- $handler->override_option('empty_format', '2');
- $handler->override_option('items_per_page', 50);
- $handler->override_option('use_pager', '1');
- $handler->override_option('style_plugin', 'table');
- $handler->override_option('style_options', array(
- 'grouping' => '',
- 'override' => 1,
- 'sticky' => 0,
- 'order' => 'asc',
- 'summary' => '',
- 'columns' => array(
- 'name' => 'name',
- 'description' => 'description',
- ),
- 'info' => array(
- 'name' => array(
- 'sortable' => 1,
- 'separator' => '',
- ),
- 'description' => array(
- 'sortable' => 1,
- 'separator' => '',
- ),
- ),
- 'default' => '-1',
- ));
- $handler = $view->new_display('page', 'Page', 'page_1');
- $handler->override_option('path', 'chado/natdiv_experiments');
- $handler->override_option('menu', array(
- 'type' => 'normal',
- 'title' => 'Natural Diversity Experiments',
- 'description' => 'A single assay resulting in a single genotype or phenotype. Multiple assays resulting in an entire experiment should be grouped together as a project.',
- 'weight' => '10',
- 'name' => 'navigation',
- ));
- $handler->override_option('tab_options', array(
- 'type' => 'none',
- 'title' => '',
- 'description' => '',
- 'weight' => 0,
- 'name' => 'navigation',
- ));
- $views[$view->name] = $view;
- // List geolocations
- $view = new view;
- $view->name = 'geolocation_listing';
- $view->description = 'A listing of locations where natural diversity experiments took place.';
- $view->tag = 'chado default';
- $view->base_table = 'nd_geolocation';
- $view->core = 6;
- $view->api_version = '2';
- $view->disabled = FALSE;
- $handler = $view->new_display('default', 'Defaults', 'default');
- $handler->override_option('fields', array(
- 'description' => array(
- 'label' => 'Name',
- 'alter' => array(
- 'alter_text' => 0,
- 'text' => '',
- 'make_link' => 0,
- 'path' => '',
- 'absolute' => 0,
- 'link_class' => '',
- 'alt' => '',
- 'rel' => '',
- 'prefix' => '',
- 'suffix' => '',
- 'target' => '',
- 'help' => '',
- 'trim' => 0,
- 'max_length' => '',
- 'word_boundary' => 1,
- 'ellipsis' => 1,
- 'html' => 0,
- 'strip_tags' => 0,
- ),
- 'empty' => '',
- 'hide_empty' => 0,
- 'empty_zero' => 0,
- 'hide_alter_empty' => 1,
- 'type' => 'separator',
- 'separator' => ', ',
- 'exclude' => 0,
- 'id' => 'description',
- 'table' => 'nd_geolocation',
- 'field' => 'description',
- 'relationship' => 'none',
- ),
- 'latitude' => array(
- 'label' => 'Latitude',
- 'alter' => array(
- 'alter_text' => 0,
- 'text' => '',
- 'make_link' => 0,
- 'path' => '',
- 'absolute' => 0,
- 'link_class' => '',
- 'alt' => '',
- 'rel' => '',
- 'prefix' => '',
- 'suffix' => '',
- 'target' => '',
- 'help' => '',
- 'trim' => 0,
- 'max_length' => '',
- 'word_boundary' => 1,
- 'ellipsis' => 1,
- 'html' => 0,
- 'strip_tags' => 0,
- ),
- 'empty' => '',
- 'hide_empty' => 0,
- 'empty_zero' => 0,
- 'hide_alter_empty' => 1,
- 'type' => 'separator',
- 'separator' => ', ',
- 'exclude' => 0,
- 'id' => 'latitude',
- 'table' => 'nd_geolocation',
- 'field' => 'latitude',
- 'relationship' => 'none',
- ),
- 'longitude' => array(
- 'label' => 'Longitude',
- 'alter' => array(
- 'alter_text' => 0,
- 'text' => '',
- 'make_link' => 0,
- 'path' => '',
- 'absolute' => 0,
- 'link_class' => '',
- 'alt' => '',
- 'rel' => '',
- 'prefix' => '',
- 'suffix' => '',
- 'target' => '',
- 'help' => '',
- 'trim' => 0,
- 'max_length' => '',
- 'word_boundary' => 1,
- 'ellipsis' => 1,
- 'html' => 0,
- 'strip_tags' => 0,
- ),
- 'empty' => '',
- 'hide_empty' => 0,
- 'empty_zero' => 0,
- 'hide_alter_empty' => 1,
- 'type' => 'separator',
- 'separator' => ', ',
- 'exclude' => 0,
- 'id' => 'longitude',
- 'table' => 'nd_geolocation',
- 'field' => 'longitude',
- 'relationship' => 'none',
- ),
- 'altitude' => array(
- 'label' => 'Altitude',
- 'alter' => array(
- 'alter_text' => 0,
- 'text' => '',
- 'make_link' => 0,
- 'path' => '',
- 'absolute' => 0,
- 'link_class' => '',
- 'alt' => '',
- 'rel' => '',
- 'prefix' => '',
- 'suffix' => '',
- 'target' => '',
- 'help' => '',
- 'trim' => 0,
- 'max_length' => '',
- 'word_boundary' => 1,
- 'ellipsis' => 1,
- 'html' => 0,
- 'strip_tags' => 0,
- ),
- 'empty' => '',
- 'hide_empty' => 0,
- 'empty_zero' => 0,
- 'hide_alter_empty' => 1,
- 'type' => 'separator',
- 'separator' => ', ',
- 'exclude' => 0,
- 'id' => 'altitude',
- 'table' => 'nd_geolocation',
- 'field' => 'altitude',
- 'relationship' => 'none',
- ),
- 'geodetic_datum' => array(
- 'label' => 'Geodetic Datum',
- 'alter' => array(
- 'alter_text' => 0,
- 'text' => '',
- 'make_link' => 0,
- 'path' => '',
- 'absolute' => 0,
- 'link_class' => '',
- 'alt' => '',
- 'rel' => '',
- 'prefix' => '',
- 'suffix' => '',
- 'target' => '',
- 'help' => '',
- 'trim' => 0,
- 'max_length' => '',
- 'word_boundary' => 1,
- 'ellipsis' => 1,
- 'html' => 0,
- 'strip_tags' => 0,
- ),
- 'empty' => '',
- 'hide_empty' => 0,
- 'empty_zero' => 0,
- 'hide_alter_empty' => 1,
- 'type' => 'separator',
- 'separator' => ', ',
- 'exclude' => 0,
- 'id' => 'geodetic_datum',
- 'table' => 'nd_geolocation',
- 'field' => 'geodetic_datum',
- 'relationship' => 'none',
- ),
- ));
- $handler->override_option('filters', array(
- 'geodetic_datum' => array(
- 'operator' => '=',
- 'value' => array(),
- 'group' => '0',
- 'exposed' => TRUE,
- 'expose' => array(
- 'use_operator' => 0,
- 'operator' => 'geodetic_datum_op',
- 'identifier' => 'geodetic_datum',
- 'label' => 'Geodetic Datum',
- 'remember' => 0,
- ),
- 'case' => 1,
- 'id' => 'geodetic_datum',
- 'table' => 'nd_geolocation',
- 'field' => 'geodetic_datum',
- 'relationship' => 'none',
- 'agg' => array(
- 'records_with' => 1,
- 'aggregates_with' => 1,
- ),
- 'values_form_type' => 'select',
- 'multiple' => 1,
- 'optional' => 0,
- ),
- 'latitude' => array(
- 'operator' => '=',
- 'value' => array(
- 'value' => '',
- 'min' => '',
- 'max' => '',
- ),
- 'group' => '0',
- 'exposed' => TRUE,
- 'expose' => array(
- 'use_operator' => 1,
- 'operator' => 'latitude_op',
- 'identifier' => 'latitude',
- 'label' => 'Latitude',
- 'optional' => 0,
- 'remember' => 0,
- ),
- 'case' => 1,
- 'id' => 'latitude',
- 'table' => 'nd_geolocation',
- 'field' => 'latitude',
- 'relationship' => 'none',
- 'agg' => array(
- 'records_with' => 1,
- 'aggregates_with' => 1,
- ),
- ),
- 'longitude' => array(
- 'operator' => '=',
- 'value' => array(
- 'value' => '',
- 'min' => '',
- 'max' => '',
- ),
- 'group' => '0',
- 'exposed' => TRUE,
- 'expose' => array(
- 'use_operator' => 1,
- 'operator' => 'longitude_op',
- 'identifier' => 'longitude',
- 'label' => 'Longitude',
- 'optional' => 0,
- 'remember' => 0,
- ),
- 'case' => 1,
- 'id' => 'longitude',
- 'table' => 'nd_geolocation',
- 'field' => 'longitude',
- 'relationship' => 'none',
- 'agg' => array(
- 'records_with' => 1,
- 'aggregates_with' => 1,
- ),
- ),
- 'altitude' => array(
- 'operator' => '=',
- 'value' => array(
- 'value' => '',
- 'min' => '',
- 'max' => '',
- ),
- 'group' => '0',
- 'exposed' => TRUE,
- 'expose' => array(
- 'use_operator' => 1,
- 'operator' => 'altitude_op',
- 'identifier' => 'altitude',
- 'label' => 'Altitude',
- 'optional' => 0,
- 'remember' => 0,
- ),
- 'case' => 0,
- 'id' => 'altitude',
- 'table' => 'nd_geolocation',
- 'field' => 'altitude',
- 'relationship' => 'none',
- 'agg' => array(
- 'records_with' => 1,
- 'aggregates_with' => 1,
- ),
- ),
- 'description' => array(
- 'operator' => '~',
- 'value' => '',
- 'group' => '0',
- 'exposed' => TRUE,
- 'expose' => array(
- 'use_operator' => 0,
- 'operator' => 'description_op',
- 'identifier' => 'description',
- 'label' => 'Name Contains',
- 'remember' => 0,
- ),
- 'case' => 0,
- 'id' => 'description',
- 'table' => 'nd_geolocation',
- 'field' => 'description',
- 'relationship' => 'none',
- 'agg' => array(
- 'records_with' => 1,
- 'aggregates_with' => 1,
- ),
- 'values_form_type' => 'textfield',
- 'multiple' => 0,
- 'optional' => 0,
- ),
- ));
- $handler->override_option('access', array(
- 'type' => 'perm',
- 'perm' => 'access content',
- ));
- $handler->override_option('cache', array(
- 'type' => 'none',
- ));
- $handler->override_option('title', 'Geographical Locations');
- $handler->override_option('header', 'Use the following criteria to limit the locations listed. If you leave a any of the criteria blank then the locations will be not be filtered based on that field.');
- $handler->override_option('header_format', '2');
- $handler->override_option('header_empty', 0);
- $handler->override_option('empty', 'No locations matched the current criteria.');
- $handler->override_option('empty_format', '2');
- $handler->override_option('items_per_page', 50);
- $handler->override_option('use_pager', '1');
- $handler->override_option('style_plugin', 'table');
- $handler->override_option('style_options', array(
- 'grouping' => '',
- 'override' => 1,
- 'sticky' => 0,
- 'order' => 'asc',
- 'summary' => '',
- 'columns' => array(
- 'description' => 'description',
- 'latitude' => 'latitude',
- 'longitude' => 'longitude',
- 'altitude' => 'altitude',
- 'geodetic_datum' => 'geodetic_datum',
- ),
- 'info' => array(
- 'description' => array(
- 'sortable' => 1,
- 'separator' => '',
- ),
- 'latitude' => array(
- 'sortable' => 1,
- 'separator' => '',
- ),
- 'longitude' => array(
- 'sortable' => 1,
- 'separator' => '',
- ),
- 'altitude' => array(
- 'sortable' => 1,
- 'separator' => '',
- ),
- 'geodetic_datum' => array(
- 'sortable' => 1,
- 'separator' => '',
- ),
- ),
- 'default' => 'description',
- ));
- $handler = $view->new_display('page', 'Page', 'page_1');
- $handler->override_option('path', 'chado/natdiv_geolocations');
- $handler->override_option('menu', array(
- 'type' => 'normal',
- 'title' => 'Locations',
- 'description' => 'Geographical locations in which natural diversity experiments might be performed.',
- 'weight' => '10',
- 'name' => 'navigation',
- ));
- $handler->override_option('tab_options', array(
- 'type' => 'none',
- 'title' => '',
- 'description' => '',
- 'weight' => 0,
- 'name' => 'navigation',
- ));
- $views[$view->name] = $view;
- // List protocols
- $view = new view;
- $view->name = 'natdiv_protocol_listing';
- $view->description = 'A listing of protocols used for natural diversity experiments';
- $view->tag = 'chado default';
- $view->base_table = 'nd_protocol';
- $view->core = 6;
- $view->api_version = '2';
- $view->disabled = FALSE;
- $handler = $view->new_display('default', 'Defaults', 'default');
- $handler->override_option('fields', array(
- 'name' => array(
- 'label' => 'Name',
- 'alter' => array(
- 'alter_text' => 0,
- 'text' => '',
- 'make_link' => 0,
- 'path' => '',
- 'absolute' => 0,
- 'link_class' => '',
- 'alt' => '',
- 'rel' => '',
- 'prefix' => '',
- 'suffix' => '',
- 'target' => '',
- 'help' => '',
- 'trim' => 0,
- 'max_length' => '',
- 'word_boundary' => 1,
- 'ellipsis' => 1,
- 'html' => 0,
- 'strip_tags' => 0,
- ),
- 'empty' => '',
- 'hide_empty' => 0,
- 'empty_zero' => 0,
- 'hide_alter_empty' => 1,
- 'type' => 'separator',
- 'separator' => ', ',
- 'exclude' => 0,
- 'id' => 'name',
- 'table' => 'nd_protocol',
- 'field' => 'name',
- 'relationship' => 'none',
- ),
- ));
- $handler->override_option('filters', array(
- 'name' => array(
- 'operator' => '~',
- 'value' => '',
- 'group' => '0',
- 'exposed' => TRUE,
- 'expose' => array(
- 'use_operator' => 0,
- 'operator' => 'name_op',
- 'identifier' => 'name',
- 'label' => 'Name Contains',
- 'remember' => 0,
- ),
- 'case' => 0,
- 'id' => 'name',
- 'table' => 'nd_protocol',
- 'field' => 'name',
- 'relationship' => 'none',
- 'agg' => array(
- 'records_with' => 1,
- 'aggregates_with' => 1,
- ),
- ),
- 'search_results' => array(
- 'operator' => '=',
- 'value' => '',
- 'group' => '0',
- 'exposed' => FALSE,
- 'expose' => array(
- 'operator' => FALSE,
- 'label' => '',
- ),
- 'id' => 'search_results',
- 'table' => 'views',
- 'field' => 'search_results',
- 'relationship' => 'none',
- 'apply_button' => 'Show',
- 'no_results_text' => 'Click "Show" to see a list of all protocols matching the entered criteria. If you leave a any of the criteria blank then the protocols will be not be filtered based on that field. Furthermore, if you leave all criteria blank then all protocols will be listed.',
- ),
- ));
- $handler->override_option('access', array(
- 'type' => 'perm',
- 'perm' => 'access content',
- ));
- $handler->override_option('cache', array(
- 'type' => 'none',
- ));
- $handler->override_option('title', 'Protocols');
- $handler->override_option('header', 'Click "Show" to see a list of all protocols matching the entered criteria. If you leave a any of the criteria blank then the protocols will be not be filtered based on that field. Furthermore, if you leave all criteria blank then all protocols will be listed.');
- $handler->override_option('header_format', '2');
- $handler->override_option('header_empty', 0);
- $handler->override_option('empty', 'No protocols match the current criteria.');
- $handler->override_option('empty_format', '2');
- $handler->override_option('items_per_page', 50);
- $handler->override_option('use_pager', '1');
- $handler->override_option('style_plugin', 'table');
- $handler->override_option('style_options', array(
- 'grouping' => '',
- 'override' => 1,
- 'sticky' => 0,
- 'order' => 'asc',
- 'summary' => '',
- 'columns' => array(
- 'name' => 'name',
- ),
- 'info' => array(
- 'name' => array(
- 'sortable' => 1,
- 'separator' => '',
- ),
- ),
- 'default' => 'name',
- ));
- $handler = $view->new_display('page', 'Page', 'page_1');
- $handler->override_option('path', 'chado/natdiv_protocols');
- $handler->override_option('menu', array(
- 'type' => 'normal',
- 'title' => 'Protocols',
- 'description' => 'The protcols used for natural diversity experiments',
- 'weight' => '10',
- 'name' => 'navigation',
- ));
- $handler->override_option('tab_options', array(
- 'type' => 'none',
- 'title' => '',
- 'description' => '',
- 'weight' => 0,
- 'name' => 'navigation',
- ));
- $views[$view->name] = $view;
- // List Reagents
- $view = new view;
- $view->name = 'natdiv_reagent_listing';
- $view->description = 'A listing of reagents used in natural diversity experiments';
- $view->tag = 'chado default';
- $view->base_table = 'nd_reagent';
- $view->core = 6;
- $view->api_version = '2';
- $view->disabled = FALSE;
- $handler = $view->new_display('default', 'Defaults', 'default');
- $handler->override_option('fields', array(
- 'name_1' => array(
- 'label' => 'Name',
- 'alter' => array(
- 'alter_text' => 0,
- 'text' => '',
- 'make_link' => 0,
- 'path' => '',
- 'absolute' => 0,
- 'link_class' => '',
- 'alt' => '',
- 'rel' => '',
- 'prefix' => '',
- 'suffix' => '',
- 'target' => '',
- 'help' => '',
- 'trim' => 0,
- 'max_length' => '',
- 'word_boundary' => 1,
- 'ellipsis' => 1,
- 'html' => 0,
- 'strip_tags' => 0,
- ),
- 'empty' => '',
- 'hide_empty' => 0,
- 'empty_zero' => 0,
- 'hide_alter_empty' => 1,
- 'type' => 'separator',
- 'separator' => ', ',
- 'exclude' => 0,
- 'id' => 'name_1',
- 'table' => 'nd_reagent',
- 'field' => 'name',
- 'relationship' => 'none',
- ),
- 'name' => array(
- 'label' => 'Type',
- 'alter' => array(
- 'alter_text' => 0,
- 'text' => '',
- 'make_link' => 0,
- 'path' => '',
- 'absolute' => 0,
- 'link_class' => '',
- 'alt' => '',
- 'rel' => '',
- 'prefix' => '',
- 'suffix' => '',
- 'target' => '',
- 'help' => '',
- 'trim' => 0,
- 'max_length' => '',
- 'word_boundary' => 1,
- 'ellipsis' => 1,
- 'html' => 0,
- 'strip_tags' => 0,
- ),
- 'empty' => '',
- 'hide_empty' => 0,
- 'empty_zero' => 0,
- 'hide_alter_empty' => 1,
- 'type' => 'separator',
- 'separator' => ', ',
- 'exclude' => 0,
- 'id' => 'name',
- 'table' => 'cvterm',
- 'field' => 'name',
- 'relationship' => 'none',
- ),
- ));
- $handler->override_option('filters', array(
- 'type_id' => array(
- 'operator' => '=',
- 'value' => '',
- 'group' => '0',
- 'exposed' => TRUE,
- 'expose' => array(
- 'use_operator' => 0,
- 'operator' => 'type_id_op',
- 'identifier' => 'type_id',
- 'label' => 'Type',
- 'remember' => 0,
- ),
- 'case' => 1,
- 'id' => 'type_id',
- 'table' => 'nd_reagent',
- 'field' => 'type_id',
- 'relationship' => 'none',
- 'values_form_type' => 'select',
- 'multiple' => 1,
- 'optional' => 0,
- 'show_all' => 0,
- 'agg' => array(
- 'records_with' => 1,
- 'aggregates_with' => 1,
- ),
- ),
- 'search_results' => array(
- 'operator' => '=',
- 'value' => '',
- 'group' => '0',
- 'exposed' => FALSE,
- 'expose' => array(
- 'operator' => FALSE,
- 'label' => '',
- ),
- 'id' => 'search_results',
- 'table' => 'views',
- 'field' => 'search_results',
- 'relationship' => 'none',
- 'apply_button' => 'Show',
- 'no_results_text' => 'Click "Show" to see a list of all reagents matching the entered criteria. If you leave a any of the criteria blank then the reagents will be not be filtered based on that field. Furthermore, if you leave all criteria blank then all reagents will be listed.',
- ),
- 'name' => array(
- 'operator' => '~',
- 'value' => '',
- 'group' => '0',
- 'exposed' => TRUE,
- 'expose' => array(
- 'use_operator' => 0,
- 'operator' => 'name_op',
- 'identifier' => 'name',
- 'label' => 'Name Contains',
- 'remember' => 0,
- ),
- 'case' => 0,
- 'id' => 'name',
- 'table' => 'nd_reagent',
- 'field' => 'name',
- 'relationship' => 'none',
- 'agg' => array(
- 'records_with' => 1,
- 'aggregates_with' => 1,
- ),
- ),
- ));
- $handler->override_option('access', array(
- 'type' => 'perm',
- 'perm' => 'access content',
- ));
- $handler->override_option('cache', array(
- 'type' => 'none',
- ));
- $handler->override_option('title', 'Reagents');
- $handler->override_option('header', 'Click "Show" to see a list of all reagents matching the entered criteria. If you leave a any of the criteria blank then the reagents will be not be filtered based on that field. Furthermore, if you leave all criteria blank then all reagents will be listed.');
- $handler->override_option('header_format', '2');
- $handler->override_option('header_empty', 0);
- $handler->override_option('empty', 'No reagents match the current criteria.');
- $handler->override_option('empty_format', '2');
- $handler->override_option('items_per_page', 50);
- $handler->override_option('use_pager', '1');
- $handler->override_option('style_plugin', 'table');
- $handler = $view->new_display('page', 'Page', 'page_1');
- $handler->override_option('path', 'chado/natdiv_reagents');
- $handler->override_option('menu', array(
- 'type' => 'normal',
- 'title' => 'Reagents',
- 'description' => 'Reagents used in natural diversity experiments',
- 'weight' => '10',
- 'name' => 'navigation',
- ));
- $handler->override_option('tab_options', array(
- 'type' => 'none',
- 'title' => '',
- 'description' => '',
- 'weight' => 0,
- 'name' => 'navigation',
- ));
- $views[$view->name] = $view;
- return $views;
- }
- */
|