- 'no_results_text' => 'Click "Show" to see a list of all analysis matching the entered criteria. If you leave a any of the criteria blank then the analysis will be not be filtered based on that field. Furthermore, if you leave all criteria blank then all analysis will be listed.',
- ),
- 'program' => array(
- 'operator' => '=',
- 'value' => '',
- 'group' => '0',
- 'exposed' => TRUE,
- 'expose' => array(
- 'use_operator' => 0,
- 'operator' => 'program_op',
- 'identifier' => 'program',
- 'label' => 'Program',
- 'remember' => 0,
- ),
- 'case' => 1,
- 'id' => 'program',
- 'table' => 'analysis',
- 'field' => 'program',
- 'relationship' => 'none',
- 'values_form_type' => 'select',
- 'multiple' => 1,
- 'optional' => 0,
- 'agg' => array(
- 'records_with' => 1,
- 'aggregates_with' => 0,
- ),
- ),
- 'timeexecuted' => array(
- 'operator' => '>',
- 'value' => array(
- 'type' => 'date',
- 'value' => '',
- 'min' => '',
- 'max' => '',
- ),
- 'group' => '0',
- 'exposed' => TRUE,
- 'expose' => array(
- 'use_operator' => 1,
- 'operator' => 'timeexecuted_op',
- 'identifier' => 'timeexecuted',
- 'label' => 'Time Executed',
- 'optional' => 1,
- 'remember' => 0,
- ),
- 'id' => 'timeexecuted',
- 'table' => 'analysis',
- 'field' => 'timeexecuted',
- 'relationship' => 'none',
- 'agg' => array(
- 'records_with' => 1,
- 'aggregates_with' => 0,
- ),
- ),
- 'name' => array(
- 'operator' => '~',
- 'value' => '',
- 'group' => '0',
- 'exposed' => TRUE,
- 'expose' => array(
- 'use_operator' => 0,
- 'operator' => 'name_op',
- 'identifier' => 'name',
- 'label' => 'Name Contains',
- 'bef_filter_description' => '',
- 'remember' => 0,
- ),
- 'case' => 0,
- 'id' => 'name',
- 'table' => 'analysis',
- 'field' => 'name',
- 'relationship' => 'none',
- 'values_form_type' => 'textfield',
- 'multiple' => 0,
- 'optional' => 0,
- ),
- 'sourcename' => array(
- 'operator' => '~',
- 'value' => '',
- 'group' => '0',
- 'exposed' => TRUE,
- 'expose' => array(
- 'use_operator' => 0,
- 'operator' => 'sourcename_op',
- 'identifier' => 'sourcename',
- 'label' => 'Source Contains',
- 'bef_filter_description' => '',
- 'remember' => 0,
- ),
- 'case' => 0,
- 'id' => 'sourcename',
- 'table' => 'analysis',
- 'field' => 'sourcename',
- 'relationship' => 'none',
- ),
- ));
- $handler->override_option('access', array(
- 'type' => 'perm',
- 'perm' => 'access chado_analysis content',
- ));
- $handler->override_option('cache', array(
- 'type' => 'none',
- ));
- $handler->override_option('title', 'Analysis');
- $handler->override_option('header', 'Click "Show" to see a list of all analysis matching the entered criteria. If you leave a any of the criteria blank then the analysis will be not be filtered based on that field. Furthermore, if you leave all criteria blank then all analysis will be listed.');
- 'description' => 'An analysis is a particular type of a computational analysis; it may be a blast of one sequence against another, or an all by all blast, or a different kind of analysis altogether. It is a single unit of computation.',
- 'weight' => '10',
- 'name' => 'navigation',
- ));
- $handler->override_option('tab_options', array(
- 'type' => 'none',
- 'title' => '',
- 'description' => '',
- 'weight' => 0,
- 'name' => 'navigation',
- ));
- // Add code specific to a local chado installation
- // NOTE: Edit $handler above to $default_handler for the default display
- 'no_results_text' => 'Click "Show" to see a list of all contacts matching the entered criteria. If you leave a any of the criteria blank then the contacts will be not be filtered based on that field. Furthermore, if you leave all criteria blank then all contacts will be listed.',
- ),
- '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' => 'contact',
- 'field' => 'type_id',
- 'relationship' => 'none',
- 'values_form_type' => 'select',
- 'multiple' => 1,
- 'optional' => 0,
- 'show_all' => 0,
- 'agg' => array(
- 'records_with' => 1,
- 'aggregates_with' => 1,
- ),
- ),
- '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' => 'contact',
- 'field' => 'name',
- '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' => 'Description Contains',
- 'remember' => 0,
- ),
- 'case' => 0,
- 'id' => 'description',
- 'table' => 'contact',
- 'field' => 'description',
- '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', 'Contacts');
- $handler->override_option('header', 'Click "Show" to see a list of all contacts matching the entered criteria. If you leave a any of the criteria blank then the contacts will be not be filtered based on that field. Furthermore, if you leave all criteria blank then all contacts will be listed.');
- $description = t('Please enter the name for this vocabulary term.');
- if ($action == 'edit') {
- $description = t('Enter the name of the term to edit. This field will update automatically as you type. Click outside of the box after entering the term.');
- $form['add_cvterm']['name']['#description'] = 'The term name cannot be changed. If the name is incorrect, please create a new term and make this one as obsolete.';
- $handler->display->display_options['empty']['text']['content'] = 'There are no terms associated with the selected controlled vocabulary. Please select a different vocabulary from the list above.';
+$handler->display->display_options['empty']['text']['content'] = 'There are no terms associated with the selected controlled vocabulary. Please select a different vocabulary from the list above.';
- 'no_results_text' => 'Click "Show" to see a list of all features matching the entered criteria. If you leave a any of the criteria blank then the features will be not be filtered based on that field. Furthermore, if you leave all criteria blank then all features will be listed.',
- $handler->override_option('header', 'Click "Show" to see a list of all features matching the entered criteria. If you leave a any of the criteria blank then the features will be not be filtered based on that field. Furthermore, if you leave all criteria blank then all features will be listed.');
- 'description' => 'A feature is a biological sequence or a section of a biological sequence, or a collection of such sections. Examples include genes, exons, transcripts, regulatory regions, polypeptides, protein domains, chromosome sequences, sequence variations, cross-genome match regions such as hits and HSPs and so on.',
- 'weight' => '10',
- 'name' => 'navigation',
- ));
- $handler->override_option('tab_options', array(
- 'type' => 'none',
- 'title' => '',
- 'description' => '',
- 'weight' => 0,
- 'name' => 'navigation',
- ));
- // Add code specific to a local chado installation
- // NOTE: Edit $handler above to $default_handler for the default display
+ 'no_results_text' => 'Click "Show" to see a list of all features matching the entered criteria. If you leave a any of the criteria blank then the features will be not be filtered based on that field. Furthermore, if you leave all criteria blank then all features will be listed.',
+ $handler->override_option('header', 'Click "Show" to see a list of all features matching the entered criteria. If you leave a any of the criteria blank then the features will be not be filtered based on that field. Furthermore, if you leave all criteria blank then all features will be listed.');
+ 'description' => 'A feature is a biological sequence or a section of a biological sequence, or a collection of such sections. Examples include genes, exons, transcripts, regulatory regions, polypeptides, protein domains, chromosome sequences, sequence variations, cross-genome match regions such as hits and HSPs and so on.',
+ 'weight' => '10',
+ 'name' => 'navigation',
+ ));
+ $handler->override_option('tab_options', array(
+ 'type' => 'none',
+ 'title' => '',
+ 'description' => '',
+ 'weight' => 0,
+ 'name' => 'navigation',
+ ));
+ // Add code specific to a local chado installation
+ // NOTE: Edit $handler above to $default_handler for the default display
- tripal_cv_add_cvterm(array('name' => 'undefined','def' => 'A catch-all for an undefined unit type'),
+ tripal_cv_add_cvterm(array('name' => 'undefined','def' => 'A catch-all for an undefined unit type'),
'featuremap_units', 0, 1, 'tripal');
'featuremap_units', 0, 1, 'tripal');
-
- tripal_cv_add_cvterm(array('name' => 'start','def' => 'The start coordinate for a map feature.'),
+
+ tripal_cv_add_cvterm(array('name' => 'start','def' => 'The start coordinate for a map feature.'),
'featurepos_property', 0, 1, 'tripal');
'featurepos_property', 0, 1, 'tripal');
- tripal_cv_add_cvterm(array('name' => 'stop','def' => 'The end coordinate for a map feature'),
+ tripal_cv_add_cvterm(array('name' => 'stop','def' => 'The end coordinate for a map feature'),
'featurepos_property', 0, 1, 'tripal');
'featurepos_property', 0, 1, 'tripal');
-
+
// add cvterms for map properties
// add cvterms for map properties
- tripal_cv_add_cvterm(array('name' => 'Map Dbxref','def' => 'A unique identifer for the map in a remote database. The format is a database abbreviation and a unique accession separated by a colon. (e.g. Gramene:tsh1996a)'),
+ tripal_cv_add_cvterm(array('name' => 'Map Dbxref','def' => 'A unique identifer for the map in a remote database. The format is a database abbreviation and a unique accession separated by a colon. (e.g. Gramene:tsh1996a)'),
'featuremap_property', 0, 1, 'tripal');
'featuremap_property', 0, 1, 'tripal');
- tripal_cv_add_cvterm(array('name' => 'Map Type','def' => 'The type of Map (e.g. QTL, Physical, etc.)'),
+ tripal_cv_add_cvterm(array('name' => 'Map Type','def' => 'The type of Map (e.g. QTL, Physical, etc.)'),
- tripal_cv_add_cvterm(array('name' => 'URL','def' => 'A univeral resource locator (URL) reference where the publication can be found. For maps found online, this would be the web address for the map.'),
+ tripal_cv_add_cvterm(array('name' => 'URL','def' => 'A univeral resource locator (URL) reference where the publication can be found. For maps found online, this would be the web address for the map.'),
'featuremap_property', 0, 1, 'tripal');
'featuremap_property', 0, 1, 'tripal');
- tripal_cv_add_cvterm(array('name' => 'Population Type','def' => 'A brief descriptoin of the population type used to generate the map (e.g. RIL, F2, BC1, etc).'),
+ tripal_cv_add_cvterm(array('name' => 'Population Type','def' => 'A brief descriptoin of the population type used to generate the map (e.g. RIL, F2, BC1, etc).'),
'featuremap_property', 0, 1, 'tripal');
'featuremap_property', 0, 1, 'tripal');
- tripal_cv_add_cvterm(array('name' => 'Population Size','def' => 'The size of the population used to construct the map.'),
+ tripal_cv_add_cvterm(array('name' => 'Population Size','def' => 'The size of the population used to construct the map.'),
'featuremap_property', 0, 1, 'tripal');
'featuremap_property', 0, 1, 'tripal');
- tripal_cv_add_cvterm(array('name' => 'Methods','def' => 'A brief description of the methods used to construct the map.'),
+ tripal_cv_add_cvterm(array('name' => 'Methods','def' => 'A brief description of the methods used to construct the map.'),
'featuremap_property', 0, 1, 'tripal');
'featuremap_property', 0, 1, 'tripal');
- tripal_cv_add_cvterm(array('name' => 'Software','def' => 'The software used to construct the map.'),
+ tripal_cv_add_cvterm(array('name' => 'Software','def' => 'The software used to construct the map.'),
'featuremap_property', 0, 1, 'tripal');
'featuremap_property', 0, 1, 'tripal');
}
}
/*
/*
- *
+ *
*/
*/
function tripal_featuremap_add_custom_tables(){
function tripal_featuremap_add_custom_tables(){
// add the featuremaprop table to Chado
// add the featuremaprop table to Chado
@@ -192,9 +206,9 @@ function tripal_featuremap_add_custom_tables(){
- 'no_results_text' => 'Click "Show" to see a list of all feature maps matching the entered criteria. If you leave a any of the criteria blank then the maps will be not be filtered based on that field. Furthermore, if you leave all criteria blank then all maps will be listed.',
- ),
- ));
- $handler->override_option('access', array(
- 'type' => 'perm',
- 'perm' => 'access chado_featuremap content',
- ));
- $handler->override_option('cache', array(
- 'type' => 'none',
- ));
- $handler->override_option('title', 'Maps');
- $handler->override_option('header', 'Click "Show" to see a list of all feature maps matching the entered criteria. If you leave a any of the criteria blank then the maps will be not be filtered based on that field. Furthermore, if you leave all criteria blank then all maps will be listed.');
+ 'no_results_text' => 'Click "Show" to see a list of all feature maps matching the entered criteria. If you leave a any of the criteria blank then the maps will be not be filtered based on that field. Furthermore, if you leave all criteria blank then all maps will be listed.',
+ ),
+ ));
+ $handler->override_option('access', array(
+ 'type' => 'perm',
+ 'perm' => 'access chado_featuremap content',
+ ));
+ $handler->override_option('cache', array(
+ 'type' => 'none',
+ ));
+ $handler->override_option('title', 'Maps');
+ $handler->override_option('header', 'Click "Show" to see a list of all feature maps matching the entered criteria. If you leave a any of the criteria blank then the maps will be not be filtered based on that field. Furthermore, if you leave all criteria blank then all maps will be listed.');
- 'no_results_text' => 'Click "Show" to see a list of all genotypes matching the entered criteria. If you leave a any of the criteria blank then the genotypes will be not be filtered based on that field. Furthermore, if you leave all criteria blank then all genotypes will be listed.',
- $handler->override_option('header', 'Click "Show" to see a list of all genotypes matching the entered criteria. If you leave a any of the criteria blank then the genotypes will be not be filtered based on that field. Furthermore, if you leave all criteria blank then all genotypes will be listed.');
- 'description' => 'A genotype is defined by a collection of features, mutations, balancers, deficiencies, haplotype blocks, or engineered constructs.',
+ 'no_results_text' => 'Click "Show" to see a list of all genotypes matching the entered criteria. If you leave a any of the criteria blank then the genotypes will be not be filtered based on that field. Furthermore, if you leave all criteria blank then all genotypes will be listed.',
+ $handler->override_option('header', 'Click "Show" to see a list of all genotypes matching the entered criteria. If you leave a any of the criteria blank then the genotypes will be not be filtered based on that field. Furthermore, if you leave all criteria blank then all genotypes will be listed.');
+ 'description' => 'A genotype is defined by a collection of features, mutations, balancers, deficiencies, haplotype blocks, or engineered constructs.',
- $handler->override_option('header', 'Click "Show" to see a list of all libraries matching the entered criteria. If you leave a any of the criteria blank then the libraries will be not be filtered based on that field. Furthermore, if you leave all criteria blank then all libraries will be listed.');
+ $handler->display->display_options['menu']['description'] = 'A library is a collection of features of a given type. For example, a cDNA or BAC clone library.';
- '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('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.');
- '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.';
- $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.');
- '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('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.');
- '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.');
+ '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('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.');
+ '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.';
+ $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.');
+ '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('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.');
+ '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.');
- 'no_results_text' => 'Click "Show" to see a list of all phenotypes matching the entered criteria. If you leave a any of the criteria blank then the phenotypes will be not be filtered based on that field. Furthermore, if you leave all criteria blank then all phenotypes will be listed.',
- $handler->override_option('header', 'Click "Show" to see a list of all phenotypes matching the entered criteria. If you leave a any of the criteria blank then the phenotypes will be not be filtered based on that field. Furthermore, if you leave all criteria blank then all phenotypes will be listed.');
- 'description' => 'A phenotypic statement, or a single atomic phenotypic observation, is a controlled sentence describing observable effects of non-wild type function.',
+ 'no_results_text' => 'Click "Show" to see a list of all phenotypes matching the entered criteria. If you leave a any of the criteria blank then the phenotypes will be not be filtered based on that field. Furthermore, if you leave all criteria blank then all phenotypes will be listed.',
+ $handler->override_option('header', 'Click "Show" to see a list of all phenotypes matching the entered criteria. If you leave a any of the criteria blank then the phenotypes will be not be filtered based on that field. Furthermore, if you leave all criteria blank then all phenotypes will be listed.');
+ 'description' => 'A phenotypic statement, or a single atomic phenotypic observation, is a controlled sentence describing observable effects of non-wild type function.',
- 'no_results_text' => 'Click "Show" to see a list of all pubs matching the entered criteria. If you leave a any of the criteria blank then the pubs will be not be filtered based on that field. Furthermore, if you leave all criteria blank then all pubs will be listed.',
- $handler->override_option('header', 'Click "Show" to see a list of all publications matching the entered criteria. If you leave a any of the criteria blank then the pubs will be not be filtered based on that field. Furthermore, if you leave all criteria blank then all publications will be listed.');
+ 'no_results_text' => 'Click "Show" to see a list of all pubs matching the entered criteria. If you leave a any of the criteria blank then the pubs will be not be filtered based on that field. Furthermore, if you leave all criteria blank then all pubs will be listed.',
+ $handler->override_option('header', 'Click "Show" to see a list of all publications matching the entered criteria. If you leave a any of the criteria blank then the pubs will be not be filtered based on that field. Furthermore, if you leave all criteria blank then all publications will be listed.');
- 'no_results_text' => 'Click "Show" to see a list of all stocks matching the entered criteria. If you leave a any of the criteria blank then the stocks will be not be filtered based on that field. Furthermore, if you leave all criteria blank then all stocks will be listed.',
- ),
- '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' => 'stock',
- 'field' => 'type_id',
- 'relationship' => 'none',
- 'values_form_type' => 'select',
- 'multiple' => 1,
- 'optional' => 0,
- 'show_all' => 0,
- 'agg' => array(
- 'records_with' => 1,
- 'aggregates_with' => 1,
- ),
- ),
- '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' => 'stock',
- 'field' => 'name',
- 'relationship' => 'none',
- 'agg' => array(
- 'records_with' => 1,
- 'aggregates_with' => 1,
- ),
- ),
- ));
- $handler->override_option('access', array(
- 'type' => 'perm',
- 'perm' => 'access chado_stock content',
- ));
- $handler->override_option('cache', array(
- 'type' => 'none',
- ));
- $handler->override_option('title', 'Stocks');
- $handler->override_option('header', 'Click "Show" to see a list of all stocks matching the entered criteria. If you leave a any of the criteria blank then the stocks will be not be filtered based on that field. Furthermore, if you leave all criteria blank then all stocks will be listed.');
- 'description' => 'A stock is the physical entities, either living or preserved, held by collections and can be globally identified by the combination of organism, uniquename and stock type.',
- 'weight' => '10',
- 'name' => 'navigation',
- ));
- $handler->override_option('tab_options', array(
- 'type' => 'none',
- 'title' => '',
- 'description' => '',
- 'weight' => 0,
- 'name' => 'navigation',
- ));
- // Add code specific to a local chado installation
- // NOTE: Edit $handler above to $default_handler for the default display
- if (tripal_core_chado_schema_exists()) {
- // Add nid field
- $fields = $view->get_items('field', 'default');
- $new_fields = array(
- 'nid' => array(
- 'label' => 'Nid',
- '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,
- 'link_to_node' => 0,
- 'exclude' => 1,
- 'id' => 'nid',
- 'table' => 'node',
- 'field' => 'nid',
- 'relationship' => 'none',
- )
- );
- $fields = $new_fields + $fields;
- // Change analysis.name to have a link to the node
+ 'no_results_text' => 'Click "Show" to see a list of all stocks matching the entered criteria. If you leave a any of the criteria blank then the stocks will be not be filtered based on that field. Furthermore, if you leave all criteria blank then all stocks will be listed.',
+ ),
+ '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' => 'stock',
+ 'field' => 'type_id',
+ 'relationship' => 'none',
+ 'values_form_type' => 'select',
+ 'multiple' => 1,
+ 'optional' => 0,
+ 'show_all' => 0,
+ 'agg' => array(
+ 'records_with' => 1,
+ 'aggregates_with' => 1,
+ ),
+ ),
+ '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' => 'stock',
+ 'field' => 'name',
+ 'relationship' => 'none',
+ 'agg' => array(
+ 'records_with' => 1,
+ 'aggregates_with' => 1,
+ ),
+ ),
+ ));
+ $handler->override_option('access', array(
+ 'type' => 'perm',
+ 'perm' => 'access chado_stock content',
+ ));
+ $handler->override_option('cache', array(
+ 'type' => 'none',
+ ));
+ $handler->override_option('title', 'Stocks');
+ $handler->override_option('header', 'Click "Show" to see a list of all stocks matching the entered criteria. If you leave a any of the criteria blank then the stocks will be not be filtered based on that field. Furthermore, if you leave all criteria blank then all stocks will be listed.');
+ 'description' => 'A stock is the physical entities, either living or preserved, held by collections and can be globally identified by the combination of organism, uniquename and stock type.',
+ 'weight' => '10',
+ 'name' => 'navigation',
+ ));
+ $handler->override_option('tab_options', array(
+ 'type' => 'none',
+ 'title' => '',
+ 'description' => '',
+ 'weight' => 0,
+ 'name' => 'navigation',
+ ));
+ // Add code specific to a local chado installation
+ // NOTE: Edit $handler above to $default_handler for the default display
+ if (tripal_core_chado_schema_exists()) {
+ // Add nid field
+ $fields = $view->get_items('field', 'default');
+ $new_fields = array(
+ 'nid' => array(
+ 'label' => 'Nid',
+ '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,
+ 'link_to_node' => 0,
+ 'exclude' => 1,
+ 'id' => 'nid',
+ 'table' => 'node',
+ 'field' => 'nid',
+ 'relationship' => 'none',
+ )
+ );
+ $fields = $new_fields + $fields;
+ // Change analysis.name to have a link to the node