Browse Source

Simple default fixes to the cv, db and feature default views

Lacey Sanderson 12 years ago
parent
commit
1f6ad0c3af

+ 12 - 0
tripal_cv/tripal_cv.views.inc

@@ -312,6 +312,10 @@ function tripal_cv_views_default_views() {
       'values_form_type' => 'select',
       'multiple' => 1,
       'optional' => 0,
+      'agg' => array(
+        'records_with' => 1,
+        'aggregates_with' => 1,
+      ),
     ),
     'name_1' => array(
       'operator' => 'contains',
@@ -334,6 +338,10 @@ function tripal_cv_views_default_views() {
       'multiple' => 0,
       'optional' => 0,
       'show_all' => 0,
+      'agg' => array(
+        'records_with' => 1,
+        'aggregates_with' => 1,
+      ),
     ),
     'definition' => array(
       'operator' => 'contains',
@@ -577,6 +585,10 @@ function tripal_cv_views_default_views() {
       'values_form_type' => 'textfield',
       'multiple' => 0,
       'optional' => 0,
+      'agg' => array(
+        'records_with' => 1,
+        'aggregates_with' => 0,
+      ),
     ),
     'definition' => array(
       'operator' => 'contains',

+ 12 - 1
tripal_db/tripal_db.views.inc

@@ -241,6 +241,10 @@ function tripal_db_views_default_views() {
       'values_form_type' => 'textfield',
       'multiple' => 0,
       'optional' => 0,
+      'agg' => array(
+        'records_with' => 1,
+        'aggregates_with' => 0,
+      ),
     ),
     'description' => array(
       'operator' => 'contains',
@@ -546,6 +550,10 @@ function tripal_db_views_default_views() {
       'values_form_type' => 'select',
       'multiple' => 1,
       'optional' => 0,
+      'agg' => array(
+        'records_with' => 1,
+        'aggregates_with' => 1,
+      ),
     ),
     'accession' => array(
       'operator' => 'contains',
@@ -557,7 +565,6 @@ function tripal_db_views_default_views() {
         'operator' => 'accession_op',
         'identifier' => 'accession',
         'label' => 'Accession Contains',
-        'optional' => 1,
         'remember' => 0,
       ),
       'case' => 0,
@@ -565,6 +572,10 @@ function tripal_db_views_default_views() {
       'table' => 'dbxref',
       'field' => 'accession',
       'relationship' => 'none',
+      'agg' => array(
+        'records_with' => 1,
+        'aggregates_with' => 1,
+      ),
     ),
     'search_results' => array(
       'operator' => '=',

+ 4 - 0
tripal_feature/tripal_feature.views.inc

@@ -426,6 +426,10 @@ function tripal_feature_views_default_views() {
       'override' => array(
         'button' => 'Override',
       ),
+      'agg' => array(
+        'records_with' => 1,
+        'aggregates_with' => 1,
+      ),
     ),
     'type_id' => array(
       'operator' => '=',